Package org.eclipse.draw2d
Class StackLayout
java.lang.Object
org.eclipse.draw2d.AbstractLayout
org.eclipse.draw2d.AbstractHintLayout
org.eclipse.draw2d.StackLayout
- All Implemented Interfaces:
- LayoutManager
Figures using the StackLayout as their layout manager have their children
 placed on top of one another. Order of placement is determined by the order
 in which the children were added, first child added placed on the bottom.
- 
Field SummaryFields inherited from class org.eclipse.draw2d.AbstractLayoutisObservingVisibility, preferredSize
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionprotected DimensioncalculateMinimumSize(IFigure figure, int wHint, int hHint) Returns the minimum size required by the input container.protected DimensioncalculatePreferredSize(IFigure figure, int wHint, int hHint) Calculates and returns the preferred size of the given figure.voidLays out the given figure.Methods inherited from class org.eclipse.draw2d.AbstractHintLayoutgetMinimumSize, getPreferredSize, invalidate, isSensitiveHorizontally, isSensitiveVerticallyMethods inherited from class org.eclipse.draw2d.AbstractLayoutcalculatePreferredSize, getBorderPreferredSize, getConstraint, getMinimumSize, getPreferredSize, invalidate, isObservingVisibility, remove, setConstraint, setObserveVisibility
- 
Constructor Details- 
StackLayoutpublic StackLayout()
 
- 
- 
Method Details- 
calculateMinimumSizeReturns the minimum size required by the input container. This is the size of the largest child of the container, as all other children fit into this size.- Overrides:
- calculateMinimumSizein class- AbstractHintLayout
- Parameters:
- figure- the Figure on which this layout is installed
- wHint- the width hint
- hHint- the height hint
- Returns:
- the layout's minimum size
- See Also:
 
- 
calculatePreferredSizeCalculates and returns the preferred size of the given figure. This is the union of the preferred sizes of the widest and the tallest of all its children.- Specified by:
- calculatePreferredSizein class- AbstractLayout
- Parameters:
- figure- The figure
- wHint- The width hint
- hHint- The height hint
- Returns:
- The preferred size
- See Also:
 
- 
layoutDescription copied from interface:LayoutManagerLays out the given figure.- Parameters:
- figure- The figure
- See Also:
 
 
-