Class GridPreference
java.lang.Object
org.openstreetmap.josm.gui.preferences.DefaultPreferenceSetting
org.openstreetmap.josm.gui.preferences.DefaultTabPreferenceSetting
org.openstreetmap.josm.gui.preferences.display.GridPreference
- All Implemented Interfaces:
PreferenceSetting,TabPreferenceSetting
Settings of the grid drawn over the map, see
MapGridPaintable.- Since:
- 19640
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classFactory used to create a newGridPreference.private static final classRenders enum values with a translated name -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final JosmComboBox<BlendComposite.Mode>private final JCheckBoxprivate static final DecimalFormatprivate final JosmTextFieldprivate final JosmTextFieldprivate final JosmTextFieldprivate final JLabelprivate final JosmTextFieldprivate final JLabelprivate final JosmTextFieldprivate final JosmTextFieldprivate final JLabelprivate final JosmTextFieldprivate final JLabelprivate final JosmComboBox<MapGridPaintable.GridType> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidAdd the GUI elements to the dialog.private static StringReturns the help context for this preferences settings tab.booleanisExpert()Called to know if the preferences tab has only to be displayed in expert mode.booleanok()Called when OK is pressed to save the setting in the preferences file.private static voidsave(JosmTextField field, DoubleProperty property, boolean positive) private static voidset(JosmTextField field, DoubleProperty property) private voidMethods inherited from class org.openstreetmap.josm.gui.preferences.DefaultTabPreferenceSetting
addSubTab, addSubTab, canBeHidden, createPreferenceTabWithScrollPane, getDescription, getIconName, getSelectedSubTab, getSubTab, getTabPane, getTitle, getTooltip, registerSubTab, selectSubTabMethods inherited from class org.openstreetmap.josm.gui.preferences.DefaultPreferenceSetting
saveBoolean, saveDouble, saveIntMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.openstreetmap.josm.gui.preferences.TabPreferenceSetting
getIcon
-
Field Details
-
FORMAT
-
enabled
-
type
-
spacingX
-
spacingY
-
rotation
-
originX
-
originY
-
minPixelSpacing
-
lineWidth
-
blendMode
-
spacingXLabel
-
spacingYLabel
-
originXLabel
-
originYLabel
-
-
Constructor Details
-
GridPreference
-
-
Method Details
-
addGui
Description copied from interface:PreferenceSettingAdd the GUI elements to the dialog. The elements should be initialized after the current preferences.- Parameters:
gui- the preferences tab pane
-
blendModeName
-
updateLabels
-
set
-
save
-
ok
Description copied from interface:PreferenceSettingCalled when OK is pressed to save the setting in the preferences file. Return true when restart is required.- Returns:
trueif restart is required
-
isExpert
Description copied from interface:PreferenceSettingCalled to know if the preferences tab has only to be displayed in expert mode.- Specified by:
isExpertin interfacePreferenceSetting- Overrides:
isExpertin classDefaultPreferenceSetting- Returns:
- true if the tab has only to be displayed in expert mode, false otherwise.
-
getHelpContext
Description copied from interface:TabPreferenceSettingReturns the help context for this preferences settings tab.- Specified by:
getHelpContextin interfaceTabPreferenceSetting- Overrides:
getHelpContextin classDefaultTabPreferenceSetting- Returns:
- the help context for this preferences settings tab
-