org.jgraph.graph
Class DefaultEdge
- java.lang.Object
-
- javax.swing.tree.DefaultMutableTreeNode
-
- org.jgraph.graph.DefaultGraphCell
-
- org.jgraph.graph.DefaultEdge
-
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Cloneable, javax.swing.tree.MutableTreeNode, javax.swing.tree.TreeNode, Edge, GraphCell
public class DefaultEdge extends DefaultGraphCell implements Edge
A simple implementation for an edge.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class and Description static classDefaultEdge.DefaultRoutingstatic classDefaultEdge.LoopRouting-
Nested classes/interfaces inherited from interface org.jgraph.graph.Edge
Edge.Routing
-
-
Constructor Summary
Constructors Constructor and Description DefaultEdge()Constructs an empty edge.DefaultEdge(java.lang.Object userObject)Constructs an edge that holds a reference to the specified user object.DefaultEdge(java.lang.Object userObject, AttributeMap storageMap)Constructs an edge that holds a reference to the specified user object and sets default values for points and the label position.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description java.lang.Objectclone()Create a clone of the cell.java.lang.ObjectgetSource()Returns the source of the edge.java.lang.ObjectgetTarget()Returns the target of the edge.voidsetSource(java.lang.Object port)Sets the source of the edge.voidsetTarget(java.lang.Object port)Returns the target ofedge.-
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, 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, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.jgraph.graph.GraphCell
changeAttributes, getAttributes, setAttributes
-
-
-
-
Constructor Detail
-
DefaultEdge
public DefaultEdge()
Constructs an empty edge.
-
DefaultEdge
public DefaultEdge(java.lang.Object userObject)
Constructs an edge that holds a reference to the specified user object.- Parameters:
userObject- reference to the user object
-
DefaultEdge
public DefaultEdge(java.lang.Object userObject, AttributeMap storageMap)Constructs an edge that holds a reference to the specified user object and sets default values for points and the label position.- Parameters:
userObject- reference to the user object
-
-
Method Detail
-
getSource
public java.lang.Object getSource()
Returns the source of the edge.
-
getTarget
public java.lang.Object getTarget()
Returns the target of the edge.
-
setSource
public void setSource(java.lang.Object port)
Sets the source of the edge.
-
setTarget
public void setTarget(java.lang.Object port)
Returns the target ofedge.
-
clone
public java.lang.Object clone()
Create a clone of the cell. The cloning of the user object is deferred to the cloneUserObject() method. The source and target references are set to null.- Overrides:
clonein classDefaultGraphCell- Returns:
- Object a clone of this object.
-
-
DataMelt 3.0 © DataMelt by jWork.ORG