fr.emn.inputeditor
Class LiteSlot

java.lang.Object
  extended byjava.util.AbstractCollection
      extended byjava.util.AbstractList
          extended byfr.emn.lite.Lite
              extended byfr.emn.inputeditor.LiteSlot
All Implemented Interfaces:
java.util.Collection, java.util.List, Manipulable
Direct Known Subclasses:
LiteInSlot, LiteOutSlot

public abstract class LiteSlot
extends Lite
implements Manipulable


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
LiteSlot(java.lang.String name, java.lang.String fullName, java.lang.String type, java.lang.String supertype)
           
LiteSlot(java.lang.String name, java.lang.String fullName, java.lang.String type, java.lang.String supertype, boolean isMissing)
           
 
Method Summary
 boolean canClone()
          canClone method comment.
 boolean canDelete()
          canDelete method comment.
 boolean canScale()
          canScale method comment.
 boolean canSelect()
          canSelect method comment.
 boolean canShortcut()
          canShortcut method comment.
 boolean canTranslate()
          canTranslate method comment.
 void doPaintInBlack(java.awt.Graphics2D g)
           
 void doPaintInWhite(java.awt.Graphics2D g)
           
 void expand(boolean exp)
           
 java.awt.geom.Rectangle2D getActiveBounds()
           
 java.awt.geom.Rectangle2D getBounds()
          Returns the bounds of the Lite object in its own coordinate system.
 java.awt.geom.Point2D getCenterFrom(LiteContainer l)
           
 LiteSlot[] getChildren()
          Returns the children of this slot, or null if it is not hierarchical.
 java.lang.String getFullName()
           
 java.util.LinkedList getLinks()
           
 java.lang.String getName()
           
 java.awt.Shape getShadow()
          Returns this lite's own shadow, WITHOUT its children's shadows.
static java.awt.Shape getShape(float slotSize, java.lang.String type)
           
 java.lang.String getType()
           
 java.util.Vector h_children()
           
 boolean hasSuperType()
           
 void invertColor(boolean invert)
           
 boolean isChild(LiteSlot par)
           
 boolean isConnected()
           
 boolean isExpanded()
           
 boolean isHierarchical()
           
 boolean isMissing()
           
 void setFullName(java.lang.String fullName)
           
 void setName(java.lang.String name)
           
 void setType(java.lang.String type)
           
 void toggleExpand()
           
 
Methods inherited from class fr.emn.lite.Lite
changeTransform, concatenate, context, dist, doPaint, equals, get, getActiveBoundsFrom, getAncestor, getAncestor, getBoundsFrom, getBoundsFromNoCorrect, getChildrenGhostPath, getCommonAncestor, getGhost_old, getGhost, getGhostPath, getParent, getTransform, getTransformFrom, getTransformNoCopy, isVisible, migrateBack, migrateTo, paint_old, paint, paintChildren, paintShadows, pick, pickChildren, preConcatenate, setContext, setParent, setTransform, 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

LiteSlot

public LiteSlot(java.lang.String name,
                java.lang.String fullName,
                java.lang.String type,
                java.lang.String supertype)

LiteSlot

public LiteSlot(java.lang.String name,
                java.lang.String fullName,
                java.lang.String type,
                java.lang.String supertype,
                boolean isMissing)
Method Detail

invertColor

public void invertColor(boolean invert)

canClone

public boolean canClone()
canClone method comment.

Specified by:
canClone in interface Manipulable

canDelete

public boolean canDelete()
canDelete method comment.

Specified by:
canDelete in interface Manipulable

canScale

public boolean canScale()
canScale method comment.

Specified by:
canScale in interface Manipulable

canSelect

public boolean canSelect()
canSelect method comment.

Specified by:
canSelect in interface Manipulable

canShortcut

public boolean canShortcut()
canShortcut method comment.

Specified by:
canShortcut in interface Manipulable

canTranslate

public boolean canTranslate()
canTranslate method comment.

Specified by:
canTranslate in interface Manipulable

hasSuperType

public boolean hasSuperType()

getShape

public static java.awt.Shape getShape(float slotSize,
                                      java.lang.String type)

expand

public void expand(boolean exp)

getActiveBounds

public java.awt.geom.Rectangle2D getActiveBounds()
Overrides:
getActiveBounds 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

getCenterFrom

public java.awt.geom.Point2D getCenterFrom(LiteContainer l)

getFullName

public java.lang.String getFullName()

getLinks

public java.util.LinkedList getLinks()

getName

public java.lang.String getName()

getShadow

public java.awt.Shape getShadow()
Description copied from class: Lite
Returns this lite's own shadow, WITHOUT its children's shadows.

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.

Overrides:
getShadow in class Lite

getType

public java.lang.String getType()

h_children

public java.util.Vector h_children()

isConnected

public boolean isConnected()

isExpanded

public boolean isExpanded()

isHierarchical

public boolean isHierarchical()

isChild

public boolean isChild(LiteSlot par)

isMissing

public boolean isMissing()

setFullName

public void setFullName(java.lang.String fullName)

setName

public void setName(java.lang.String name)

setType

public void setType(java.lang.String type)

toggleExpand

public void toggleExpand()

getChildren

public LiteSlot[] getChildren()
Returns the children of this slot, or null if it is not hierarchical.


doPaintInBlack

public void doPaintInBlack(java.awt.Graphics2D g)

doPaintInWhite

public void doPaintInWhite(java.awt.Graphics2D g)