|
Eclipse Draw2d 2.1 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Lays out figures, using a constraint if necessary.
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 resposible 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 remocedpublic void setConstraint(IFigure child, Object constraint)
child
- The figureconstraint
- The constraint
|
Eclipse Draw2d 2.1 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |