public class DrawingPreference extends java.lang.Object implements SubPreferenceSetting
| Modifier and Type | Class and Description |
|---|---|
static class |
DrawingPreference.Factory
Factory used to create a new
DrawingPreference. |
| Modifier and Type | Field and Description |
|---|---|
private javax.swing.JCheckBox |
directionHint |
private javax.swing.JCheckBox |
discardableKeys |
private javax.swing.JCheckBox |
drawHelperLine |
private GPXSettingsPanel |
gpxPanel |
private javax.swing.JCheckBox |
headArrow |
private javax.swing.JCheckBox |
inactive |
private javax.swing.JCheckBox |
onewayArrow |
private javax.swing.JCheckBox |
outlineOnly |
private javax.swing.JCheckBox |
segmentOrderNumber |
private javax.swing.JCheckBox |
sourceBounds |
private javax.swing.JCheckBox |
useAntialiasing |
private javax.swing.JCheckBox |
useHighlighting |
private javax.swing.JCheckBox |
useWireframeAntialiasing |
private javax.swing.JCheckBox |
virtualNodes |
| Constructor and Description |
|---|
DrawingPreference() |
| Modifier and Type | Method and Description |
|---|---|
void |
addGui(PreferenceTabbedPane gui)
Add the GUI elements to the dialog.
|
TabPreferenceSetting |
getTabPreferenceSetting(PreferenceTabbedPane gui)
Returns the preference setting (displayed in the specified preferences tab pane) that contains this preference setting.
|
boolean |
isExpert()
Called to know if the preferences tab has only to be displayed in expert mode.
|
boolean |
ok()
Called when OK is pressed to save the setting in the preferences file.
|
private GPXSettingsPanel gpxPanel
private final javax.swing.JCheckBox directionHint
private final javax.swing.JCheckBox headArrow
private final javax.swing.JCheckBox onewayArrow
private final javax.swing.JCheckBox segmentOrderNumber
private final javax.swing.JCheckBox sourceBounds
private final javax.swing.JCheckBox virtualNodes
private final javax.swing.JCheckBox inactive
private final javax.swing.JCheckBox discardableKeys
private final javax.swing.JCheckBox useHighlighting
private final javax.swing.JCheckBox drawHelperLine
private final javax.swing.JCheckBox useAntialiasing
private final javax.swing.JCheckBox useWireframeAntialiasing
private final javax.swing.JCheckBox outlineOnly
public DrawingPreference()
public void addGui(PreferenceTabbedPane gui)
PreferenceSettingaddGui in interface PreferenceSettinggui - the preferences tab panepublic boolean ok()
PreferenceSettingok in interface PreferenceSettingtrue if restart is requiredpublic boolean isExpert()
PreferenceSettingisExpert in interface PreferenceSettingpublic TabPreferenceSetting getTabPreferenceSetting(PreferenceTabbedPane gui)
SubPreferenceSettinggetTabPreferenceSetting in interface SubPreferenceSettinggui - preferences tabbed pane