|
JGraph |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--javax.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 | |
Map |
changeAttributes(Map change)
Apply change to the cell and sync userObject. |
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 data
public DefaultGraphCell(Object userObject,
AttributeMap storageMap)
userObject - reference to the user objectstorageMap - the storage attribute map for this cell
public 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 children| Method Detail |
public List getChildren()
Collections.EMPTY_LIST
if the list of childrenpoints to null.public AttributeMap getAttributes()
getAttributes in interface GraphCellpublic Map changeAttributes(Map change)
change to the cell and sync userObject.changeAttributes in interface GraphCellpublic void setAttributes(AttributeMap attributes)
setAttributes in interface GraphCellattributes - The attributes to setpublic Object clone()
clone in class DefaultMutableTreeNode
|
JGraph |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||