|
Draw2D v2.0 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--org.eclipse.draw2d.AbstractLayout
Provides generic support for LayoutManagers.
| Constructor Summary | |
AbstractLayout()
|
|
| Method Summary | |
protected abstract Dimension |
calculatePreferredSize(IFigure container)
Calculates the preferred size of the given figure. |
protected Dimension |
calculatePreferredSize(IFigure container,
int wHint,
int hHint)
Calculates the preferred size of the given figure, using width and height hints. |
protected Dimension |
getBorderPreferredSize(IFigure container)
Returns the preferred size of the figure's border. |
Object |
getConstraint(IFigure child)
Returns the constraint for the given figure. |
Dimension |
getMinimumSize(IFigure container)
Returns the minimum size of the given figure. |
Dimension |
getPreferredSize(IFigure container)
Returns the preferred 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()
Removes all cached information for all figures this LayoutManager is responsible for. |
void |
invalidate(IFigure figure)
Removes any cached information about the given figure. |
void |
remove(IFigure child)
Removes the given figure from this LayoutManager's list of figures. |
void |
setConstraint(IFigure figure,
Object constraint)
Sets the constraint for the given figure. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.eclipse.draw2d.LayoutManager |
layout |
| Constructor Detail |
public AbstractLayout()
| Method Detail |
protected abstract Dimension calculatePreferredSize(IFigure container)
protected Dimension calculatePreferredSize(IFigure container,
int wHint,
int hHint)
protected Dimension getBorderPreferredSize(IFigure container)
public Object getConstraint(IFigure child)
getConstraint in interface LayoutManagerpublic Dimension getMinimumSize(IFigure container)
getMinimumSize in interface LayoutManager
public Dimension getPreferredSize(IFigure container,
int wHint,
int hHint)
calculatePreferredSize(IFigure, int, int)
is called.getPreferredSize in interface LayoutManagerpublic Dimension getPreferredSize(IFigure container)
getPreferredSize in interface LayoutManagerpublic void invalidate()
invalidate in interface LayoutManagerpublic void invalidate(IFigure figure)
invalidate in interface LayoutManagerpublic void remove(IFigure child)
remove in interface LayoutManager
public void setConstraint(IFigure figure,
Object constraint)
setConstraint in interface LayoutManager
|
Draw2D v2.0 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||