|
Eclipse Draw2d 2.1 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.eclipse.draw2d.AbstractLayout
Provides generic support for LayoutManagers.
Field Summary | |
protected Dimension |
preferredSize
The cached preferred size. |
Constructor Summary | |
AbstractLayout()
|
Method Summary | |
protected void |
calculatePreferredSize(IFigure container)
This method is now calculatePreferredSize(IFigure, int, int) . |
protected abstract 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. |
void |
getMinimumSize(IFigure container)
This method is now getMinimumSize(IFigure, int, int) . |
Dimension |
getMinimumSize(IFigure container,
int wHint,
int hHint)
Returns the minimum size of the given figure. |
void |
getPreferredSize(IFigure container)
This method is now getPreferredSize(IFigure, int, int) . |
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. |
protected void |
invalidate(IFigure child)
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 child,
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 |
Field Detail |
protected Dimension preferredSize
Constructor Detail |
public AbstractLayout()
Method Detail |
protected final void calculatePreferredSize(IFigure container)
calculatePreferredSize(IFigure, int, int)
.
container
- the figureprotected abstract Dimension calculatePreferredSize(IFigure container, int wHint, int hHint)
container
- The figurewHint
- The width hinthHint
- The height hint
protected Dimension getBorderPreferredSize(IFigure container)
container
- The figure that the border is on
public Object getConstraint(IFigure child)
getConstraint
in interface LayoutManager
child
- The figure
public final void getMinimumSize(IFigure container)
getMinimumSize(IFigure, int, int)
.
container
- the figurepublic Dimension getMinimumSize(IFigure container, int wHint, int hHint)
LayoutManager
getMinimumSize
in interface LayoutManager
container
- The FigurewHint
- the width hinthHint
- the height hint
LayoutManager.getMinimumSize(IFigure, int, int)
public Dimension getPreferredSize(IFigure container, int wHint, int hHint)
calculatePreferredSize(IFigure, int, int)
is called.
getPreferredSize
in interface LayoutManager
container
- The figurewHint
- The width hinthHint
- The height hint
public final void getPreferredSize(IFigure container)
getPreferredSize(IFigure, int, int)
.
container
- the figurepublic void invalidate()
LayoutManager
invalidate
in interface LayoutManager
LayoutManager.invalidate()
protected void invalidate(IFigure child)
child
- the child that is invalidatedpublic void remove(IFigure child)
remove
in interface LayoutManager
child
- The figure to removepublic void setConstraint(IFigure child, Object constraint)
setConstraint
in interface LayoutManager
child
- the childconstraint
- the child's new constraint
|
Eclipse Draw2d 2.1 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |