protected static class PScrollPane.PScrollAction extends AbstractAction
Modifier and Type | Field and Description |
---|---|
protected int |
direction
1 indicates scroll down, -1 up.
|
protected int |
orientation
Direction to scroll.
|
changeSupport, enabled
ACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, DISPLAYED_MNEMONIC_INDEX_KEY, LARGE_ICON_KEY, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SELECTED_KEY, SHORT_DESCRIPTION, SMALL_ICON
Modifier | Constructor and Description |
---|---|
protected |
PScrollPane.PScrollAction(String name,
int orientation,
int direction,
boolean block)
Constructs a scroll action with the given name in the given
orientiation stated and in the direction provided.
|
Modifier and Type | Method and Description |
---|---|
void |
actionPerformed(ActionEvent event)
Performs the scroll action if the action was performed on visible
scrollbars and if the viewport is valid.
|
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
protected int orientation
protected int direction
protected PScrollPane.PScrollAction(String name, int orientation, int direction, boolean block)
name
- arbitrary name of actionorientation
- horizontal or verticaldirection
- 1 indicates scroll down, -1 upblock
- true if block scroll as opposed to unitpublic void actionPerformed(ActionEvent event)
event
- the event responsible for this action being performedCopyright © 1995-2013 Piccolo2D. All Rights Reserved.