Class AudioPreference
- java.lang.Object
-
- org.openstreetmap.josm.gui.preferences.DefaultPreferenceSetting
-
- org.openstreetmap.josm.gui.preferences.DefaultTabPreferenceSetting
-
- org.openstreetmap.josm.gui.preferences.audio.AudioPreference
-
- All Implemented Interfaces:
PreferenceSetting
,TabPreferenceSetting
public final class AudioPreference extends DefaultTabPreferenceSetting
Audio preferences.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
AudioPreference.Factory
Factory used to create a newAudioPreference
.
-
Field Summary
Fields Modifier and Type Field Description private JosmTextField
audioCalibration
private JosmTextField
audioFastForwardMultiplier
private JosmTextField
audioForwardBackAmount
private JosmTextField
audioLeadIn
private JCheckBox
audioMarkersFromExplicitWaypoints
private JCheckBox
audioMarkersFromNamedTrackpoints
private JCheckBox
audioMarkersFromStart
private JCheckBox
audioMarkersFromUntimedWaypoints
private JCheckBox
audioMarkersFromWavTimestamps
private JCheckBox
audioMenuVisible
private JCheckBox
markerAudioTraceVisible
private JCheckBox
markerButtonLabels
-
Constructor Summary
Constructors Modifier Constructor Description private
AudioPreference()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addGui(PreferenceTabbedPane gui)
Add the GUI elements to the dialog.String
getHelpContext()
Returns the help context for this preferences settings tab.boolean
ok()
Called when OK is pressed to save the setting in the preferences file.-
Methods inherited from class org.openstreetmap.josm.gui.preferences.DefaultTabPreferenceSetting
addSubTab, addSubTab, canBeHidden, createPreferenceTabWithScrollPane, getDescription, getIconName, getSelectedSubTab, getSubTab, getTabPane, getTitle, getTooltip, registerSubTab, selectSubTab
-
Methods inherited from class org.openstreetmap.josm.gui.preferences.DefaultPreferenceSetting
isExpert, saveBoolean, saveDouble, saveInt
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.openstreetmap.josm.gui.preferences.PreferenceSetting
isExpert
-
Methods inherited from interface org.openstreetmap.josm.gui.preferences.TabPreferenceSetting
getIcon
-
-
-
-
Field Detail
-
audioMenuVisible
private final JCheckBox audioMenuVisible
-
markerButtonLabels
private final JCheckBox markerButtonLabels
-
markerAudioTraceVisible
private final JCheckBox markerAudioTraceVisible
-
audioMarkersFromExplicitWaypoints
private final JCheckBox audioMarkersFromExplicitWaypoints
-
audioMarkersFromUntimedWaypoints
private final JCheckBox audioMarkersFromUntimedWaypoints
-
audioMarkersFromNamedTrackpoints
private final JCheckBox audioMarkersFromNamedTrackpoints
-
audioMarkersFromWavTimestamps
private final JCheckBox audioMarkersFromWavTimestamps
-
audioMarkersFromStart
private final JCheckBox audioMarkersFromStart
-
audioLeadIn
private final JosmTextField audioLeadIn
-
audioForwardBackAmount
private final JosmTextField audioForwardBackAmount
-
audioFastForwardMultiplier
private final JosmTextField audioFastForwardMultiplier
-
audioCalibration
private final JosmTextField audioCalibration
-
-
Constructor Detail
-
AudioPreference
private AudioPreference()
-
-
Method Detail
-
addGui
public void addGui(PreferenceTabbedPane gui)
Description copied from interface:PreferenceSetting
Add the GUI elements to the dialog. The elements should be initialized after the current preferences.- Parameters:
gui
- the preferences tab pane
-
ok
public boolean ok()
Description copied from interface:PreferenceSetting
Called when OK is pressed to save the setting in the preferences file. Return true when restart is required.- Returns:
true
if restart is required
-
getHelpContext
public String getHelpContext()
Description copied from interface:TabPreferenceSetting
Returns the help context for this preferences settings tab.- Specified by:
getHelpContext
in interfaceTabPreferenceSetting
- Overrides:
getHelpContext
in classDefaultTabPreferenceSetting
- Returns:
- the help context for this preferences settings tab
-
-