|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectjavax.swing.tree.DefaultMutableTreeNode
com.jgraph.graph.DefaultGraphCell
com.jgraph.graph.DefaultPort
A simple implementation for a port.
| Nested Class Summary |
| Nested classes inherited from class com.jgraph.graph.DefaultGraphCell |
DefaultGraphCell.ValueChangeHandler |
| Field Summary | |
protected Port |
anchor
Reference to the anchor of this port |
protected java.util.HashSet |
edges
Edges that are connected to the port |
| Fields inherited from class com.jgraph.graph.DefaultGraphCell |
attributes |
| Fields inherited from class javax.swing.tree.DefaultMutableTreeNode |
allowsChildren, children, EMPTY_ENUMERATION, parent, userObject |
| Constructor Summary | |
DefaultPort()
Constructs an empty port. |
|
DefaultPort(java.lang.Object userObject)
Constructs a vertex that holds a reference to the specified user object. |
|
DefaultPort(java.lang.Object userObject,
Port anchor)
Constructs a vertex that holds a reference to the specified user object and a reference to the specified anchor. |
|
| Method Summary | |
boolean |
add(java.lang.Object edge)
Adds edge to the list of ports. |
java.lang.Object |
clone()
Create a clone of the cell. |
java.util.Iterator |
edges()
Returns an iterator of the edges connected to the port. |
Port |
getAnchor()
Returns the anchor of this port. |
java.util.Set |
getEdges()
Returns the anchor of this port. |
boolean |
remove(java.lang.Object edge)
Removes edge from the list of ports. |
void |
setAnchor(Port port)
Sets the anchor of this port. |
void |
setEdges(java.util.Set edges)
Sets the anchor of this port. |
| Methods inherited from class com.jgraph.graph.DefaultGraphCell |
cloneUserObject, getAttributes, getChildren, setAttributes, setUserObject |
| Methods inherited from class javax.swing.tree.DefaultMutableTreeNode |
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, toString |
| Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface com.jgraph.graph.GraphCell |
getAttributes, setAttributes |
| Field Detail |
protected java.util.HashSet edges
protected Port anchor
| Constructor Detail |
public DefaultPort()
public DefaultPort(java.lang.Object userObject)
userObject - reference to the user object
public DefaultPort(java.lang.Object userObject,
Port anchor)
userObject - reference to the user object| Method Detail |
public java.util.Iterator edges()
edges in interface Portpublic boolean add(java.lang.Object edge)
edge to the list of ports.
add in interface Portpublic boolean remove(java.lang.Object edge)
edge from the list of ports.
remove in interface Portpublic java.util.Set getEdges()
public void setEdges(java.util.Set edges)
public Port getAnchor()
getAnchor in interface Portpublic void setAnchor(Port port)
setAnchor in interface Portpublic java.lang.Object clone()
clone in class DefaultGraphCell
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||