|
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 AbstractLayout
parent
- the figure whose preferred size is being calculatedwHint
- the width hinthHint
- the height hint
public Object getConstraint(IFigure child)
AbstractLayout
getConstraint
in interface LayoutManager
getConstraint
in class AbstractLayout
child
- The figure
LayoutManager.getConstraint(org.eclipse.draw2d.IFigure)
public void layout(IFigure parent)
Locator
constraint.
parent
- the figure whose children should be layed outpublic void setConstraint(IFigure figure, Object constraint)
setConstraint
in interface LayoutManager
setConstraint
in class AbstractLayout
figure
- 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 |