|
Eclipse Draw2d 2.1 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
A figure that allows its children to extend into negative coordinates. This figure
must be placed in a FreeformViewport
. Also, you shouldn't
call IFigure.setBounds(Rectangle)
on this figure. The bounds will be
calculated based on the extent of its children. A FreeformFigure's bounds will be the
smallest rectangle that will contain all of its children.
Nested Class Summary |
Nested classes inherited from class org.eclipse.draw2d.IFigure |
IFigure.NoInsets |
Field Summary |
Fields inherited from interface org.eclipse.draw2d.IFigure |
MAX_DIMENSION, MIN_DIMENSION, NO_INSETS |
Method Summary | |
void |
addFreeformListener(FreeformListener listener)
Adds a FreeformListener to this FreeformFigure. |
void |
fireExtentChanged()
Notifies listeners that the freeform extent (i.e. bounds) has changed. |
Rectangle |
getFreeformExtent()
Returns the freeform extent, essentially the bounds of the FreeformFigure. |
void |
removeFreeformListener(FreeformListener listener)
Removes the given listener from this FreeformFigure. |
void |
setFreeformBounds(Rectangle bounds)
Sets the freeform bounds of this FreeformFigure. |
Method Detail |
public void addFreeformListener(FreeformListener listener)
listener
- the listenerpublic void fireExtentChanged()
public Rectangle getFreeformExtent()
public void removeFreeformListener(FreeformListener listener)
listener
- the listenerpublic void setFreeformBounds(Rectangle bounds)
bounds
- the new freeform bounds
|
Eclipse Draw2d 2.1 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |