|
Eclipse Draw2d 3.3 |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
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 |
public Object getConstraint(IFigure child)
child - The figure
public Dimension getMinimumSize(IFigure container,
int wHint,
int hHint)
container - The FigurewHint - the width hinthHint - the height hint
public Dimension getPreferredSize(IFigure container,
int wHint,
int hHint)
container - The figurewHint - The width hinthHint - The height hint
public void invalidate()
public void layout(IFigure container)
container - The figurepublic void remove(IFigure child)
child - the child being remoced
public 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 | ||||||||||