|
Eclipse Draw2d 3.0.1 |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.eclipse.draw2d.AbstractLayout
org.eclipse.draw2d.DelegatingLayout
Figures using a DelegatingLayout as their layout manager give
location responsibilities to their children. The children
of a Figure using a DelegatingLayout should have a
Locator as a constraint whose
relocate method is
responsible for placing the child.
| Field Summary |
| Fields inherited from class org.eclipse.draw2d.AbstractLayout |
isObservingVisibility, preferredSize |
| Constructor Summary | |
DelegatingLayout()
|
|
| Method Summary | |
protected Dimension |
calculatePreferredSize(IFigure parent,
int wHint,
int hHint)
Calculates the preferred size of the given Figure. |
Object |
getConstraint(IFigure child)
Returns the constraint for the given figure. |
void |
layout(IFigure parent)
Lays out the given figure's children based on their Locator constraint. |
void |
setConstraint(IFigure figure,
Object constraint)
Sets the constraint for the given figure. |
| Methods inherited from class org.eclipse.draw2d.AbstractLayout |
calculatePreferredSize, getBorderPreferredSize, getMinimumSize, getMinimumSize, getPreferredSize, getPreferredSize, invalidate, invalidate, isObservingVisibility, remove, setObserveVisibility |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public DelegatingLayout()
| Method Detail |
protected Dimension calculatePreferredSize(IFigure parent,
int wHint,
int hHint)
calculatePreferredSize in class AbstractLayoutparent - the figure whose preferred size is being calculatedwHint - the width hinthHint - the height hint
public Object getConstraint(IFigure child)
AbstractLayout
getConstraint in interface LayoutManagergetConstraint in class AbstractLayoutchild - The figure
LayoutManager.getConstraint(org.eclipse.draw2d.IFigure)public void layout(IFigure parent)
Locator constraint.
parent - the figure whose children should be layed out
public void setConstraint(IFigure figure,
Object constraint)
setConstraint in interface LayoutManagersetConstraint in class AbstractLayoutfigure - the figure whose contraint is being setconstraint - the new constraint
|
Eclipse Draw2d 3.0.1 |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||