public class ScrollEvent extends AWTEvent
Modifier and Type | Field and Description |
---|---|
static int |
DOWN |
static int |
DOWN_LEFT |
static int |
DOWN_RIGHT |
static int |
LEFT |
static int |
RIGHT |
static int |
UP |
static int |
UP_LEFT |
static int |
UP_RIGHT |
ACTION_PERFORMED, ADJUSTMENT_EVENT, FOCUS_GAINED, FOCUS_LOST, GARBAGE_COLLECTION, INVOCATION_EVENT, ITEM_STATE_CHANGED, KEY_PRESSED, KEY_TYPED, LIST_SELECTION, MOUSE_EVENT, PAINT_EVENT, RESERVED_ID_MAX, SCROLL_EVENT, SYNC_EVENT, WINDOW_CLOSING, WINDOW_OPENED
Constructor and Description |
---|
ScrollEvent(Component source_,
int direction_,
Point limit_)
Construct a ScrollEvent with the specified direction and limit
parameters.
|
Modifier and Type | Method and Description |
---|---|
int |
getDirection() |
Point |
getLimit() |
Scrollable |
getScrollable() |
public static final int LEFT
public static final int RIGHT
public static final int UP
public static final int DOWN
public static final int UP_LEFT
public static final int UP_RIGHT
public static final int DOWN_LEFT
public static final int DOWN_RIGHT
public ScrollEvent(Component source_, int direction_, Point limit_)
direction_
- The direction that the ScrollPane must (potentially)
scroll the scrollable component (eg LEFT, RIGHT, UP or DOWN).limit_
- A Point representing the row and column that must
appear at the edge of the Viewport if the component is scrolled.
For examplem, if direction_ is LEFT, the limit_ is the rightmost
column that must appear in the viewport.public Scrollable getScrollable()
public int getDirection()
public Point getLimit()