|
||||||||||
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
public class DefaultEdge
A simple implementation for an edge.
Nested Class Summary | |
---|---|
static class |
DefaultEdge.DefaultRouting
|
Nested classes/interfaces inherited from class org.jgraph.graph.DefaultGraphCell |
---|
DefaultGraphCell.ValueChangeHandler |
Nested classes/interfaces inherited from interface org.jgraph.graph.Edge |
---|
Edge.Routing |
Field Summary | |
---|---|
protected static int |
center
|
protected static Point |
defaultLabel
|
static ArrayList |
defaultPoints
|
protected Object |
source
Source and target of the edge. |
protected Object |
target
Source and target of the edge. |
Fields inherited from class org.jgraph.graph.DefaultGraphCell |
---|
attributes, defaultBounds |
Fields inherited from class javax.swing.tree.DefaultMutableTreeNode |
---|
allowsChildren, children, EMPTY_ENUMERATION, parent, userObject |
Constructor Summary | |
---|---|
DefaultEdge()
Constructs an empty edge. |
|
DefaultEdge(Object userObject)
Constructs an edge that holds a reference to the specified user object. |
|
DefaultEdge(Object userObject,
boolean allowsChildren)
Constructs an edge that holds a reference to the specified user object and sets default values for points and the label position. |
Method Summary | |
---|---|
Map |
changeAttributes(Map change)
Override parent method to ensure non-null points. |
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 . |
Methods inherited from class org.jgraph.graph.DefaultGraphCell |
---|
cloneUserObject, getAttributes, getChildren, setAttributes, setUserObject |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.jgraph.graph.GraphCell |
---|
getAttributes, setAttributes |
Field Detail |
---|
protected static final int center
protected static final Point defaultLabel
public static final ArrayList defaultPoints
protected Object source
protected Object target
Constructor Detail |
---|
public DefaultEdge()
public DefaultEdge(Object userObject)
userObject
- reference to the user objectpublic DefaultEdge(Object userObject, boolean allowsChildren)
userObject
- reference to the user objectMethod Detail |
---|
public Map changeAttributes(Map change)
changeAttributes
in interface GraphCell
changeAttributes
in class DefaultGraphCell
public Object getSource()
getSource
in interface Edge
public Object getTarget()
getTarget
in interface Edge
public void setSource(Object port)
setSource
in interface Edge
public void setTarget(Object port)
edge
.
setTarget
in interface Edge
public Object clone()
clone
in class DefaultGraphCell
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |