|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.swing.tree.DefaultMutableTreeNode
org.jgraph.graph.DefaultGraphCell
org.jgraph.graph.DefaultEdge
graph.Link
public class Link
A link connects two nodes and may contain a data label.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class org.jgraph.graph.DefaultEdge |
---|
org.jgraph.graph.DefaultEdge.DefaultRouting, org.jgraph.graph.DefaultEdge.LoopRouting |
Nested classes/interfaces inherited from interface org.jgraph.graph.Edge |
---|
org.jgraph.graph.Edge.Routing |
Field Summary | |
---|---|
private static long |
serialVersionUID
|
Fields inherited from class org.jgraph.graph.DefaultEdge |
---|
source, target |
Fields inherited from class org.jgraph.graph.DefaultGraphCell |
---|
attributes |
Fields inherited from class javax.swing.tree.DefaultMutableTreeNode |
---|
allowsChildren, children, EMPTY_ENUMERATION, parent, userObject |
Constructor Summary | |
---|---|
Link(Node source,
Node target)
Calls Link(source, target, "") |
|
Link(Node source,
Node target,
java.lang.Object label)
Creates a link between the specified nodes with the specified label. |
Method Summary | |
---|---|
java.lang.Object |
getLabel()
Gets the data label of this link |
Node |
getSourceNode()
Gets the source node of this link. |
Node |
getTargetNode()
Gets the target node of this link. |
void |
setLabel(java.lang.Object data)
Sets the data label of this link. |
Methods inherited from class org.jgraph.graph.DefaultEdge |
---|
clone, getSource, getTarget, setSource, setTarget |
Methods inherited from class org.jgraph.graph.DefaultGraphCell |
---|
addPort, addPort, addPort, changeAttributes, getAttributes, getChildren, setAttributes |
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, setUserObject, toString |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.jgraph.graph.GraphCell |
---|
changeAttributes, getAttributes, setAttributes |
Field Detail |
---|
private static final long serialVersionUID
Constructor Detail |
---|
public Link(Node source, Node target, java.lang.Object label)
source
- a node to be connectedtarget
- the other node to be connected.label
- the data object labeling this node.public Link(Node source, Node target)
source
- a node to be connectedtarget
- the other node to be connected.Method Detail |
---|
public java.lang.Object getLabel()
public void setLabel(java.lang.Object data)
data
- the new label of this linkpublic Node getSourceNode()
public Node getTargetNode()
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |