|
Eclipse Draw2d 3.2 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Classes which implement this interface provide callback hooks for various layout related events.
Instances can be hooked to figures by calling IFigure.addLayoutListener(LayoutListener)
. Listeners will be made aware of various
steps of the layout mechanism, and even have the opportunity to prevent normal layout
from occurring.
Nested Class Summary | |
static class |
LayoutListener.Stub
A stub implementation which implements all of the declared methods. |
Method Summary | |
void |
invalidate(IFigure container)
Called when a container has been invalidated. |
boolean |
layout(IFigure container)
Called prior to layout occurring. |
void |
postLayout(IFigure container)
Called after layout has occurred. |
void |
remove(IFigure child)
Called when a child is about to be removed from its parent. |
void |
setConstraint(IFigure child,
Object constraint)
Called when a child's constraint is initialized or updated. |
Method Detail |
public void invalidate(IFigure container)
container
- the invalidated Figurepublic boolean layout(IFigure container)
true
. If the layout is intercepted, the container's
LayoutManager
will not receive a layout call.
container
- the figure incurring a layout
true
if the layout has been intercepted by the listenerpublic void postLayout(IFigure container)
container
- the figure incurring a layoutpublic void remove(IFigure child)
child
- the child being removedpublic void setConstraint(IFigure child, Object constraint)
child
- the child being updatedconstraint
- the child's new constraint
|
Eclipse Draw2d 3.2 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |