org.eclipse.draw2d
Class StackLayout
java.lang.Object
|
+--org.eclipse.draw2d.AbstractLayout
|
+--org.eclipse.draw2d.StackLayout
- All Implemented Interfaces:
- LayoutManager
- public class StackLayout
- extends AbstractLayout
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.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
StackLayout
public StackLayout()
calculatePreferredSize
protected Dimension calculatePreferredSize(IFigure figure)
- Calculates and returns the preferred size of the input container.
This is the size of the largest child of the container, as all
other children fit into this size.
- Overrides:
calculatePreferredSize in class AbstractLayout
- Parameters:
figure - Container figure for which preferred size is required.- Returns:
- The preferred size of the input figure.
- Since:
- 2.0
getMinimumSize
public Dimension getMinimumSize(IFigure figure)
- Description copied from class:
AbstractLayout
- Returns the minimum size of the given figure.
- Overrides:
getMinimumSize in class AbstractLayout
getPreferredSize
public Dimension getPreferredSize(IFigure figure)
- Description copied from class:
AbstractLayout
- Returns the preferred size of the given figure.
- Overrides:
getPreferredSize in class AbstractLayout
layout
public void layout(IFigure figure)
- Description copied from interface:
LayoutManager
- Lays out the given figure.