Class AudioFastSlowAction
java.lang.Object
javax.swing.AbstractAction
org.openstreetmap.josm.actions.JosmAction
org.openstreetmap.josm.actions.audio.AbstractAudioAction
org.openstreetmap.josm.actions.audio.AudioFastSlowAction
- All Implemented Interfaces:
ActionListener,Serializable,Cloneable,EventListener,Action,Destroyable
- Direct Known Subclasses:
AudioFasterAction,AudioSlowerAction
Abstract superclass of
AudioFasterAction and AudioSlowerAction.- Since:
- 563
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class org.openstreetmap.josm.actions.JosmAction
JosmAction.ActiveLayerChangeAdapter, JosmAction.LayerChangeAdapter, JosmAction.SelectionChangeAdapter -
Field Summary
FieldsFields inherited from class org.openstreetmap.josm.actions.JosmAction
scFields inherited from class javax.swing.AbstractAction
changeSupport, enabledFields inherited from interface javax.swing.Action
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 Summary
ConstructorsModifierConstructorDescriptionprotectedAudioFastSlowAction(String name, String iconName, String tooltip, Shortcut shortcut, boolean fast) Constructs a newAudioFastSlowAction. -
Method Summary
Methods inherited from class org.openstreetmap.josm.actions.audio.AbstractAudioAction
isAudioMarkerPresent, listenToSelectionChange, updateEnabledStateMethods inherited from class org.openstreetmap.josm.actions.JosmAction
buildActiveLayerChangeAdapter, buildLayerChangeAdapter, checkAndConfirmOutlyingOperation, destroy, getLayerManager, getShortcut, initEnabledState, installAdapters, listenToLayerChange, setHelpId, setToolbarId, setTooltip, updateEnabledState, updateEnabledStateOnCurrentSelection, updateEnabledStateOnCurrentSelection, updateEnabledStateOnModifiableSelection, waitFutureMethods inherited from class javax.swing.AbstractAction
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
-
Field Details
-
multiplier
-
-
Constructor Details
-
AudioFastSlowAction
protected AudioFastSlowAction(String name, String iconName, String tooltip, Shortcut shortcut, boolean fast) Constructs a newAudioFastSlowAction.- Parameters:
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-trueto increase speed (faster audio),falseto decrease it (slower audio).
-
-
Method Details
-
actionPerformed
-