|
Draw2d 3.9.0.201305060205 |
|||||||||
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. |
java.lang.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,
java.lang.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 AbstractLayout
parent
- the figure whose preferred size is being calculatedwHint
- the width hinthHint
- the height hint
public java.lang.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 remove(IFigure child)
remove
in interface LayoutManager
remove
in class AbstractLayout
child
- the child being removedpublic void setConstraint(IFigure figure, java.lang.Object constraint)
setConstraint
in interface LayoutManager
setConstraint
in class AbstractLayout
figure
- the figure whose contraint is being setconstraint
- the new constraint
|
Draw2d 3.9.0.201305060205 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |