Eclipse Draw2d
3.1

org.eclipse.draw2d
Interface LayoutListener

All Known Implementing Classes:
LayoutListener.Stub

public interface LayoutListener

Experimental API.

Since:
3.1

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 has been changed
 

Method Detail

invalidate

public void invalidate(IFigure container)
Called when a container has been invalidated.

Parameters:
container - the invalidated Figure
Since:
3.1

layout

public boolean layout(IFigure container)
Called prior to layout occurring. A listener may intercept a layout by returning true. If the layout is intercepted, the container LayoutManager will not receive a layout call.

Parameters:
container - the figure incurring a layout
Returns:
true if the layout has been intercepted by the listener
Since:
3.1

postLayout

public void postLayout(IFigure container)
Called after layout has occurred.

Parameters:
container - the figure incurring a layout
Since:
3.1

remove

public void remove(IFigure child)
Called when a child is about to be removed from its parent.

Parameters:
child - the child being removed
Since:
3.1

setConstraint

public void setConstraint(IFigure child,
                          Object constraint)
Called when a child's constraint has been changed

Parameters:
child - the child being updated
constraint - the child's new constraint
Since:
3.1

Eclipse Draw2d
3.1

Copyright (c) IBM Corp. and others 2000, 2005. All Rights Reserved.