Follow Techotopia on Twitter

On-line Guides
All Guides
eBook Store
iOS / Android
Linux for Beginners
Office Productivity
Linux Installation
Linux Security
Linux Utilities
Linux Virtualization
Linux Kernel
System/Network Admin
Programming
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Databases
Mail Systems
openSolaris
Eclipse Documentation
Techotopia.com
Virtuatopia.com
Answertopia.com

How To Guides
Virtualization
General System Admin
Linux Security
Linux Filesystems
Web Servers
Graphics & Desktop
PC Hardware
Windows
Problem Solutions
Privacy Policy

  




 

 

Eclipse Draw2d
3.3

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.


Nested Class Summary
 
Nested classes inherited from class org.eclipse.draw2d. IFigure
IFigure.NoInsets
 
Field Summary
static java.lang.String PROPERTY_CONNECTION_ROUTER
          The connection router property.
static java.lang.String PROPERTY_POINTS
          The points property.
 
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.
  PointList getPoints ()
          Returns the PointList containing the Points that make up this Connection.
 java.lang.Object getRoutingConstraint ()
          Returns the routing constraint.
  ConnectionAnchor getSourceAnchor ()
          Returns the ConnectionAnchor at the source end 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 setPoints ( PointList list)
          Sets the PointList containing the Points that make up this Connection.
 void setRoutingConstraint (java.lang.Object cons)
          Sets the routing constraint used by the router.
 void setSourceAnchor ( ConnectionAnchor anchor)
          Sets the ConnectionAnchor to be used at the source end of this Connection.
 void setTargetAnchor ( ConnectionAnchor anchor)
          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, addCoordinateListener, addFigureListener, addFocusListener, addKeyListener, addLayoutListener, addMouseListener, addMouseMotionListener, addNotify, addPropertyChangeListener, addPropertyChangeListener, containsPoint, containsPoint, erase, findFigureAt, findFigureAt, findFigureAt, findFigureAtExcluding, findMouseEventTargetAt, getBackgroundColor, getBorder, getBounds, getChildren, getClientArea, getClientArea, getCursor, getFont, getForegroundColor, getInsets, getLayoutManager, getLocalBackgroundColor, getLocalForegroundColor, getMaximumSize, getMinimumSize, getMinimumSize, getParent, getPreferredSize, getPreferredSize, getSize, getToolTip, getUpdateManager, handleFocusGained, handleFocusLost, handleKeyPressed, handleKeyReleased, handleMouseDoubleClicked, handleMouseDragged, handleMouseEntered, handleMouseExited, handleMouseHover, handleMouseMoved, handleMousePressed, handleMouseReleased, hasFocus, internalGetEventDispatcher, intersects, invalidate, invalidateTree, isCoordinateSystem, isEnabled, isFocusTraversable, isMirrored, isOpaque, isRequestFocusEnabled, isShowing, isVisible, paint, remove, removeAncestorListener, removeCoordinateListener, removeFigureListener, removeFocusListener, removeKeyListener, removeLayoutListener, 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, setVisible, translate, translateFromParent, translateToAbsolute, translateToParent, translateToRelative, validate
 

Field Detail

PROPERTY_CONNECTION_ROUTER

public static final java.lang.String PROPERTY_CONNECTION_ROUTER
The connection router property. Used to signify that the ConnectionRouter has changed.

See Also:
Constant Field Values

PROPERTY_POINTS

public static final java.lang.String PROPERTY_POINTS
The points property. Used to signify the points in the Connection have changed.

See Also:
Constant Field Values
Method Detail

getConnectionRouter

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

Returns:
The ConnectionRouter for this Connection

setConnectionRouter

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

Parameters:
router - The ConnectionRouter to set for this Connection

getSourceAnchor

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

Returns:
The ConnectionAnchor at the source end of this Connection

getTargetAnchor

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

Returns:
The ConnectionAnchor at the target end of this Connection

getRoutingConstraint

public java.lang.Object getRoutingConstraint()
Returns the routing constraint. May be null.

Returns:
The routing constraint

setRoutingConstraint

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

Parameters:
cons - The routing constraint

setSourceAnchor

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

Parameters:
anchor - The source anchor

setTargetAnchor

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

Parameters:
anchor - The target anchor

getPoints

public 
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

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

Parameters:
list - The points for this Connection

Eclipse Draw2d
3.3

Copyright (c) IBM Corp. and others 2000, 2007. All Rights Reserved.

 
 
  Published under the terms of the Eclipse Public License Version 1.0 ("EPL") Design by Interspire