public class MapPaintPreference extends java.lang.Object implements SubPreferenceSetting
| Modifier and Type | Class and Description |
|---|---|
static class |
MapPaintPreference.Factory
Factory used to create a new
MapPaintPreference. |
(package private) static class |
MapPaintPreference.MapPaintSourceEditor |
| Modifier and Type | Field and Description |
|---|---|
private javax.swing.JCheckBox |
enableIconDefault |
private SourceEditor |
sources |
private static java.util.List<SourceProvider> |
styleSourceProviders |
| Constructor and Description |
|---|
MapPaintPreference() |
| 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.
|
static java.lang.String |
getTitleFromSourceEntry(SourceEntry entry)
Returns title from a source entry.
|
static void |
initialize()
Initialize the styles
|
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.
|
static boolean |
registerSourceProvider(SourceProvider provider)
Registers a new additional style source provider.
|
private SourceEditor sources
private javax.swing.JCheckBox enableIconDefault
private static final java.util.List<SourceProvider> styleSourceProviders
public MapPaintPreference()
public static boolean registerSourceProvider(SourceProvider provider)
provider - The style source providertrue, if the provider has been added, false otherwisepublic void addGui(PreferenceTabbedPane gui)
PreferenceSettingaddGui in interface PreferenceSettinggui - the preferences tab panepublic static java.lang.String getTitleFromSourceEntry(SourceEntry entry)
entry - source entrySourceEntry.titlepublic boolean ok()
PreferenceSettingok in interface PreferenceSettingtrue if restart is requiredpublic static void initialize()
public boolean isExpert()
PreferenceSettingisExpert in interface PreferenceSettingpublic TabPreferenceSetting getTabPreferenceSetting(PreferenceTabbedPane gui)
SubPreferenceSettinggetTabPreferenceSetting in interface SubPreferenceSettinggui - preferences tabbed pane