|
org.eclipse.draw2d
Class ConnectionLayer
java.lang.Object
org.eclipse.draw2d.Figure
org.eclipse.draw2d.Layer
org.eclipse.draw2d.FreeformLayer
org.eclipse.draw2d.ConnectionLayer
-
All Implemented Interfaces:
-
FreeformFigure,
IFigure
- public class ConnectionLayer
- extends
FreeformLayer
Layer designed specifically to handle the presence of connections. This is done due to
the necessity of having a router for the connections added.
Fields inherited from class org.eclipse.draw2d.
Figure
|
bgColor,
border,
bounds,
fgColor,
flags,
font,
MAX_FLAG,
maxSize,
minSize,
NO_MANAGER,
prefSize,
toolTip
|
Methods inherited from class org.eclipse.draw2d.
Figure
|
add,
add,
add,
addAncestorListener,
addCoordinateListener,
addFigureListener,
addFocusListener,
addKeyListener,
addLayoutListener,
addListener,
addMouseListener,
addMouseMotionListener,
addNotify,
addPropertyChangeListener,
addPropertyChangeListener,
containsPoint,
erase,
findDescendantAtExcluding,
findFigureAt,
findFigureAt,
findFigureAtExcluding,
findMouseEventTargetAt,
findMouseEventTargetInDescendantsAt,
fireCoordinateSystemChanged,
fireFigureMoved,
firePropertyChange,
firePropertyChange,
firePropertyChange,
getBackgroundColor,
getBorder,
getBounds,
getChildren,
getClientArea,
getClientArea,
getCursor,
getFlag,
getFont,
getForegroundColor,
getInsets,
getLayoutManager,
getListeners,
getLocalBackgroundColor,
getLocalFont,
getLocalForegroundColor,
getLocation,
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,
isMouseEventTarget,
isOpaque,
isRequestFocusEnabled,
isShowing,
isValid,
isValidationRoot,
isVisible,
layout,
paintBorder,
paintChildren,
paintClientArea,
paintFigure,
removeAll,
removeAncestorListener,
removeCoordinateListener,
removeFigureListener,
removeFocusListener,
removeKeyListener,
removeLayoutListener,
removeListener,
removeMouseListener,
removeMouseMotionListener,
removeNotify,
removePropertyChangeListener,
removePropertyChangeListener,
repaint,
repaint,
repaint,
requestFocus,
revalidate,
setBackgroundColor,
setBorder,
setBounds,
setChildrenDirection,
setChildrenEnabled,
setChildrenOrientation,
setConstraint,
setCursor,
setEnabled,
setFlag,
setFocusTraversable,
setFont,
setForegroundColor,
setLayoutManager,
setLocation,
setMaximumSize,
setMinimumSize,
setOpaque,
setParent,
setPreferredSize,
setPreferredSize,
setRequestFocusEnabled,
setSize,
setSize,
setToolTip,
setValid,
setVisible,
translate,
translateFromParent,
translateToAbsolute,
translateToParent,
translateToRelative,
useLocalCoordinates,
validate
|
Methods inherited from class java.lang.Object
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
|
Methods inherited from interface org.eclipse.draw2d.
IFigure
|
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,
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
|
connectionRouter
protected
ConnectionRouter connectionRouter
- The ConnectionRouter used to route all connections on this layer.
ConnectionLayer
public ConnectionLayer()
add
public void add(
IFigure figure,
java.lang.Object constraint,
int index)
- Adds the given figure with the given contraint at the given index. If the figure is a
Connection , its
ConnectionRouter is set.
-
-
Specified by:
-
add
in interface
IFigure
-
Overrides:
-
add
in class
FreeformLayer
-
-
Parameters:
-
figure - Figure being added -
constraint - Constraint of the figure being added -
index - Index where the figure is to be added -
Since:
- 2.0
-
See Also:
-
IFigure.add(IFigure, Object, int)
getConnectionRouter
public
ConnectionRouter getConnectionRouter()
- Returns the ConnectionRouter being used by this layer.
-
-
Returns:
- ConnectionRouter being used by this layer
-
Since:
- 2.0
paint
public void paint(
Graphics graphics)
-
Description copied from interface:
IFigure
- Paints this IFigure and its children.
-
-
Specified by:
-
paint
in interface
IFigure
-
Overrides:
-
paint
in class
Figure
-
-
Parameters:
-
graphics - The Graphics object used for painting -
See Also:
-
IFigure.paint(Graphics)
remove
public void remove(
IFigure figure)
- Removes the figure from this Layer. If the figure is a
Connection , that
Connection's
ConnectionRouter is set to null .
-
-
Specified by:
-
remove
in interface
IFigure
-
Overrides:
-
remove
in class
FreeformLayer
-
-
Parameters:
-
figure - The figure to remove -
See Also:
-
IFigure.remove(IFigure)
setConnectionRouter
public void setConnectionRouter(
ConnectionRouter router)
- Sets the ConnectionRouter for this layer. This router is set as the ConnectionRouter
for all the child connections of this Layer.
-
-
Parameters:
-
router - The ConnectionRouter to set for this Layer -
Since:
- 2.0
setAntialias
public void setAntialias(int antialias)
- Sets whether antialiasing should be enabled for the connection layer. If this value is
set to something other than
SWT#DEFAULT ,
Graphics.setAntialias(int)
will be called with the given value when painting this layer.
-
-
Parameters:
-
antialias - the antialias setting -
Since:
- 3.1
Copyright (c) IBM Corp. and others 2000, 2007. All Rights Reserved.
|
|