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
public abstract class AudioFastSlowAction extends AbstractAudioAction
Abstract superclass ofAudioFasterAction
andAudioSlowerAction
.- Since:
- 563
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.openstreetmap.josm.actions.JosmAction
JosmAction.ActiveLayerChangeAdapter, JosmAction.LayerChangeAdapter, JosmAction.SelectionChangeAdapter
-
-
Field Summary
Fields Modifier and Type Field Description private double
multiplier
-
Fields inherited from class org.openstreetmap.josm.actions.JosmAction
sc
-
Fields inherited from class javax.swing.AbstractAction
changeSupport, enabled
-
Fields 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
Constructors Modifier Constructor Description protected
AudioFastSlowAction(String name, String iconName, String tooltip, Shortcut shortcut, boolean fast)
Constructs a newAudioFastSlowAction
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
actionPerformed(ActionEvent e)
-
Methods inherited from class org.openstreetmap.josm.actions.audio.AbstractAudioAction
isAudioMarkerPresent, listenToSelectionChange, updateEnabledState
-
Methods inherited from class org.openstreetmap.josm.actions.JosmAction
buildActiveLayerChangeAdapter, buildLayerChangeAdapter, checkAndConfirmOutlyingOperation, destroy, getLayerManager, getShortcut, initEnabledState, installAdapters, listenToLayerChange, setHelpId, setToolbarId, setTooltip, updateEnabledState, updateEnabledStateOnCurrentSelection, updateEnabledStateOnCurrentSelection, updateEnabledStateOnModifiableSelection, waitFuture
-
Methods inherited from class javax.swing.AbstractAction
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
-
-
-
-
Field Detail
-
multiplier
private double multiplier
-
-
Constructor Detail
-
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
-true
to increase speed (faster audio),false
to decrease it (slower audio).
-
-
Method Detail
-
actionPerformed
public void actionPerformed(ActionEvent e)
-
-