Class DisplayPreference
- java.lang.Object
-
- org.openstreetmap.josm.gui.preferences.DefaultPreferenceSetting
-
- org.openstreetmap.josm.gui.preferences.DefaultTabPreferenceSetting
-
- org.openstreetmap.josm.gui.preferences.ExtensibleTabPreferenceSetting
-
- org.openstreetmap.josm.gui.preferences.display.DisplayPreference
-
- All Implemented Interfaces:
PreferenceSetting
,TabPreferenceSetting
public final class DisplayPreference extends ExtensibleTabPreferenceSetting
Display preferences (various settings that influence the visual representation of the whole program).- Since:
- 4969
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
DisplayPreference.Factory
Factory used to create a newDisplayPreference
.
-
Constructor Summary
Constructors Modifier Constructor Description private
DisplayPreference()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected boolean
canBeHidden()
Determines whether this tab may be hidden (since it does not contain any relevant content)java.lang.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.ExtensibleTabPreferenceSetting
addGui
-
Methods inherited from class org.openstreetmap.josm.gui.preferences.DefaultTabPreferenceSetting
addSubTab, addSubTab, 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
-
-
-
-
Constructor Detail
-
DisplayPreference
private DisplayPreference()
-
-
Method Detail
-
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 java.lang.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
-
canBeHidden
protected boolean canBeHidden()
Description copied from class:DefaultTabPreferenceSetting
Determines whether this tab may be hidden (since it does not contain any relevant content)- Overrides:
canBeHidden
in classDefaultTabPreferenceSetting
- Returns:
- whether this tab may be hidden
-
-