|
Eclipse Draw2d 3.3 |
|||||||||
| 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
public class 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 |
remove(IFigure child)
Removes the locator for the given figure. |
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, 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 outpublic void remove(IFigure child)
remove in interface LayoutManagerremove in class AbstractLayoutchild - the child being removed
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.3 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||