Draw2D v2.0

org.eclipse.draw2d
Interface LayoutManager

All Known Implementing Classes:
AbstractLayout

public interface LayoutManager

Lays out figures, using a constraint if necessary.


Method Summary
 Object getConstraint(IFigure figure)
          Returns the constraint for the given figure.
 Dimension getMinimumSize(IFigure parent)
          Returns the minimum size of the given figure.
 Dimension getPreferredSize(IFigure parent)
          Returns the preferred size of the given figure.
 Dimension getPreferredSize(IFigure parent, int wHint, int hHint)
          Returns the preferred size of the given figure, using width and height hints.
 void invalidate()
          Tells the LayoutManager to throw away all cached information about the figures it is resposible for.
 void invalidate(IFigure child)
          Tells the LayoutManager to throw away any cached information about the given figure.
 void layout(IFigure parent)
          Lays out the given figure.
 void remove(IFigure figure)
          Removes the given figure from this LayoutManager.
 void setConstraint(IFigure figure, Object constraint)
          Sets the constraint for the given figure.
 

Method Detail

getConstraint

public Object getConstraint(IFigure figure)
Returns the constraint for the given figure.

getMinimumSize

public Dimension getMinimumSize(IFigure parent)
Returns the minimum size of the given figure.

getPreferredSize

public Dimension getPreferredSize(IFigure parent)
Returns the preferred size of the given figure.

getPreferredSize

public Dimension getPreferredSize(IFigure parent,
                                  int wHint,
                                  int hHint)
Returns the preferred size of the given figure, using width and height hints.

invalidate

public void invalidate()
Tells the LayoutManager to throw away all cached information about the figures it is resposible for.

invalidate

public void invalidate(IFigure child)
Tells the LayoutManager to throw away any cached information about the given figure.

layout

public void layout(IFigure parent)
Lays out the given figure.

remove

public void remove(IFigure figure)
Removes the given figure from this LayoutManager.

setConstraint

public void setConstraint(IFigure figure,
                          Object constraint)
Sets the constraint for the given figure.

Draw2D v2.0