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 Details

    • edges

      Iterator edges()
      Returns an iterator of the edges connected to the port.
    • addEdge

      boolean addEdge(Object edge)
      Adds edge to the list of ports.
    • removeEdge

      boolean removeEdge(Object edge)
      Removes edge from the list of ports.
    • getAnchor

      Port getAnchor()
      Returns the anchor of the port.
    • setAnchor

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