Class DrawingPreference
- java.lang.Object
-
- org.openstreetmap.josm.gui.preferences.DefaultPreferenceSetting
-
- org.openstreetmap.josm.gui.preferences.DefaultTabPreferenceSetting
-
- org.openstreetmap.josm.gui.preferences.display.DrawingPreference
-
- All Implemented Interfaces:
PreferenceSetting,TabPreferenceSetting
public class DrawingPreference extends DefaultTabPreferenceSetting
"OSM Data" drawing preferences.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classDrawingPreference.FactoryFactory used to create a newDrawingPreference.
-
Field Summary
Fields Modifier and Type Field Description private JosmComboBox<AutoFilterRule>autoFilterRulesprivate javax.swing.JCheckBoxautoFiltersprivate javax.swing.JCheckBoxdirectionHintprivate javax.swing.JCheckBoxdiscardableKeysprivate javax.swing.JCheckBoxdrawHelperLineprivate javax.swing.JCheckBoxheadArrowprivate javax.swing.JCheckBoxhideLabelsWhileDraggingprivate javax.swing.JCheckBoxinactiveprivate javax.swing.JLabellblRuleprivate javax.swing.JCheckBoxonewayArrowprivate javax.swing.JCheckBoxoutlineOnlyprivate javax.swing.JCheckBoxsegmentOrderNumberprivate javax.swing.JCheckBoxsegmentOrderNumberOnSelectedWaystatic BooleanPropertySOURCE_BOUNDS_PROPProperty controlling whether to draw boundaries of downloaded dataprivate javax.swing.JCheckBoxsourceBoundsprivate javax.swing.JCheckBoxuseAntialiasingprivate javax.swing.JCheckBoxuseHighlightingprivate javax.swing.JCheckBoxuseWireframeAntialiasingprivate javax.swing.JCheckBoxvirtualNodes
-
Constructor Summary
Constructors Constructor Description DrawingPreference()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddGui(PreferenceTabbedPane gui)Add the GUI elements to the dialog.java.lang.StringgetHelpContext()Returns 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.-
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
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.TabPreferenceSetting
getIcon
-
-
-
-
Field Detail
-
SOURCE_BOUNDS_PROP
public static final BooleanProperty SOURCE_BOUNDS_PROP
Property controlling whether to draw boundaries of downloaded data- Since:
- 14648
-
directionHint
private final javax.swing.JCheckBox directionHint
-
headArrow
private final javax.swing.JCheckBox headArrow
-
onewayArrow
private final javax.swing.JCheckBox onewayArrow
-
segmentOrderNumber
private final javax.swing.JCheckBox segmentOrderNumber
-
segmentOrderNumberOnSelectedWay
private final javax.swing.JCheckBox segmentOrderNumberOnSelectedWay
-
sourceBounds
private final javax.swing.JCheckBox sourceBounds
-
virtualNodes
private final javax.swing.JCheckBox virtualNodes
-
inactive
private final javax.swing.JCheckBox inactive
-
discardableKeys
private final javax.swing.JCheckBox discardableKeys
-
autoFilters
private final javax.swing.JCheckBox autoFilters
-
lblRule
private final javax.swing.JLabel lblRule
-
autoFilterRules
private final JosmComboBox<AutoFilterRule> autoFilterRules
-
useHighlighting
private final javax.swing.JCheckBox useHighlighting
-
drawHelperLine
private final javax.swing.JCheckBox drawHelperLine
-
useAntialiasing
private final javax.swing.JCheckBox useAntialiasing
-
useWireframeAntialiasing
private final javax.swing.JCheckBox useWireframeAntialiasing
-
outlineOnly
private final javax.swing.JCheckBox outlineOnly
-
hideLabelsWhileDragging
private final javax.swing.JCheckBox hideLabelsWhileDragging
-
-
Constructor Detail
-
DrawingPreference
DrawingPreference()
-
-
Method Detail
-
addGui
public void addGui(PreferenceTabbedPane gui)
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
-
ok
public boolean 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
public boolean 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
public java.lang.String 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
-
-