public class ViewportLayout extends AbstractHintLayout
isObservingVisibility, preferredSize| Constructor and Description |
|---|
ViewportLayout() |
| Modifier and Type | Method and Description |
|---|---|
protected Dimension |
calculateMinimumSize(IFigure figure,
int wHint,
int hHint)
Returns the minimum size required by the input viewport figure.
|
protected Dimension |
calculatePreferredSize(IFigure parent,
int wHint,
int hHint)
Calculates and returns the preferred size of the figure based on the
given hints.
|
protected boolean |
isSensitiveHorizontally(IFigure parent)
Returns whether this layout manager is sensitive to changes in the
horizontal hint.
|
protected boolean |
isSensitiveVertically(IFigure parent)
Returns whether this layout manager is sensitive to changes in the
vertical hint.
|
void |
layout(IFigure figure)
Lays out the given figure.
|
getMinimumSize, getPreferredSize, invalidatecalculatePreferredSize, getBorderPreferredSize, getConstraint, getMinimumSize, getPreferredSize, invalidate, isObservingVisibility, remove, setConstraint, setObserveVisibilityprotected Dimension calculateMinimumSize(IFigure figure, int wHint, int hHint)
calculateMinimumSize in class AbstractHintLayoutfigure - the Figure on which this layout is installedwHint - the width hinthHint - the height hintAbstractHintLayout.calculateMinimumSize(IFigure, int, int)protected Dimension calculatePreferredSize(IFigure parent, int wHint, int hHint)
calculatePreferredSize in class AbstractLayoutparent - the Viewport whose preferred size is to be calculatedwHint - the width hinthHint - the height hintprotected boolean isSensitiveHorizontally(IFigure parent)
AbstractHintLayouttrue.isSensitiveHorizontally in class AbstractHintLayoutparent - the layout's containertrue if this layout is sensite to horizontal hint
changesAbstractHintLayout.isSensitiveHorizontally(IFigure)protected boolean isSensitiveVertically(IFigure parent)
AbstractHintLayouttrue.isSensitiveVertically in class AbstractHintLayoutparent - the layout's containertrue if this layout is sensite to vertical hint
changesAbstractHintLayout.isSensitiveHorizontally(IFigure)public void layout(IFigure figure)
LayoutManagerfigure - The figureLayoutManager.layout(IFigure)Copyright (c) IBM Corp. and others 2000, 2011. All Rights Reserved.