public abstract class AudioFastSlowAction extends JosmAction
AudioFasterAction
and AudioSlowerAction
.JosmAction.LayerChangeAdapter, JosmAction.SelectionChangeAdapter
Modifier and Type | Field and Description |
---|---|
private double |
multiplier |
sc
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
Constructor and Description |
---|
AudioFastSlowAction(String name,
String iconName,
String tooltip,
Shortcut shortcut,
boolean fast)
Constructs a new
AudioFastSlowAction . |
Modifier and Type | Method and Description |
---|---|
void |
actionPerformed(ActionEvent e) |
destroy, getCurrentDataSet, getEditLayer, getShortcut, initEnabledState, installAdapters, setTooltip, updateEnabledState, updateEnabledState
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
private double multiplier
public AudioFastSlowAction(String name, String iconName, String tooltip, Shortcut shortcut, boolean fast)
AudioFastSlowAction
.name
- the action's text as displayed on the menu (if it is added to a menu)iconName
- the filename of the icon to usetooltip
- a longer description of the action that will be displayed in the tooltip.shortcut
- a ready-created shortcut object.fast
- true
to increase speed (faster audio), false
to decrease it (slower audio).public void actionPerformed(ActionEvent e)