org.openstreetmap.josm.gui.preferences.display
Class DrawingPreference

java.lang.Object
  extended by org.openstreetmap.josm.gui.preferences.display.DrawingPreference
All Implemented Interfaces:
PreferenceSetting, SubPreferenceSetting

public class DrawingPreference
extends java.lang.Object
implements SubPreferenceSetting


Nested Class Summary
static class DrawingPreference.Factory
           
 
Field Summary
private  javax.swing.JCheckBox directionHint
           
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 virtualNodes
           
 
Constructor Summary
DrawingPreference()
           
 
Method Summary
 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

gpxPanel

private GPXSettingsPanel gpxPanel

directionHint

private javax.swing.JCheckBox directionHint

headArrow

private javax.swing.JCheckBox headArrow

onewayArrow

private javax.swing.JCheckBox onewayArrow

segmentOrderNumber

private javax.swing.JCheckBox segmentOrderNumber

sourceBounds

private javax.swing.JCheckBox sourceBounds

virtualNodes

private javax.swing.JCheckBox virtualNodes

inactive

private javax.swing.JCheckBox inactive

useHighlighting

private javax.swing.JCheckBox useHighlighting

drawHelperLine

private javax.swing.JCheckBox drawHelperLine

useAntialiasing

private javax.swing.JCheckBox useAntialiasing

outlineOnly

private javax.swing.JCheckBox outlineOnly
Constructor Detail

DrawingPreference

public DrawingPreference()
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.

Specified by:
addGui in interface PreferenceSetting

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.

Specified by:
ok in interface PreferenceSetting

isExpert

public boolean isExpert()
Description copied from interface: PreferenceSetting
Called to know if the preferences tab has only to be displayed in expert mode.

Specified by:
isExpert in interface PreferenceSetting
Returns:
true if the tab has only to be displayed in expert mode, false otherwise.

getTabPreferenceSetting

public TabPreferenceSetting getTabPreferenceSetting(PreferenceTabbedPane gui)
Description copied from interface: SubPreferenceSetting
Returns the preference setting (displayed in the specified preferences tab pane) that contains this preference setting.

Specified by:
getTabPreferenceSetting in interface SubPreferenceSetting


JOSM