|
|||||||||||
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.DefaultEdge
A simple implementation for an edge.
Nested Class Summary |
Nested classes inherited from class com.jgraph.graph.DefaultGraphCell |
DefaultGraphCell.ValueChangeHandler |
Field Summary | |
protected java.lang.Object |
source
Source and target of the edge. |
protected java.lang.Object |
target
Source and target of the edge. |
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 | |
DefaultEdge()
Constructs an empty edge. |
|
DefaultEdge(java.lang.Object userObject)
Constructs an edge that holds a reference to the specified user object. |
Method Summary | |
java.lang.Object |
clone()
Create a clone of the cell. |
java.lang.Object |
getSource()
Returns the source of the edge. |
java.lang.Object |
getTarget()
Returns the target of the edge. |
void |
setSource(java.lang.Object port)
Sets the source of the edge. |
void |
setTarget(java.lang.Object port)
Returns the target of edge . |
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.lang.Object source
protected java.lang.Object target
Constructor Detail |
public DefaultEdge()
public DefaultEdge(java.lang.Object userObject)
userObject
- reference to the user objectMethod Detail |
public java.lang.Object getSource()
getSource
in interface Edge
public java.lang.Object getTarget()
getTarget
in interface Edge
public void setSource(java.lang.Object port)
setSource
in interface Edge
public void setTarget(java.lang.Object port)
edge
.
setTarget
in interface Edge
public java.lang.Object clone()
clone
in class DefaultGraphCell
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |