Draw2D v2.0

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.


Constructor Summary
StackLayout()
           
 
Method Summary
protected  Dimension calculatePreferredSize(IFigure figure)
          Calculates and returns the preferred size of the input container.
 Dimension getMinimumSize(IFigure figure)
          Returns the minimum size of the given figure.
 Dimension getPreferredSize(IFigure figure)
          Returns the preferred size of the given figure.
 void layout(IFigure figure)
          Lays out the given figure.
 
Methods inherited from class org.eclipse.draw2d.AbstractLayout
calculatePreferredSize, getBorderPreferredSize, getConstraint, getPreferredSize, invalidate, invalidate, remove, setConstraint
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StackLayout

public StackLayout()
Method Detail

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.

Draw2D v2.0