|
Eclipse Draw2d 2.1 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.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 |
preferredSize |
Constructor Summary | |
ViewportLayout()
|
Method Summary | |
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, remove, setConstraint |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ViewportLayout()
Method Detail |
public 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 hint
AbstractHintLayout.calculateMinimumSize(IFigure, int, int)
protected Dimension calculatePreferredSize(IFigure parent, int wHint, int hHint)
calculatePreferredSize
in class AbstractLayout
parent
- the Viewport whose preferred size is to be calculatedwHint
- the width hinthHint
- the height hint
protected boolean isSensitiveHorizontally(IFigure parent)
AbstractHintLayout
true
.
isSensitiveHorizontally
in class AbstractHintLayout
parent
- the layout's container
true
if this layout is sensite to horizontal hint changesAbstractHintLayout.isSensitiveHorizontally(IFigure)
protected boolean isSensitiveVertically(IFigure parent)
AbstractHintLayout
true
.
isSensitiveVertically
in class AbstractHintLayout
parent
- 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 2.1 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |