Package org.eclipse.draw2d
Interface Connection
- All Superinterfaces:
- IFigure
- All Known Implementing Classes:
- PolylineConnection
A Connection is a figure that connects two objects.
- 
Nested Class SummaryNested classes/interfaces inherited from interface org.eclipse.draw2d.IFigureIFigure.NoInsets
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final StringThe connection router property.static final StringThe points property.Fields inherited from interface org.eclipse.draw2d.IFigureMAX_DIMENSION, MIN_DIMENSION, NO_INSETS
- 
Method SummaryModifier and TypeMethodDescriptionReturns the ConnectionRouter used to route this Connection.Returns the PointList containing the Points that make up this Connection.Returns the routing constraint.Returns the ConnectionAnchor at the source end of this Connection.Returns the ConnectionAnchor at the target end of this Connection.voidsetConnectionRouter(ConnectionRouter router) Sets the ConnectionRouter for this Connection.voidSets the PointList containing the Points that make up this Connection.voidsetRoutingConstraint(Object cons) Sets the routing constraint used by the router.voidsetSourceAnchor(ConnectionAnchor anchor) Sets the ConnectionAnchor to be used at the source end of this Connection.voidsetTargetAnchor(ConnectionAnchor anchor) Sets the ConnectionAnchor to be used at the target end of this Connection.Methods inherited from interface org.eclipse.draw2d.IFigureadd, add, add, add, addAncestorListener, addCoordinateListener, addFigureListener, addFocusListener, addKeyListener, addLayoutListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, addNotify, addPropertyChangeListener, addPropertyChangeListener, containsPoint, containsPoint, erase, findFigureAt, findFigureAt, findFigureAt, findFigureAtExcluding, findMouseEventTargetAt, getBackgroundColor, getBorder, getBounds, getChildren, getClientArea, getClientArea, getClippingStrategy, getCursor, getFont, getForegroundColor, getInsets, getLayoutManager, getLocalBackgroundColor, getLocalForegroundColor, getLocation, getMaximumSize, getMinimumSize, getMinimumSize, getParent, getPreferredSize, getPreferredSize, getSize, getToolTip, getUpdateManager, handleFocusGained, handleFocusLost, handleKeyPressed, handleKeyReleased, handleMouseDoubleClicked, handleMouseDragged, handleMouseEntered, handleMouseExited, handleMouseHover, handleMouseMoved, handleMousePressed, handleMouseReleased, handleMouseWheelScrolled, hasFocus, internalGetEventDispatcher, intersects, invalidate, invalidateTree, isCoordinateSystem, isEnabled, isFocusTraversable, isMirrored, isOpaque, isRequestFocusEnabled, isShowing, isVisible, paint, remove, removeAncestorListener, removeCoordinateListener, removeFigureListener, removeFocusListener, removeKeyListener, removeLayoutListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removeNotify, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, requestFocus, revalidate, setBackgroundColor, setBorder, setBounds, setClippingStrategy, setConstraint, setCursor, setEnabled, setFocusTraversable, setFont, setForegroundColor, setLayoutManager, setLocation, setMaximumSize, setMinimumSize, setOpaque, setParent, setPreferredSize, setRequestFocusEnabled, setSize, setSize, setToolTip, setVisible, translate, translateFromParent, translateToAbsolute, translateToParent, translateToRelative, validate
- 
Field Details- 
PROPERTY_CONNECTION_ROUTERThe connection router property. Used to signify that the ConnectionRouter has changed.- See Also:
 
- 
PROPERTY_POINTSThe points property. Used to signify the points in the Connection have changed.- See Also:
 
 
- 
- 
Method Details- 
getConnectionRouterConnectionRouter getConnectionRouter()Returns the ConnectionRouter used to route this Connection. Does not return null.- Returns:
- The ConnectionRouter for this Connection
 
- 
setConnectionRouterSets the ConnectionRouter for this Connection.- Parameters:
- router- The ConnectionRouter to set for this Connection
 
- 
getSourceAnchorConnectionAnchor getSourceAnchor()Returns the ConnectionAnchor at the source end of this Connection.- Returns:
- The ConnectionAnchor at the source end of this Connection
 
- 
getTargetAnchorConnectionAnchor getTargetAnchor()Returns the ConnectionAnchor at the target end of this Connection.- Returns:
- The ConnectionAnchor at the target end of this Connection
 
- 
getRoutingConstraintObject getRoutingConstraint()Returns the routing constraint. May benull.- Returns:
- The routing constraint
 
- 
setRoutingConstraintSets the routing constraint used by the router.- Parameters:
- cons- The routing constraint
 
- 
setSourceAnchorSets the ConnectionAnchor to be used at the source end of this Connection.- Parameters:
- anchor- The source anchor
 
- 
setTargetAnchorSets the ConnectionAnchor to be used at the target end of this Connection.- Parameters:
- anchor- The target anchor
 
- 
getPointsPointList getPoints()Returns the PointList containing the Points that make up this Connection. This may be returned by reference.- Returns:
- The points for this Connection
 
- 
setPointsSets the PointList containing the Points that make up this Connection.- Parameters:
- list- The points for this Connection
 
 
-