public class StackLayout extends AbstractHintLayout
isObservingVisibility, preferredSize
Constructor and Description |
---|
StackLayout() |
Modifier and Type | Method and Description |
---|---|
protected Dimension |
calculateMinimumSize(IFigure figure,
int wHint,
int hHint)
Returns the minimum size required by the input container.
|
protected Dimension |
calculatePreferredSize(IFigure figure,
int wHint,
int hHint)
Calculates and returns the preferred size of the given figure.
|
void |
layout(IFigure figure)
Lays out the given figure.
|
getMinimumSize, getPreferredSize, invalidate, isSensitiveHorizontally, isSensitiveVertically
calculatePreferredSize, getBorderPreferredSize, getConstraint, getMinimumSize, getPreferredSize, invalidate, isObservingVisibility, remove, setConstraint, setObserveVisibility
protected Dimension calculateMinimumSize(IFigure figure, int wHint, int hHint)
calculateMinimumSize
in class AbstractHintLayout
figure
- the Figure on which this layout is installedwHint
- the width hinthHint
- the height hintAbstractHintLayout.calculateMinimumSize(IFigure, int, int)
protected Dimension calculatePreferredSize(IFigure figure, int wHint, int hHint)
calculatePreferredSize
in class AbstractLayout
figure
- The figurewHint
- The width hinthHint
- The height hintAbstractLayout.calculatePreferredSize(IFigure, int, int)
public void layout(IFigure figure)
LayoutManager
figure
- The figureLayoutManager.layout(IFigure)
Copyright (c) IBM Corp. and others 2000, 2011. All Rights Reserved.