public interface LayoutManager
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
getConstraint(IFigure child)
Returns the constraint for the given figure.
|
Dimension |
getMinimumSize(IFigure container,
int wHint,
int hHint)
Returns the minimum size of the given figure.
|
Dimension |
getPreferredSize(IFigure container,
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 responsible for.
|
void |
layout(IFigure container)
Lays out the given figure.
|
void |
remove(IFigure child)
Removes the given child from this layout.
|
void |
setConstraint(IFigure child,
java.lang.Object constraint)
Sets the constraint for the given child.
|
java.lang.Object getConstraint(IFigure child)
child
- The figureDimension getMinimumSize(IFigure container, int wHint, int hHint)
container
- The FigurewHint
- the width hinthHint
- the height hintDimension getPreferredSize(IFigure container, int wHint, int hHint)
container
- The figurewHint
- The width hinthHint
- The height hintvoid invalidate()
void layout(IFigure container)
container
- The figurevoid remove(IFigure child)
child
- the child being remocedvoid setConstraint(IFigure child, java.lang.Object constraint)
child
- The figureconstraint
- The constraintCopyright (c) IBM Corp. and others 2000, 2011. All Rights Reserved.