|
JGraph |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.swing.tree.DefaultMutableTreeNode
org.jgraph.graph.DefaultGraphCell
The default implementation for the GraphCell interface.
Field Summary | |
protected AttributeMap |
attributes
Hashtable for properties. |
Fields inherited from class javax.swing.tree.DefaultMutableTreeNode |
allowsChildren, children, EMPTY_ENUMERATION, parent, userObject |
Constructor Summary | |
DefaultGraphCell()
Creates an empty cell. |
|
DefaultGraphCell(Object userObject)
Creates a graph cell and initializes it with the specified user object. |
|
DefaultGraphCell(Object userObject,
AttributeMap storageMap)
Constructs a cell that holds a reference to the specified user object and contains the specified array of children and sets default values for the bounds attribute. |
|
DefaultGraphCell(Object userObject,
AttributeMap storageMap,
MutableTreeNode[] children)
Creates a graph cell and initializes it with the specified user object. |
Method Summary | |
Object |
addPort()
Utility method to create a port for this cell. |
Object |
addPort(Point2D offset)
Utility method to create a port for this cell. |
Object |
addPort(Point2D offset,
Object userObject)
Utility method to create a port for this cell. |
Map |
changeAttributes(Map change)
Deprecated. Use getAttributes().applyMap |
Object |
clone()
Create a clone of the cell. |
AttributeMap |
getAttributes()
Returns the properies of the cell. |
List |
getChildren()
Provides access to the children list to change ordering. |
void |
setAttributes(AttributeMap attributes)
Sets the attributes. |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
protected AttributeMap attributes
Constructor Detail |
public DefaultGraphCell()
public DefaultGraphCell(Object userObject)
userObject
- an Object provided by the user that constitutes
the cell's datapublic DefaultGraphCell(Object userObject, AttributeMap storageMap)
userObject
- reference to the user objectstorageMap
- the storage attribute map for this cellpublic DefaultGraphCell(Object userObject, AttributeMap storageMap, MutableTreeNode[] children)
userObject
- an Object provided by the user that constitutes
the cell's datastorageMap
- the storage attribute map for this cellchildren
- array of childrenMethod Detail |
public List getChildren()
Collections.EMPTY_LIST
if the list of childrenpoints to null
.
public AttributeMap getAttributes()
getAttributes
in interface GraphCell
public Map changeAttributes(Map change)
attributes
of the cell.
changeAttributes
in interface GraphCell
public void setAttributes(AttributeMap attributes)
setAttributes
in interface GraphCell
attributes
- The attributes to setpublic Object addPort()
public Object addPort(Point2D offset)
offset
- the offset of the port within the cell
public Object addPort(Point2D offset, Object userObject)
offset
- the offset of the port within the celluserObject
- the user object of the port cell
public Object clone()
|
JGraph |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |