Package org.jgraph.graph
Interface Port
-
- All Superinterfaces:
GraphCell
- All Known Implementing Classes:
DefaultPort
public interface Port extends GraphCell
Defines the requirements for an object that represents a port in a graph model.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanaddEdge(java.lang.Object edge)Addsedgeto the list of ports.java.util.Iteratoredges()Returns an iterator of the edges connected to the port.PortgetAnchor()Returns the anchor of the port.booleanremoveEdge(java.lang.Object edge)Removesedgefrom the list of ports.voidsetAnchor(Port port)Sets the anchor of the port.-
Methods inherited from interface org.jgraph.graph.GraphCell
changeAttributes, getAttributes, setAttributes
-
-
-
-
Method Detail
-
edges
java.util.Iterator edges()
Returns an iterator of the edges connected to the port.
-
addEdge
boolean addEdge(java.lang.Object edge)
Addsedgeto the list of ports.
-
removeEdge
boolean removeEdge(java.lang.Object edge)
Removesedgefrom the list of ports.
-
getAnchor
Port getAnchor()
Returns the anchor of the port.
-
setAnchor
void setAnchor(Port port)
Sets the anchor of the port.
-
-