fr.emn.inputeditor
Class LiteShortcut

java.lang.Object
  extended byjava.util.AbstractCollection
      extended byjava.util.AbstractList
          extended byfr.emn.lite.Lite
              extended byfr.emn.inputeditor.LiteShortcut
All Implemented Interfaces:
java.util.Collection, java.util.List

public class LiteShortcut
extends Lite


Field Summary
 
Fields inherited from class fr.emn.lite.Lite
model, oldParent, parent, PICK_ACTIVEBOUNDS, PICK_ALL, PICK_DEEPEST, PICK_FIRST, PICK_GRAPHBOUNDS, PICK_INSIDE, PICK_INTER, PICK_MANIPULABLE, visible
 
Fields inherited from class java.util.AbstractList
modCount
 
Constructor Summary
LiteShortcut(LiteNode n1, LiteNode n2)
           
 
Method Summary
 void concatenate(java.awt.geom.AffineTransform t)
          no transform
 void doPaint(java.awt.Graphics2D g)
          Include painting code here.
 java.awt.geom.Rectangle2D getBounds()
          Returns the bounds of the Lite object in its own coordinate system.
 java.awt.geom.GeneralPath getGhostPath(int maxDepth)
          This method returns the ghost shape of this object.
 void invalidate()
           
static void invalidate(java.util.Vector v)
           
static void invalidateShortcuts(LiteNode n)
           
 boolean pick(java.awt.Graphics2D g, java.awt.geom.Rectangle2D rect, int strategy, PickedList picked)
          A shortcut is not interactive to its children.
 void preConcatenate(java.awt.geom.AffineTransform t)
          no transform
 void setTransform(java.awt.geom.AffineTransform t)
          no transform
 
Methods inherited from class fr.emn.lite.Lite
changeTransform, context, dist, equals, get, getActiveBounds, getActiveBoundsFrom, getAncestor, getAncestor, getBoundsFrom, getBoundsFromNoCorrect, getChildrenGhostPath, getCommonAncestor, getGhost_old, getGhost, getParent, getShadow, getTransform, getTransformFrom, getTransformNoCopy, isVisible, migrateBack, migrateTo, paint_old, paint, paintChildren, paintShadows, pickChildren, setContext, setParent, setVisible, size, toString, transformBounds
 
Methods inherited from class java.util.AbstractList
add, add, addAll, clear, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, remove, removeRange, set, subList
 
Methods inherited from class java.util.AbstractCollection
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.List
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray
 

Constructor Detail

LiteShortcut

public LiteShortcut(LiteNode n1,
                    LiteNode n2)
Method Detail

doPaint

public void doPaint(java.awt.Graphics2D g)
Description copied from class: Lite
Include painting code here.

Call PaintChildren if Lite object is a container.

Specified by:
doPaint in class Lite

getBounds

public java.awt.geom.Rectangle2D getBounds()
Description copied from class: Lite
Returns the bounds of the Lite object in its own coordinate system. Warning : don't change the Rectangle2D returned. Instead, work on a copy.

Specified by:
getBounds in class Lite

getGhostPath

public java.awt.geom.GeneralPath getGhostPath(int maxDepth)
Description copied from class: Lite
This method returns the ghost shape of this object. (implemented here for debug reasons).

By default, this method returns the path iterator of this object's bounds and appends its children's ghost path.

Overrides:
getGhostPath in class Lite
See Also:
#getChildrenGhostPath()

invalidate

public void invalidate()

invalidate

public static void invalidate(java.util.Vector v)

invalidateShortcuts

public static void invalidateShortcuts(LiteNode n)

pick

public boolean pick(java.awt.Graphics2D g,
                    java.awt.geom.Rectangle2D rect,
                    int strategy,
                    PickedList picked)
A shortcut is not interactive to its children.

Overrides:
pick in class Lite
Parameters:
rect - The picking rectangle
strategy - The picking strategy to be used, i.e. a combination of a depth strategy and a geometrical strategy. Default value (0) is PICK_DEEPEST | PICK_INTER.
picked - if this argument is not null, picked objects are added to the pick list.

concatenate

public void concatenate(java.awt.geom.AffineTransform t)
no transform

Overrides:
concatenate in class Lite

preConcatenate

public void preConcatenate(java.awt.geom.AffineTransform t)
no transform

Overrides:
preConcatenate in class Lite

setTransform

public void setTransform(java.awt.geom.AffineTransform t)
no transform

Overrides:
setTransform in class Lite