public class DelegatingLayout extends AbstractLayout
isObservingVisibility, preferredSize| Constructor and Description |
|---|
DelegatingLayout() |
| Modifier and Type | Method and Description |
|---|---|
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.
|
calculatePreferredSize, getBorderPreferredSize, getMinimumSize, getMinimumSize, getPreferredSize, getPreferredSize, invalidate, invalidate, isObservingVisibility, setObserveVisibilityprotected 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 hintpublic java.lang.Object getConstraint(IFigure child)
AbstractLayoutgetConstraint in interface LayoutManagergetConstraint in class AbstractLayoutchild - The figureLayoutManager.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 removedpublic void setConstraint(IFigure figure, java.lang.Object constraint)
setConstraint in interface LayoutManagersetConstraint in class AbstractLayoutfigure - the figure whose contraint is being setconstraint - the new constraintCopyright (c) IBM Corp. and others 2000, 2011. All Rights Reserved.