java.lang.Object | +--com.sun.kjava.VerticalScrollBar
A vertical scroll bar user interface object.
Field Summary | |
static int |
SCROLL_BAR_WIDTH
|
Constructor Summary | |
VerticalScrollBar(ScrollOwner so)
Create a new VerticalScrollBar and associate it with an owner. |
|
VerticalScrollBar(ScrollOwner so,
int x,
int y,
int h,
int min,
int max,
int initVal)
Create a new VerticalScrollBar and associate it with an owner. |
Method Summary | |
boolean |
contains(int x,
int y)
Does the scroll bar contain the point in question? |
void |
handleKeyDown(int keyCode)
The user pressed a key. |
void |
handlePenDown(int x,
int y)
The pen went down somewhere. |
void |
handlePenMove(int x,
int y)
Deal with the fact that the pen moved. |
protected void |
init(int x,
int y,
int h,
int min,
int max,
int initVal)
Initialize the scroll bar. |
void |
paint()
Paint the VerticalScrollBar. |
void |
setBounds(int x,
int y,
int h,
int min,
int max,
int initVal)
Set the scroll bar's bounds. |
Methods inherited from class java.lang.Object |
equals,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Field Detail |
public static int SCROLL_BAR_WIDTH
Constructor Detail |
public VerticalScrollBar(ScrollOwner so)
so
- the ScrollOwner that owns this scroll bar.public VerticalScrollBar(ScrollOwner so, int x, int y, int h, int min, int max, int initVal)
so
- the ScrollOwner that owns this scroll bar.x
- the X coordinate of the scroll bary
- the Y coordinate of the scroll barh
- the height of the scroll barmin
- the minimum value allowedmax
- the maximum value allowedinitVal
- the initial valueMethod Detail |
public void setBounds(int x, int y, int h, int min, int max, int initVal)
x
- the X coordinate of the scroll bary
- the Y coordinate of the scroll barh
- the height of the scroll barmin
- the minimum value allowedmax
- the maximum value allowedinitVal
- the initial valueprotected void init(int x, int y, int h, int min, int max, int initVal)
x
- the X coordinate of the scroll bary
- the Y coordinate of the scroll barh
- the height of the scroll barmin
- the minimum value allowedmax
- the maximum value allowedinitVal
- the initial valuepublic boolean contains(int x, int y)
x
- the X coordinate to testy
- the Y coordinate to testpublic void handlePenMove(int x, int y)
x
- the X coordinate of the pen's positiony
- the Y coordinate of the pen's positionpublic void handleKeyDown(int keyCode)
keyCode
- the code of the key the user pressedpublic void handlePenDown(int x, int y)
x
- the X coordinate of the pen's positiony
- the Y coordinate of the pen's positionpublic void paint()