public class DefaultEdge extends DefaultGraphCell implements Edge
Modifier and Type | Class and Description |
---|---|
static class |
DefaultEdge.DefaultRouting |
static class |
DefaultEdge.LoopRouting |
Edge.Routing
Modifier and Type | Field and Description |
---|---|
protected Object |
source
Source and target of the edge.
|
protected Object |
target
Source and target of the edge.
|
attributes
allowsChildren, children, EMPTY_ENUMERATION, parent, userObject
Constructor and Description |
---|
DefaultEdge()
Constructs an empty edge.
|
DefaultEdge(Object userObject)
Constructs an edge that holds a reference to the specified user object.
|
DefaultEdge(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.
|
Modifier and Type | Method and Description |
---|---|
Object |
clone()
Create a clone of the cell.
|
Object |
getSource()
Returns the source of the edge.
|
Object |
getTarget()
Returns the target of the edge.
|
void |
setSource(Object port)
Sets the source of the edge.
|
void |
setTarget(Object port)
Returns the target of
edge . |
addPort, addPort, addPort, changeAttributes, getAttributes, getChildren, setAttributes
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
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
changeAttributes, getAttributes, setAttributes
protected Object source
protected Object target
public DefaultEdge()
public DefaultEdge(Object userObject)
userObject
- reference to the user objectpublic DefaultEdge(Object userObject, AttributeMap storageMap)
userObject
- reference to the user objectpublic Object getSource()
public Object getTarget()
public void setSource(Object port)
public void setTarget(Object port)
edge
.public Object clone()
clone
in class DefaultGraphCell
Copyright (C) 2001-2009 JGraph Ltd. All rights reserved.