public final class ImageryPreference extends DefaultTabPreferenceSetting
Modifier and Type | Class and Description |
---|---|
static class |
ImageryPreference.Factory
Factory used to create a new
ImageryPreference . |
static class |
ImageryPreference.ImageryProvidersPanel
A panel displaying imagery providers.
|
(package private) static class |
ImageryPreference.OffsetBookmarksPanel |
Modifier and Type | Field and Description |
---|---|
private CommonSettingsPanel |
commonSettings |
private ImageryPreference.ImageryProvidersPanel |
imageryProviders |
private ImageryLayerInfo |
layerInfo |
private TMSSettingsPanel |
tmsSettings |
private WMSSettingsPanel |
wmsSettings |
Modifier | Constructor and Description |
---|---|
private |
ImageryPreference() |
Modifier and Type | Method and Description |
---|---|
void |
addGui(PreferenceTabbedPane gui)
Add the GUI elements to the dialog.
|
private void |
addSettingsSection(JPanel p,
String name,
JPanel section) |
private static void |
addSettingsSection(JPanel p,
String name,
JPanel section,
GBC gbc) |
private Component |
buildSettingsPanel() |
ImageryPreference.ImageryProvidersPanel |
getProvidersPanel()
Returns the imagery providers panel.
|
String |
getServerUrl(String server)
Gets a server URL in the preferences dialog.
|
static void |
initialize()
Initializes imagery preferences.
|
private void |
loadSettings() |
boolean |
ok()
Called when OK is pressed to save the setting in the preferences file.
|
void |
setServerUrl(String server,
String url)
Updates a server URL in the preferences dialog.
|
addSubTab, addSubTab, createPreferenceTabWithScrollPane, getDescription, getIconName, getSubTab, getTabPane, getTitle, getTooltip, registerSubTab, selectSubTab
isExpert
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
isExpert
private ImageryPreference.ImageryProvidersPanel imageryProviders
private ImageryLayerInfo layerInfo
private CommonSettingsPanel commonSettings
private WMSSettingsPanel wmsSettings
private TMSSettingsPanel tmsSettings
private ImageryPreference()
private void addSettingsSection(JPanel p, String name, JPanel section)
private static void addSettingsSection(JPanel p, String name, JPanel section, GBC gbc)
private Component buildSettingsPanel()
public void addGui(PreferenceTabbedPane gui)
PreferenceSetting
gui
- the preferences tab panepublic ImageryPreference.ImageryProvidersPanel getProvidersPanel()
private void loadSettings()
public boolean ok()
PreferenceSetting
true
if restart is requiredpublic void setServerUrl(String server, String url)
server
- The server nameurl
- The server URLpublic String getServerUrl(String server)
server
- The server namepublic static void initialize()