public abstract class Plugin extends Object implements MapFrameListener
Modifier and Type | Field and Description |
---|---|
private PluginInformation |
info
This is the info available for this plugin.
|
Constructor and Description |
---|
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.
|
void |
copy(String from,
String to)
Copies the resource 'from' to the file in the plugin directory named 'to'.
|
String |
getPluginDir() |
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 initalized.
|
void |
setPluginInformation(PluginInformation info)
Sets the plugin information object for this plugin
|
private PluginInformation info
public Plugin(PluginInformation info)
info
- the plugin information describing the plugin.public PluginInformation getPluginInformation()
public void setPluginInformation(PluginInformation info)
info
- the plugin information objectpublic String getPluginDir()
public void mapFrameInitialized(MapFrame oldFrame, MapFrame newFrame)
MapFrameListener
mapFrameInitialized
in interface MapFrameListener
oldFrame
- The old MapFramenewFrame
- The new MapFramepublic PreferenceSetting getPreferenceSetting()
public void addDownloadSelection(List<DownloadSelection> list)
public void copy(String from, String to) throws FileNotFoundException, IOException
FileNotFoundException
IOException
public ClassLoader getPluginResourceClassLoader()