public abstract class Plugin extends Object implements MapFrameListener
Modifier and Type | Class and Description |
---|---|
private class |
Plugin.PluginBaseDirectories |
Modifier and Type | Field and Description |
---|---|
private PluginInformation |
info
This is the info available for this plugin.
|
private IBaseDirectories |
pluginBaseDirectories |
Modifier | Constructor and Description |
---|---|
protected |
Plugin(PluginInformation info)
Creates the plugin
|
Modifier and Type | Method and Description |
---|---|
void |
addDownloadSelection(List<DownloadSelection> list)
Called in the download dialog to give the plugin a chance to modify the list
of bounding box selectors.
|
IBaseDirectories |
getPluginDirs()
Get the directories where this plugin can store various files.
|
PluginInformation |
getPluginInformation()
Replies the plugin information object for this plugin
|
ClassLoader |
getPluginResourceClassLoader()
Get a class loader for loading resources from the plugin jar.
|
PreferenceSetting |
getPreferenceSetting()
Called in the preferences dialog to create a preferences page for the plugin,
if any available.
|
void |
mapFrameInitialized(MapFrame oldFrame,
MapFrame newFrame)
Called after Main.mapFrame is initialized.
|
void |
setPluginInformation(PluginInformation info)
Sets the plugin information object for this plugin
|
private PluginInformation info
private final IBaseDirectories pluginBaseDirectories
protected Plugin(PluginInformation info)
info
- the plugin information describing the plugin.public PluginInformation getPluginInformation()
public void setPluginInformation(PluginInformation info)
info
- the plugin information objectpublic IBaseDirectories getPluginDirs()
public void mapFrameInitialized(MapFrame oldFrame, MapFrame newFrame)
MapFrameListener
mapFrameInitialized
in interface MapFrameListener
oldFrame
- The old MapFramenewFrame
- The new MapFramepublic PreferenceSetting getPreferenceSetting()
null
public void addDownloadSelection(List<DownloadSelection> list)
list
- list of bounding box selectorspublic ClassLoader getPluginResourceClassLoader()