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 SummaryNested ClassesModifier and TypeInterfaceDescriptionstatic classA stub implementation which implements all of the declared methods.
- 
Method SummaryModifier 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- 
invalidateCalled when a container has been invalidated.- Parameters:
- container- the invalidated Figure
- Since:
- 3.1
 
- 
layoutCalled 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
 
- 
postLayoutCalled after layout has occurred.- Parameters:
- container- the figure incurring a layout
- Since:
- 3.1
 
- 
removeCalled when a child is about to be removed from its parent.- Parameters:
- child- the child being removed
- Since:
- 3.1
 
- 
setConstraintCalled when a child's constraint is initialized or updated.- Parameters:
- child- the child being updated
- constraint- the child's new constraint
- Since:
- 3.1
 
 
-