public abstract class Plugin extends java.lang.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(java.util.List<DownloadSelection> list)
Called in the download dialog to give the plugin a chance to modify the list
of bounding box selectors.
|
void |
copy(java.lang.String from,
java.lang.String to)
Copies the resource 'from' to the file in the plugin directory named 'to'.
|
java.lang.String |
getPluginDir() |
PluginInformation |
getPluginInformation()
Replies the plugin information object for this plugin
|
java.lang.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 java.lang.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(java.util.List<DownloadSelection> list)
public void copy(java.lang.String from, java.lang.String to) throws java.io.FileNotFoundException, java.io.IOException
java.io.FileNotFoundException
java.io.IOException
public java.lang.ClassLoader getPluginResourceClassLoader()