|
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.Figure | +--org.eclipse.draw2d.ScrollBar
Provides for the scrollbars used by the
ScrollPane
. A ScrollBar is made up of five essential
Figures: An 'Up' arrow button, a 'Down' arrow button, a
draggable 'Thumb', a 'Pageup' button, and a 'Pagedown' button.
Nested Class Summary |
Nested classes inherited from class org.eclipse.draw2d.Figure |
Figure.FigureIterator |
Nested classes inherited from class org.eclipse.draw2d.IFigure |
IFigure.NoInsets |
Field Summary | |
protected static int |
MAX_FLAG
|
protected org.eclipse.draw2d.ScrollBar.ThumbDragger |
thumbDragger
|
protected Transposer |
transposer
|
Fields inherited from class org.eclipse.draw2d.Figure |
bgColor, border, bounds, fgColor, flags, font, maxSize, minSize, NO_MANAGER, prefSize, toolTip |
Fields inherited from interface org.eclipse.draw2d.Orientable |
HORIZONTAL, VERTICAL |
Fields inherited from interface org.eclipse.draw2d.PositionConstants |
BOTTOM, CENTER, EAST, EAST_WEST, LEFT, LEFT_CENTER_RIGHT, MIDDLE, NONE, NORTH, NORTH_EAST, NORTH_SOUTH, NORTH_WEST, RIGHT, SOUTH, SOUTH_EAST, SOUTH_WEST, TOP, TOP_MIDDLE_BOTTOM, WEST |
Fields inherited from interface org.eclipse.draw2d.IFigure |
MAX_DIMENSION, MIN_DIMENSION, NO_INSETS |
Constructor Summary | |
ScrollBar()
Constructs a ScrollBar. |
Method Summary | |
protected Clickable |
createDefaultDownButton()
Creates the default 'Down' ArrowButton for the ScrollBar. |
protected IFigure |
createDefaultThumb()
Creates the Scrollbar's "thumb", the draggable Figure that indicates the Scrollbar's position. |
protected Clickable |
createDefaultUpButton()
Creates the default 'Up' ArrowButton for the ScrollBar. |
protected Clickable |
createPageDown()
Creates the pagedown Figure for the Scrollbar. |
protected Clickable |
createPageUp()
Creates the pageup Figure for the Scrollbar. |
protected IFigure |
getButtonDown()
|
protected IFigure |
getButtonUp()
|
int |
getExtent()
|
int |
getMaximum()
|
int |
getMinimum()
|
protected IFigure |
getPageDown()
|
int |
getPageIncrement()
|
protected IFigure |
getPageUp()
|
RangeModel |
getRangeModel()
|
int |
getStepIncrement()
|
protected IFigure |
getThumb()
|
int |
getValue()
|
protected int |
getValueRange()
|
protected void |
initialize()
Initilization of the ScrollBar. |
boolean |
isHorizontal()
|
void |
propertyChange(PropertyChangeEvent event)
|
void |
revalidate()
Revalidates this IFigure. |
void |
setDirection(int direction)
Sets the direction the orientable figure will face. |
void |
setDownClickable(Clickable down)
Sets the Clickable that represents the down arrow of the Scrollbar to down. |
void |
setEnabled(boolean value)
Sets enabled status of Scrollbar to value. |
void |
setExtent(int ext)
Sets the extent of the Scrollbar to ext |
void |
setHorizontal(boolean value)
Sets the orientation of the ScrollBar. |
void |
setMaximum(int max)
The ScrollBars position is designated by integer values. |
void |
setMinimum(int min)
The ScrollBars position is designated by integer values. |
void |
setOrientation(int value)
Sets the orientation of the ScrollBar to the passed value. |
void |
setPageDown(Clickable down)
Sets the pagedown button to the passed Clickable. |
void |
setPageIncrement(int increment)
Sets the ScrollBar to scroll increment pixels when its pageup or pagedown buttons are pressed. |
void |
setPageUp(Clickable up)
Sets the pageup button to the passed Clickable. |
void |
setRangeModel(RangeModel rangeModel)
Sets the ScrollBar's RangeModel to the passed value. |
void |
setStepIncrement(int increment)
Sets the ScrollBar's step increment to the passed value. |
void |
setThumb(IFigure figure)
Sets the ScrollBar's thumb to the passed Figure. |
void |
setUpClickable(Clickable up)
Sets the Clickable that represents the up arrow of the Scrollbar to up. |
void |
setValue(int v)
Sets the value of the Scrollbar to v |
protected void |
stepDown()
Causes the ScrollBar to scroll down (or right) by the value of its step increment. |
protected void |
stepUp()
Causes the ScrollBar to scroll up (or left) by the value of its step increment. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected static final int MAX_FLAG
protected org.eclipse.draw2d.ScrollBar.ThumbDragger thumbDragger
protected final Transposer transposer
Constructor Detail |
public ScrollBar()
Method Detail |
protected Clickable createDefaultUpButton()
protected Clickable createDefaultDownButton()
protected Clickable createPageDown()
protected Clickable createPageUp()
protected IFigure createDefaultThumb()
protected IFigure getButtonUp()
protected IFigure getButtonDown()
public int getExtent()
public int getMinimum()
public int getMaximum()
protected IFigure getPageDown()
public int getPageIncrement()
protected IFigure getPageUp()
public RangeModel getRangeModel()
public int getStepIncrement()
protected IFigure getThumb()
public int getValue()
protected int getValueRange()
protected void initialize()
public boolean isHorizontal()
public void propertyChange(PropertyChangeEvent event)
propertyChange
in interface PropertyChangeListener
public void revalidate()
IFigure
revalidate
in interface IFigure
revalidate
in class Figure
IFigure.revalidate()
public void setDirection(int direction)
Orientable
PositionConstants
.
setDirection
in interface Orientable
direction
- The directionpublic void setDownClickable(Clickable down)
public void setUpClickable(Clickable up)
public void setEnabled(boolean value)
setEnabled
in interface IFigure
setEnabled
in class Figure
value
- true
if this IFigure should be enabledpublic void setExtent(int ext)
public final void setHorizontal(boolean value)
value
- If true, Scrollbar will
have horizontal orientation.
If false ScrollBar will have
vertical orientation.public void setMaximum(int max)
public void setMinimum(int min)
public void setOrientation(int value)
setOrientation
in interface Orientable
value
- Can be either HORIZONTAL or VERTICAL
as seen in Orientable
public void setPageIncrement(int increment)
public void setPageDown(Clickable down)
public void setPageUp(Clickable up)
public void setRangeModel(RangeModel rangeModel)
public void setStepIncrement(int increment)
public void setThumb(IFigure figure)
public void setValue(int v)
protected void stepDown()
protected void stepUp()
|
Eclipse Draw2d 2.1 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |