Package org.eclipse.draw2d
Class DelegatingLayout
java.lang.Object
org.eclipse.draw2d.AbstractLayout
org.eclipse.draw2d.AbstractConstraintLayout
org.eclipse.draw2d.DelegatingLayout
- All Implemented Interfaces:
LayoutManager
-
Field Summary
Fields inherited from class org.eclipse.draw2d.AbstractConstraintLayout
constraintsFields 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.voidLays out the given figure's children based on theirLocatorconstraint.voidRemoves the locator for the given figure.Methods inherited from class org.eclipse.draw2d.AbstractConstraintLayout
getConstraint, setConstraintMethods 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
-
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 classAbstractConstraintLayout- Parameters:
child- the child being removed- See Also:
-