|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.util.AbstractCollection java.util.AbstractList fr.emn.lite.Lite fr.emn.lite.LiteContainer fr.emn.inputeditor.LiteLink
Field Summary |
Fields inherited from class fr.emn.lite.LiteContainer |
children |
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 | |
LiteLink(LiteInSlot IN,
LiteOutSlot OUT)
|
Method Summary | |
boolean |
canClone()
|
boolean |
canDelete()
|
boolean |
canScale()
|
boolean |
canSelect()
|
boolean |
canShortcut()
|
boolean |
canTranslate()
|
boolean |
canUniteWith(Lite l)
Returns true if l is an instance of LiteLink and if it shares the same parent with this object. |
void |
concatenate(java.awt.geom.AffineTransform t)
no transform |
void |
delete()
|
void |
doPaint(java.awt.Graphics2D g)
Include painting code here. |
void |
fitParent()
Update LiteLink's parent so that it is the nearest common ancestor of both slots. |
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. |
LiteInSlot |
getInSlot()
|
LiteSlot |
getOtherSlot(LiteSlot slot)
|
LiteOutSlot |
getOutSlot()
|
LiteUnion |
getUnionInstance()
Returns an instance of LiteLinkUnion. |
void |
invalidate()
Update link path (link path is drawn only if it is valid). |
static void |
invalidate(java.util.Vector v)
Updates links given in vector v, by calling retrace(). |
boolean |
isValid()
Returns true if this link has in and out slots, and a parent. |
boolean |
pick(java.awt.Graphics2D g,
java.awt.geom.Rectangle2D rect,
int strategy,
PickedList picked)
A link is not interactive, but delegates manipulation to its children. |
void |
preConcatenate(java.awt.geom.AffineTransform t)
no transform |
void |
setTransform(java.awt.geom.AffineTransform t)
no transform |
static void |
traceLink(java.awt.geom.Point2D outP,
java.awt.geom.Point2D inP,
java.awt.geom.Rectangle2D outMask,
java.awt.geom.Rectangle2D inMask,
boolean circuitStyle,
java.awt.geom.GeneralPath p)
Draws a link between two points and appends the result to p. |
Methods inherited from class fr.emn.lite.LiteContainer |
add, add, get, getChildrenBounds, remove, remove, set, set, size |
Methods inherited from class fr.emn.lite.Lite |
changeTransform, context, dist, equals, 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, toString, transformBounds |
Methods inherited from class java.util.AbstractList |
add, addAll, clear, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, removeRange, 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 |
public LiteLink(LiteInSlot IN, LiteOutSlot OUT)
Method Detail |
public boolean canClone()
canClone
in interface Manipulable
public boolean canDelete()
canDelete
in interface Manipulable
public boolean canScale()
canScale
in interface Manipulable
public boolean canSelect()
canSelect
in interface Manipulable
public boolean canShortcut()
canShortcut
in interface Manipulable
public boolean canTranslate()
canTranslate
in interface Manipulable
public boolean canUniteWith(Lite l)
canUniteWith
in interface Uniteable
public void concatenate(java.awt.geom.AffineTransform t)
concatenate
in class Lite
public void delete()
public void doPaint(java.awt.Graphics2D g)
Lite
Call PaintChildren if Lite object is a container.
doPaint
in class Lite
public void fitParent()
public java.awt.geom.Rectangle2D getBounds()
Lite
getBounds
in class Lite
public java.awt.geom.GeneralPath getGhostPath(int maxDepth)
Lite
By default, this method returns the path iterator of this object's bounds and appends its children's ghost path.
getGhostPath
in class Lite
#getChildrenGhostPath()
public LiteInSlot getInSlot()
public LiteSlot getOtherSlot(LiteSlot slot)
public LiteOutSlot getOutSlot()
public LiteUnion getUnionInstance()
getUnionInstance
in interface Uniteable
public void invalidate()
public static void invalidate(java.util.Vector v)
public boolean isValid()
public boolean pick(java.awt.Graphics2D g, java.awt.geom.Rectangle2D rect, int strategy, PickedList picked)
pick
in class Lite
rect
- The picking rectanglestrategy
- 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.public void preConcatenate(java.awt.geom.AffineTransform t)
preConcatenate
in class Lite
public void setTransform(java.awt.geom.AffineTransform t)
setTransform
in class Lite
public static void traceLink(java.awt.geom.Point2D outP, java.awt.geom.Point2D inP, java.awt.geom.Rectangle2D outMask, java.awt.geom.Rectangle2D inMask, boolean circuitStyle, java.awt.geom.GeneralPath p)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |