org.jgraph.graph
public class DefaultPort extends DefaultGraphCell implements Port
| Field Summary | |
|---|---|
| protected Port | anchor Reference to the anchor of this port |
| protected HashSet | edges Edges that are connected to the port |
| Constructor Summary | |
|---|---|
| DefaultPort()
Constructs an empty port. | |
| DefaultPort(Object userObject)
Constructs a port that holds a reference to the specified user object.
| |
| DefaultPort(Object userObject, Port anchor)
Constructs a port that holds a reference to the specified user object
and a reference to the specified anchor.
| |
| Method Summary | |
|---|---|
| boolean | addEdge(Object edge)
Adds edge to the list of edges. |
| Object | clone()
Create a clone of the cell. |
| Iterator | edges()
Returns an iterator of the edges connected
to the port. |
| Port | getAnchor()
Returns the anchor of this port. |
| Set | getEdges()
Returns the collection of edges connected to this port. |
| boolean | removeEdge(Object edge)
Removes edge from the list of edges. |
| void | setAnchor(Port port)
Sets the anchor of this port. |
| void | setEdges(Set edges)
Sets the collection of edges connected to this port. |
Parameters: userObject reference to the user object
Parameters: userObject reference to the user object anchor reference to a graphcell that constitutes the anchor
edge to the list of edges.Returns: Object a clone of this object.
edge from the list of edges.