|
|||||||||||
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.LiteNode
Field Summary | |
protected java.awt.geom.Rectangle2D.Double |
activeBounds
|
protected java.awt.geom.Rectangle2D.Double |
bounds
|
protected java.lang.String |
label
|
static java.awt.Font |
titleFont
|
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 | |
LiteNode()
|
|
LiteNode(java.lang.String lbl,
boolean hasExtIn,
boolean hasExtOut)
|
|
LiteNode(java.lang.String lbl,
boolean hasExtIn,
boolean hasExtOut,
boolean isMissing)
|
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 LiteNode and if it shares the same parent with this object. |
void |
doPaint(java.awt.Graphics2D g)
Include painting code here. |
java.awt.geom.Rectangle2D |
getActiveBounds()
|
java.util.Vector |
getAssociatedLinks()
Returns the links attached to the slots of this node. |
java.util.Vector |
getAssociatedShortcuts()
|
java.awt.geom.Rectangle2D |
getBounds()
Returns the bounds of the Lite object in its own coordinate system. |
LiteSlot[] |
getIns()
|
java.lang.String |
getLabel()
|
LiteInSlots |
getLiteInSlots()
|
LiteOutSlots |
getLiteOutSlots()
|
LiteSlot[] |
getOuts()
|
java.awt.Shape |
getShadow()
Returns this lite's own shadow, WITHOUT its children's shadows. |
LiteSlot |
getSlot(java.lang.String lbl)
|
LiteUnion |
getUnionInstance()
Returns an instance of LiteNodeUnion. |
boolean |
hasExternalInput()
|
boolean |
hasExternalOutput()
|
void |
invalidate()
|
boolean |
isExpanded()
|
boolean |
isMissing()
|
void |
migrateBack()
Also calls fitParent() on all associated links |
void |
migrateTo(LiteContainer newParent)
Also calls fitParent() on all associated links |
void |
setExpanded(boolean expand)
|
void |
setExternal(boolean in,
boolean out)
|
void |
setLabel(java.lang.String label)
|
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, concatenate, context, dist, equals, getActiveBoundsFrom, getAncestor, getAncestor, getBoundsFrom, getBoundsFromNoCorrect, getChildrenGhostPath, getCommonAncestor, getGhost_old, getGhost, getGhostPath, getParent, getTransform, getTransformFrom, getTransformNoCopy, isVisible, paint_old, paint, paintChildren, paintShadows, pick, pickChildren, preConcatenate, setContext, setParent, setTransform, 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 |
Field Detail |
public static java.awt.Font titleFont
protected java.lang.String label
protected java.awt.geom.Rectangle2D.Double bounds
protected java.awt.geom.Rectangle2D.Double activeBounds
Constructor Detail |
public LiteNode()
public LiteNode(java.lang.String lbl, boolean hasExtIn, boolean hasExtOut)
public LiteNode(java.lang.String lbl, boolean hasExtIn, boolean hasExtOut, boolean isMissing)
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 doPaint(java.awt.Graphics2D g)
Lite
Call PaintChildren if Lite object is a container.
doPaint
in class Lite
public java.awt.geom.Rectangle2D getActiveBounds()
getActiveBounds
in class Lite
public java.util.Vector getAssociatedLinks()
public java.awt.geom.Rectangle2D getBounds()
Lite
getBounds
in class Lite
public LiteSlot[] getIns()
public java.lang.String getLabel()
public LiteInSlots getLiteInSlots()
public LiteOutSlots getLiteOutSlots()
public LiteSlot[] getOuts()
public java.awt.Shape getShadow()
Lite
By default, this method returns null. If you want your object to cast shadows, subclass it and return your shadow's shape (the most simple is getBounds()). Be careful : your shadow must stay inside lite's bounds.
getShadow
in class Lite
public LiteSlot getSlot(java.lang.String lbl)
public LiteUnion getUnionInstance()
getUnionInstance
in interface Uniteable
public boolean hasExternalInput()
public boolean hasExternalOutput()
public void invalidate()
public java.util.Vector getAssociatedShortcuts()
public boolean isMissing()
public void migrateBack()
migrateBack
in class Lite
Lite.migrateTo(fr.emn.lite.LiteContainer)
public void migrateTo(LiteContainer newParent)
migrateTo
in class Lite
newParent
- fr.emn.lite.LiteLite.migrateBack()
public void setExternal(boolean in, boolean out)
public void setLabel(java.lang.String label)
public void setExpanded(boolean expand)
public boolean isExpanded()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |