|
Eclipse Draw2d 2.1 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.eclipse.draw2d.Figure | +--org.eclipse.draw2d.Layer | +--org.eclipse.draw2d.FreeformLayer
A Layer that can extend in all 4 directions.
Nested Class Summary |
Nested classes inherited from class org.eclipse.draw2d.Figure |
Figure.FigureIterator |
Nested classes inherited from class org.eclipse.draw2d.IFigure |
IFigure.NoInsets |
Field Summary |
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 | |
FreeformLayer()
|
Method Summary | |
void |
add(IFigure child,
Object constraint,
int index)
Adds the child IFigure using the specified index and constraint. |
void |
addFreeformListener(FreeformListener listener)
Adds a FreeformListener to this FreeformFigure. |
void |
fireExtentChanged()
Notifies listeners that the freeform extent (i.e. bounds) has changed. |
protected void |
fireMoved()
Overrides to do nothing. |
Rectangle |
getFreeformExtent()
Returns the freeform extent, essentially the bounds of the FreeformFigure. |
void |
primTranslate(int dx,
int dy)
Translates this Figure's bounds, without firing a move. |
void |
remove(IFigure child)
Removes the given IFigure from this IFigure's list of children. |
void |
removeFreeformListener(FreeformListener listener)
Removes the given listener from this FreeformFigure. |
void |
setFreeformBounds(Rectangle bounds)
Sets the freeform bounds of this FreeformFigure. |
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 |
Constructor Detail |
public FreeformLayer()
Method Detail |
public void add(IFigure child, Object constraint, int index)
IFigure
add
in interface IFigure
add
in class Figure
child
- The IFigure to addconstraint
- The newly added IFigure's constraintindex
- The index where the IFigure should be addedIFigure.add(IFigure, Object, int)
public void addFreeformListener(FreeformListener listener)
FreeformFigure
addFreeformListener
in interface FreeformFigure
listener
- the listenerFreeformFigure.addFreeformListener(FreeformListener)
public void fireExtentChanged()
FreeformFigure
fireExtentChanged
in interface FreeformFigure
FreeformFigure.fireExtentChanged()
protected void fireMoved()
fireMoved
in class Figure
Figure.fireMoved()
public Rectangle getFreeformExtent()
FreeformFigure
getFreeformExtent
in interface FreeformFigure
FreeformFigure.getFreeformExtent()
public void primTranslate(int dx, int dy)
Figure
primTranslate
in class Figure
dx
- The amount to translate horizontallydy
- The amount to translate verticallyFigure.primTranslate(int, int)
public void remove(IFigure child)
IFigure
remove
in interface IFigure
remove
in class Figure
child
- The IFigure to removeIFigure.remove(IFigure)
public void removeFreeformListener(FreeformListener listener)
FreeformFigure
removeFreeformListener
in interface FreeformFigure
listener
- the listenerFreeformFigure.removeFreeformListener(FreeformListener)
public void setFreeformBounds(Rectangle bounds)
FreeformFigure
setFreeformBounds
in interface FreeformFigure
bounds
- the new freeform boundsFreeformFigure.setFreeformBounds(Rectangle)
|
Eclipse Draw2d 2.1 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |