Package org.eclipse.draw2d
Class DelegatingLayout
java.lang.Object
org.eclipse.draw2d.AbstractLayout
org.eclipse.draw2d.DelegatingLayout
- All Implemented Interfaces:
LayoutManager
-
Field Summary
Fields inherited from class org.eclipse.draw2d.AbstractLayout
isObservingVisibility, preferredSize -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected DimensioncalculatePreferredSize(IFigure parent, int wHint, int hHint) Calculates the preferred size of the given Figure.getConstraint(IFigure child) Returns the constraint for the given figure.voidLays out the given figure's children based on theirLocatorconstraint.voidRemoves the locator for the given figure.voidsetConstraint(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
-
Constructor Details
-
DelegatingLayout
public DelegatingLayout()
-
-
Method Details
-
calculatePreferredSize
Calculates the preferred size of the given Figure. For the DelegatingLayout, this is the largest width and height values of the passed Figure's children.- Specified by:
calculatePreferredSizein classAbstractLayout- Parameters:
parent- the figure whose preferred size is being calculatedwHint- the width hinthHint- the height hint- Returns:
- the preferred size
- Since:
- 2.0
-
getConstraint
Description copied from class:AbstractLayoutReturns the constraint for the given figure.- Specified by:
getConstraintin interfaceLayoutManager- Overrides:
getConstraintin classAbstractLayout- Parameters:
child- The figure- Returns:
- The constraint
- See Also:
-
layout
Lays out the given figure's children based on theirLocatorconstraint.- Parameters:
parent- the figure whose children should be layed out
-
remove
Removes the locator for the given figure.- Specified by:
removein interfaceLayoutManager- Overrides:
removein classAbstractLayout- Parameters:
child- the child being removed
-
setConstraint
Sets the constraint for the given figure.- Specified by:
setConstraintin interfaceLayoutManager- Overrides:
setConstraintin classAbstractLayout- Parameters:
figure- the figure whose contraint is being setconstraint- the new constraint
-