public class MyOriginalCell
extends org.jgraph.graph.DefaultGraphCell
| Constructor and Description |
|---|
MyOriginalCell()
Creates an empty cell.
|
MyOriginalCell(java.lang.Object userObject)
Creates a graph cell and initializes it with the specified user object.
|
MyOriginalCell(java.lang.Object userObject,
org.jgraph.graph.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.
|
MyOriginalCell(java.lang.Object userObject,
org.jgraph.graph.AttributeMap storageMap,
javax.swing.tree.MutableTreeNode[] children)
Creates a graph cell and initializes it with the specified user object.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
addPort()
Utility method to create a port for this cell.
|
java.lang.Object |
addPort(java.awt.geom.Point2D offset)
Utility method to create a port for this cell.
|
java.lang.Object |
addPort(java.awt.geom.Point2D offset,
java.lang.Object userObject)
Utility method to create a port for this cell.
|
java.util.Map |
changeAttributes(java.util.Map change)
Deprecated.
Use getAttributes().applyMap
|
java.lang.Object |
clone()
Create a clone of the cell.
|
org.jgraph.graph.AttributeMap |
getAttributes()
Returns the properies of the cell.
|
java.util.List |
getChildren()
Provides access to the children list to change ordering.
|
MyOriginalElement |
getCorrespondingElement() |
MyOriginalElement |
getCorrespondingSecondElement() |
java.lang.String |
getID() |
java.lang.String |
getSecondID() |
java.lang.String |
getType() |
void |
setAttributes(org.jgraph.graph.AttributeMap attributes)
Sets the attributes.
|
void |
setCorrespondingElement(MyOriginalElement correspondingElement) |
void |
setCorrespondingSecondElement(MyOriginalElement correspondingSecondElement) |
void |
setID(java.lang.String ID) |
void |
setSecondID(java.lang.String secondID) |
void |
setType(java.lang.String type) |
add, breadthFirstEnumeration, children, depthFirstEnumeration, getAllowsChildren, getChildAfter, getChildAt, getChildBefore, getChildCount, getDepth, getFirstChild, getFirstLeaf, getIndex, getLastChild, getLastLeaf, getLeafCount, getLevel, getNextLeaf, getNextNode, getNextSibling, getParent, getPath, getPathToRoot, getPreviousLeaf, getPreviousNode, getPreviousSibling, getRoot, getSharedAncestor, getSiblingCount, getUserObject, getUserObjectPath, insert, isLeaf, isNodeAncestor, isNodeChild, isNodeDescendant, isNodeRelated, isNodeSibling, isRoot, pathFromAncestorEnumeration, postorderEnumeration, preorderEnumeration, remove, remove, removeAllChildren, removeFromParent, setAllowsChildren, setParent, setUserObject, toStringpublic MyOriginalCell()
public MyOriginalCell(java.lang.Object userObject)
userObject - an Object provided by the user that constitutes
the cell's datapublic MyOriginalCell(java.lang.Object userObject,
org.jgraph.graph.AttributeMap storageMap)
userObject - reference to the user objectstorageMap - the storage attribute map for this cellpublic MyOriginalCell(java.lang.Object userObject,
org.jgraph.graph.AttributeMap storageMap,
javax.swing.tree.MutableTreeNode[] children)
userObject - an Object provided by the user that constitutes
the cell's datastorageMap - the storage attribute map for this cellchildren - array of childrenpublic java.util.List getChildren()
Collections.EMPTY_LIST
if the list of childrenpoints to null.getChildren in class org.jgraph.graph.DefaultGraphCellpublic org.jgraph.graph.AttributeMap getAttributes()
getAttributes in interface org.jgraph.graph.GraphCellgetAttributes in class org.jgraph.graph.DefaultGraphCellpublic java.util.Map changeAttributes(java.util.Map change)
attributes of the cell.changeAttributes in interface org.jgraph.graph.GraphCellchangeAttributes in class org.jgraph.graph.DefaultGraphCellpublic void setAttributes(org.jgraph.graph.AttributeMap attributes)
setAttributes in interface org.jgraph.graph.GraphCellsetAttributes in class org.jgraph.graph.DefaultGraphCellattributes - The attributes to setpublic java.lang.Object addPort()
addPort in class org.jgraph.graph.DefaultGraphCellpublic java.lang.Object addPort(java.awt.geom.Point2D offset)
addPort in class org.jgraph.graph.DefaultGraphCelloffset - the offset of the port within the cellpublic java.lang.Object addPort(java.awt.geom.Point2D offset,
java.lang.Object userObject)
addPort in class org.jgraph.graph.DefaultGraphCelloffset - the offset of the port within the celluserObject - the user object of the port cellpublic java.lang.Object clone()
clone in class org.jgraph.graph.DefaultGraphCellpublic java.lang.String getID()
public void setID(java.lang.String ID)
public java.lang.String getSecondID()
public void setSecondID(java.lang.String secondID)
public java.lang.String getType()
public void setType(java.lang.String type)
public MyOriginalElement getCorrespondingElement()
public void setCorrespondingElement(MyOriginalElement correspondingElement)
public MyOriginalElement getCorrespondingSecondElement()
public void setCorrespondingSecondElement(MyOriginalElement correspondingSecondElement)