org.jgraph.graph
public class DefaultEdge extends DefaultGraphCell implements Edge
| Nested Class Summary | |
|---|---|
| static class | DefaultEdge.DefaultRouting |
| static class | DefaultEdge.LoopRouting |
| Field Summary | |
|---|---|
| protected Object | source Source and target of the edge. |
| protected Object | target Source and target of the edge. |
| 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, 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 | |
|---|---|
| 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. |
Parameters: userObject reference to the user object
Parameters: userObject reference to the user object
Returns: Object a clone of this object.
edge.