Package org.eclipse.draw2d
Interface LayoutListener
- All Known Implementing Classes:
LayoutAnimator,LayoutListener.Stub
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.
- Since:
- 3.1
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic classA stub implementation which implements all of the declared methods. -
Method Summary
Modifier and TypeMethodDescriptionvoidinvalidate(IFigure container) Called when a container has been invalidated.booleanCalled prior to layout occurring.voidpostLayout(IFigure container) Called after layout has occurred.voidCalled when a child is about to be removed from its parent.voidsetConstraint(IFigure child, Object constraint) Called when a child's constraint is initialized or updated.
-
Method Details
-
invalidate
Called when a container has been invalidated.- Parameters:
container- the invalidated Figure- Since:
- 3.1
-
layout
Called prior to layout occurring. A listener may intercept a layout by returningtrue. If the layout is intercepted, the container'sLayoutManagerwill not receive a layout call.- Parameters:
container- the figure incurring a layout- Returns:
trueif the layout has been intercepted by the listener- Since:
- 3.1
-
postLayout
Called after layout has occurred.- Parameters:
container- the figure incurring a layout- Since:
- 3.1
-
remove
Called when a child is about to be removed from its parent.- Parameters:
child- the child being removed- Since:
- 3.1
-
setConstraint
Called when a child's constraint is initialized or updated.- Parameters:
child- the child being updatedconstraint- the child's new constraint- Since:
- 3.1
-