org.jgraph.graph
public class DefaultGraphCell extends DefaultMutableTreeNode implements GraphCell, Cloneable
Field Summary | |
---|---|
protected AttributeMap | attributes Hashtable for properties. |
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)
Changes the attributes of the cell.
|
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. |
Parameters: userObject an Object provided by the user that constitutes the cell's data
Parameters: userObject reference to the user object storageMap the storage attribute map for this cell
Parameters: userObject an Object provided by the user that constitutes the cell's data storageMap the storage attribute map for this cell children array of children
Returns: the port created
Parameters: offset the offset of the port within the cell
Returns: the port created
Parameters: offset the offset of the port within the cell userObject the user object of the port cell
Returns: the port created
Deprecated: Use getAttributes().applyMap
Changes theattributes
of the cell.
Returns: Object a clone of this object.
Collections.EMPTY_LIST
if the list of childrenpoints to null
.Parameters: attributes The attributes to set