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, setObserveVisibility
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 hintpublic java.lang.Object getConstraint(IFigure child)
AbstractLayout
getConstraint
in interface LayoutManager
getConstraint
in class AbstractLayout
child
- 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 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 constraintCopyright (c) IBM Corp. and others 2000, 2011. All Rights Reserved.