|
Eclipse Draw2d 3.3 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface LayoutManager
A helper for positioning child figures and determining the ideal size for a figure with children.
| Method Summary | |
|---|---|
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,
Object constraint)
Sets the constraint for the given child. |
| Method Detail |
|---|
Object getConstraint(IFigure child)
child - The figure
Dimension getMinimumSize(IFigure container,
int wHint,
int hHint)
container - The FigurewHint - the width hinthHint - the height hint
Dimension getPreferredSize(IFigure container,
int wHint,
int hHint)
container - The figurewHint - The width hinthHint - The height hint
void invalidate()
void layout(IFigure container)
container - The figurevoid remove(IFigure child)
child - the child being remoced
void setConstraint(IFigure child,
Object constraint)
child - The figureconstraint - The constraint
|
Eclipse Draw2d 3.3 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||