|
Eclipse Draw2d 3.8.0.201206011245 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface LayoutListener
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,
java.lang.Object constraint)
Called when a child's constraint is initialized or updated. |
Method Detail |
---|
void invalidate(IFigure container)
container
- the invalidated Figureboolean 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
listenervoid postLayout(IFigure container)
container
- the figure incurring a layoutvoid remove(IFigure child)
child
- the child being removedvoid setConstraint(IFigure child, java.lang.Object constraint)
child
- the child being updatedconstraint
- the child's new constraint
|
Eclipse Draw2d 3.8.0.201206011245 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |