public class MoveAction extends ViewerAction
description, icon, namechangeSupportACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, DISPLAYED_MNEMONIC_INDEX_KEY, LARGE_ICON_KEY, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SELECTED_KEY, SHORT_DESCRIPTION, SMALL_ICON| Constructor and Description |
|---|
MoveAction(Viewer
Create an action for moving the viewport of the viewer.
|
| Modifier and Type | Method and Description |
|---|---|
void |
actionPerformed(ActionEvent
|
getViewer, isEnabled, putValue, setEnabledsetIconFromResourcegetValue, setDescription, setIcon, setIcon, setNameaddPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, removePropertyChangeListenerpublic MoveAction(Viewerviewer, String name, String description, String filename, int dx, int dy)
viewer - the viewer to work with.
name - the name of the action.
description - the description of the action.
filename - the file of the icon.
dx - the amount to move in the direction of the x-axis.
dy - the amount to move in the direction of the y-axis.
public void actionPerformed(ActionEvente)