Draw2D v2.0

org.eclipse.draw2d
Interface Connection

All Superinterfaces:
IFigure
All Known Implementing Classes:
PolylineConnection

public interface Connection
extends IFigure

A Connection is a figure that connects two objects.


Inner classes inherited from class org.eclipse.draw2d.IFigure
IFigure.NoInsets
 
Field Summary
static String PROPERTY_CONNECTION_ROUTER
           
static String PROPERTY_POINTS
           
 
Fields inherited from interface org.eclipse.draw2d.IFigure
MAX_DIMENSION, MIN_DIMENSION, NO_INSETS
 
Method Summary
 ConnectionRouter getConnectionRouter()
          Returns the ConnectionRouter used to route this Connection.
 ConnectionAnchor getEndAnchor()
          Deprecated. Returns the ConnectionAnchor at the end of this Connection.
 PointList getPoints()
          Returns the PointList containing the Points that make up this Connection.
 Object getRoutingConstraint()
          Returns the routing constraint or null.
 ConnectionAnchor getSourceAnchor()
          Returns the ConnectionAnchor at the source end of this Connection.
 ConnectionAnchor getStartAnchor()
          Deprecated. Returns the ConnectionAnchor at the start of this Connection.
 ConnectionAnchor getTargetAnchor()
          Returns the ConnectionAnchor at the target end of this Connection.
 void setConnectionRouter(ConnectionRouter router)
          Sets the ConnectionRouter for this Connection.
 void setEndAnchor(ConnectionAnchor end)
          Deprecated. Use setTargetAnchor.
 void setPoints(PointList list)
          Sets the PointList containing the Points that make up this Connection.
 void setRoutingConstraint(Object cons)
          Sets the routing constraint used by the router.
 void setSourceAnchor(ConnectionAnchor start)
          Sets the ConnectionAnchor to be used at the Source end of this Connection.
 void setStartAnchor(ConnectionAnchor start)
          Deprecated. Use setSourceAnchor().
 void setTargetAnchor(ConnectionAnchor end)
          Sets the ConnectionAnchor to be used at the target end of this Connection.
 
Methods inherited from interface org.eclipse.draw2d.IFigure
add, add, add, add, addAncestorListener, addFigureListener, addFocusListener, addKeyListener, addMouseListener, addMouseMotionListener, addNotify, addPropertyChangeListener, addPropertyChangeListener, containsPoint, containsPoint, erase, findFigureAt, findFigureAt, findFigureAtExcluding, findMouseEventTargetAt, getBackgroundColor, getBorder, getBounds, getChildren, getClientArea, getCursor, getFont, getForegroundColor, getInsets, getLayoutManager, getMaximumSize, getMinimumSize, getParent, getPreferredSize, getPreferredSize, getSize, getToolTip, getUpdateManager, handleFocusGained, handleFocusLost, handleKeyPressed, handleKeyReleased, handleMouseDoubleClicked, handleMouseDragged, handleMouseEntered, handleMouseExited, handleMouseHover, handleMouseMoved, handleMousePressed, handleMouseReleased, hasFocus, internalGetEventDispatcher, intersects, invalidate, isEnabled, isFocusTraversable, isOpaque, isRequestFocusEnabled, isVisible, paint, remove, removeAncestorListener, removeFigureListener, removeFocusListener, removeMouseListener, removeMouseMotionListener, removeNotify, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, requestFocus, revalidate, setBackgroundColor, setBorder, setBounds, setConstraint, setCursor, setEnabled, setFocusTraversable, setFont, setForegroundColor, setLayoutManager, setLocation, setMaximumSize, setMinimumSize, setOpaque, setParent, setPreferredSize, setRequestFocusEnabled, setSize, setSize, setToolTip, setUpdateManager, setVisible, translate, translateFromParent, translateToAbsolute, translateToParent, translateToRelative, validate
 

Field Detail

PROPERTY_CONNECTION_ROUTER

public static final String PROPERTY_CONNECTION_ROUTER

PROPERTY_POINTS

public static final String PROPERTY_POINTS
Method Detail

getConnectionRouter

public ConnectionRouter getConnectionRouter()
Returns the ConnectionRouter used to route this Connection. Does not return null.

setConnectionRouter

public void setConnectionRouter(ConnectionRouter router)
Sets the ConnectionRouter for this Connection.

getStartAnchor

public ConnectionAnchor getStartAnchor()
Deprecated. Returns the ConnectionAnchor at the start of this Connection.


getEndAnchor

public ConnectionAnchor getEndAnchor()
Deprecated. Returns the ConnectionAnchor at the end of this Connection.


getSourceAnchor

public ConnectionAnchor getSourceAnchor()
Returns the ConnectionAnchor at the source end of this Connection.

getTargetAnchor

public ConnectionAnchor getTargetAnchor()
Returns the ConnectionAnchor at the target end of this Connection.

getRoutingConstraint

public Object getRoutingConstraint()
Returns the routing constraint or null.

setRoutingConstraint

public void setRoutingConstraint(Object cons)
Sets the routing constraint used by the router.

setSourceAnchor

public void setSourceAnchor(ConnectionAnchor start)
Sets the ConnectionAnchor to be used at the Source end of this Connection.

setTargetAnchor

public void setTargetAnchor(ConnectionAnchor end)
Sets the ConnectionAnchor to be used at the target end of this Connection.

setStartAnchor

public void setStartAnchor(ConnectionAnchor start)
Deprecated. Use setSourceAnchor().


setEndAnchor

public void setEndAnchor(ConnectionAnchor end)
Deprecated. Use setTargetAnchor.


getPoints

public PointList getPoints()
Returns the PointList containing the Points that make up this Connection. This may be returned by reference.

setPoints

public void setPoints(PointList list)
Sets the PointList containing the Points that make up this Connection.

Draw2D v2.0