Interface Connection

All Superinterfaces:
IFigure
All Known Implementing Classes:
PolylineConnection

public interface Connection extends IFigure
A Connection is a figure that connects two objects.
  • Field Details

    • PROPERTY_CONNECTION_ROUTER

      static final String PROPERTY_CONNECTION_ROUTER
      The connection router property. Used to signify that the ConnectionRouter has changed.
      See Also:
    • PROPERTY_POINTS

      static final String PROPERTY_POINTS
      The points property. Used to signify the points in the Connection have changed.
      See Also:
  • Method Details

    • getConnectionRouter

      ConnectionRouter getConnectionRouter()
      Returns the ConnectionRouter used to route this Connection. Does not return null.
      Returns:
      The ConnectionRouter for this Connection
    • setConnectionRouter

      void setConnectionRouter(ConnectionRouter router)
      Sets the ConnectionRouter for this Connection.
      Parameters:
      router - The ConnectionRouter to set for this Connection
    • getSourceAnchor

      ConnectionAnchor getSourceAnchor()
      Returns the ConnectionAnchor at the source end of this Connection.
      Returns:
      The ConnectionAnchor at the source end of this Connection
    • getTargetAnchor

      ConnectionAnchor getTargetAnchor()
      Returns the ConnectionAnchor at the target end of this Connection.
      Returns:
      The ConnectionAnchor at the target end of this Connection
    • getRoutingConstraint

      Object getRoutingConstraint()
      Returns the routing constraint. May be null.
      Returns:
      The routing constraint
    • setRoutingConstraint

      void setRoutingConstraint(Object cons)
      Sets the routing constraint used by the router.
      Parameters:
      cons - The routing constraint
    • setSourceAnchor

      void setSourceAnchor(ConnectionAnchor anchor)
      Sets the ConnectionAnchor to be used at the source end of this Connection.
      Parameters:
      anchor - The source anchor
    • setTargetAnchor

      void setTargetAnchor(ConnectionAnchor anchor)
      Sets the ConnectionAnchor to be used at the target end of this Connection.
      Parameters:
      anchor - The target anchor
    • getPoints

      PointList getPoints()
      Returns the PointList containing the Points that make up this Connection. This may be returned by reference.
      Returns:
      The points for this Connection
    • setPoints

      void setPoints(PointList list)
      Sets the PointList containing the Points that make up this Connection.
      Parameters:
      list - The points for this Connection