com.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
 boolean add(java.lang.Object edge)
          Adds edge to the list of ports.
 java.util.Iterator edges()
          Returns an iterator of the edges connected to the port.
 Port getAnchor()
          Returns the anchor of the port.
 boolean remove(java.lang.Object edge)
          Removes edge from the list of ports.
 void setAnchor(Port port)
          Sets the anchor of the port.
 
Methods inherited from interface com.jgraph.graph.GraphCell
getAttributes, setAttributes
 

Method Detail

edges

public java.util.Iterator edges()
Returns an iterator of the edges connected to the port.


add

public boolean add(java.lang.Object edge)
Adds edge to the list of ports.


remove

public boolean remove(java.lang.Object edge)
Removes edge from the list of ports.


getAnchor

public Port getAnchor()
Returns the anchor of the port.


setAnchor

public void setAnchor(Port port)
Sets the anchor of the port.