|
Draw2d 3.9.0.201308190730 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.draw2d.Figure
org.eclipse.draw2d.Layer
org.eclipse.draw2d.FreeformLayer
org.eclipse.draw2d.ConnectionLayer
public class ConnectionLayer
Layer designed specifically to handle the presence of connections. This is done due to the necessity of having a router for the connections added.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class org.eclipse.draw2d.Figure |
---|
Figure.FigureIterator, Figure.IdentitySearch |
Nested classes/interfaces inherited from interface org.eclipse.draw2d.IFigure |
---|
IFigure.NoInsets |
Field Summary | |
---|---|
protected ConnectionRouter |
connectionRouter
The ConnectionRouter used to route all connections on this layer. |
Fields inherited from class org.eclipse.draw2d.Figure |
---|
bgColor, border, bounds, fgColor, flags, font, MAX_FLAG, maxSize, minSize, NO_MANAGER, prefSize, toolTip |
Fields inherited from interface org.eclipse.draw2d.IFigure |
---|
MAX_DIMENSION, MIN_DIMENSION, NO_INSETS |
Constructor Summary | |
---|---|
ConnectionLayer()
|
Method Summary | |
---|---|
void |
add(IFigure figure,
java.lang.Object constraint,
int index)
Adds the given figure with the given contraint at the given index. |
ConnectionRouter |
getConnectionRouter()
Returns the ConnectionRouter being used by this layer. |
void |
paint(Graphics graphics)
Paints this Figure and its children. |
void |
remove(IFigure figure)
Removes the figure from this Layer. |
void |
setAntialias(int antialias)
Sets whether antialiasing should be enabled for the connection layer. |
void |
setConnectionRouter(ConnectionRouter router)
Sets the ConnectionRouter for this layer. |
Methods inherited from class org.eclipse.draw2d.FreeformLayer |
---|
addFreeformListener, fireExtentChanged, fireMoved, getFreeformExtent, primTranslate, removeFreeformListener, setFreeformBounds |
Methods inherited from class org.eclipse.draw2d.Layer |
---|
containsPoint, findFigureAt |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected ConnectionRouter connectionRouter
Constructor Detail |
---|
public ConnectionLayer()
Method Detail |
---|
public void add(IFigure figure, java.lang.Object constraint, int index)
Connection
, its ConnectionRouter
is set.
add
in interface IFigure
add
in class FreeformLayer
figure
- Figure being addedconstraint
- Constraint of the figure being addedindex
- Index where the figure is to be addedIFigure.add(IFigure, Object, int)
public ConnectionRouter getConnectionRouter()
public void paint(Graphics graphics)
Figure
paint
in interface IFigure
paint
in class Figure
graphics
- The Graphics object used for paintingIFigure.paint(Graphics)
public void remove(IFigure figure)
Connection
, that Connection's ConnectionRouter
is set to null
.
remove
in interface IFigure
remove
in class FreeformLayer
figure
- The figure to removeIFigure.remove(IFigure)
public void setConnectionRouter(ConnectionRouter router)
router
- The ConnectionRouter to set for this Layerpublic void setAntialias(int antialias)
SWT.DEFAULT
,
Graphics.setAntialias(int)
will be called with the given value
when painting this layer.
antialias
- the antialias setting
|
Draw2d 3.9.0.201308190730 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |