|
Eclipse Draw2d 3.2 |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.eclipse.draw2d.AbstractLayout
org.eclipse.draw2d.AbstractHintLayout
org.eclipse.draw2d.ViewportLayout
Layout for a viewport. A viewport is a flexible window onto a figure.
| Field Summary |
| Fields inherited from class org.eclipse.draw2d.AbstractLayout |
isObservingVisibility, preferredSize |
| Constructor Summary | |
ViewportLayout()
|
|
| Method Summary | |
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. |
| Methods inherited from class org.eclipse.draw2d.AbstractHintLayout |
getMinimumSize, getPreferredSize, invalidate |
| Methods inherited from class org.eclipse.draw2d.AbstractLayout |
calculatePreferredSize, getBorderPreferredSize, getConstraint, getMinimumSize, getPreferredSize, invalidate, isObservingVisibility, remove, setConstraint, setObserveVisibility |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public ViewportLayout()
| Method Detail |
protected 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 hint
AbstractHintLayout.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 hint
protected boolean isSensitiveHorizontally(IFigure parent)
AbstractHintLayouttrue.
isSensitiveHorizontally in class AbstractHintLayoutparent - the layout's container
true if this layout is sensite to horizontal hint changesAbstractHintLayout.isSensitiveHorizontally(IFigure)protected boolean isSensitiveVertically(IFigure parent)
AbstractHintLayouttrue.
isSensitiveVertically in class AbstractHintLayoutparent - the layout's container
true if this layout is sensite to vertical hint changesAbstractHintLayout.isSensitiveHorizontally(IFigure)public void layout(IFigure figure)
LayoutManager
figure - The figureLayoutManager.layout(IFigure)
|
Eclipse Draw2d 3.2 |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||