|
Eclipse Draw2d 3.3 |
||||||||||
| 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.ScrollBarLayout
Lays out the Figures that make up a ScrollBar.
| Field Summary | |
static String |
DOWN_ARROW
Used as a constraint for the down arrow figure. |
static String |
PAGE_DOWN
Used as a constraint for the page down figure. |
static String |
PAGE_UP
Used as a constraint for the page up figure. |
static String |
THUMB
Used as a constraint for the thumb figure. |
protected Transposer |
transposer
Transposes values if the ScrollBar is horizontally oriented. |
static String |
UP_ARROW
Used as a constraint for the up arrow figure. |
| Fields inherited from class org.eclipse.draw2d.AbstractLayout |
isObservingVisibility, preferredSize |
| Constructor Summary | |
ScrollBarLayout(Transposer t)
Constructs a ScrollBarLayout. |
|
| Method Summary | |
protected Dimension |
calculatePreferredSize(IFigure parent,
int w,
int h)
Calculates the preferred size of the given figure, using width and height hints. |
void |
layout(IFigure parent)
Lays out the given figure. |
protected Rectangle |
layoutButtons(ScrollBar scrollBar)
Places the buttons and returns the Rectangle into which the track should be placed. |
void |
remove(IFigure child)
Removes the given figure from this LayoutManager's list of figures. |
void |
setConstraint(IFigure figure,
Object constraint)
Sets the constraint for the given figure. |
| Methods inherited from class org.eclipse.draw2d.AbstractLayout |
calculatePreferredSize, getBorderPreferredSize, getConstraint, getMinimumSize, getMinimumSize, getPreferredSize, getPreferredSize, invalidate, invalidate, isObservingVisibility, setObserveVisibility |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final String UP_ARROW
public static final String DOWN_ARROW
public static final String THUMB
public static final String PAGE_UP
public static final String PAGE_DOWN
protected final Transposer transposer
| Constructor Detail |
public ScrollBarLayout(Transposer t)
t - the Transposer| Method Detail |
public void setConstraint(IFigure figure,
Object constraint)
AbstractLayout
setConstraint in interface LayoutManagersetConstraint in class AbstractLayoutfigure - the childconstraint - the child's new constraintAbstractLayout.setConstraint(IFigure, Object)
protected Dimension calculatePreferredSize(IFigure parent,
int w,
int h)
AbstractLayout
calculatePreferredSize in class AbstractLayoutparent - The figurew - The width hinth - The height hint
AbstractLayout.calculatePreferredSize(IFigure, int, int)public void layout(IFigure parent)
LayoutManager
parent - The figureLayoutManager.layout(IFigure)protected Rectangle layoutButtons(ScrollBar scrollBar)
scrollBar - the scrollbar whose buttons are being layed out
public void remove(IFigure child)
AbstractLayout
remove in interface LayoutManagerremove in class AbstractLayoutchild - The figure to removeLayoutManager.remove(IFigure)
|
Eclipse Draw2d 3.3 |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||