public interface LayoutListener
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.
| Modifier and Type | Interface and Description |
|---|---|
static class |
LayoutListener.Stub
A stub implementation which implements all of the declared methods.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
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 layouttrue 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 constraintCopyright (c) IBM Corp. and others 2000, 2011. All Rights Reserved.