org.openstreetmap.josm.plugins
Class PluginProxy

java.lang.Object
  extended by org.openstreetmap.josm.plugins.Plugin
      extended by org.openstreetmap.josm.plugins.PluginProxy

public class PluginProxy
extends Plugin

Helper class for the JOSM system to communicate with the plugin. This class should be of no interest for sole plugin writer.


Field Summary
 java.lang.Object plugin
           
 
Constructor Summary
PluginProxy(java.lang.Object plugin, PluginInformation info)
           
 
Method Summary
 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.
 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.
 
Methods inherited from class org.openstreetmap.josm.plugins.Plugin
copy, getPluginDir, getPluginInformation, getPluginResourceClassLoader, setPluginInformation
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

plugin

public final java.lang.Object plugin
Constructor Detail

PluginProxy

public PluginProxy(java.lang.Object plugin,
                   PluginInformation info)
Method Detail

mapFrameInitialized

public void mapFrameInitialized(MapFrame oldFrame,
                                MapFrame newFrame)
Description copied from class: Plugin
Called after Main.mapFrame is initalized. (After the first data is loaded). You can use this callback to tweak the newFrame to your needs, as example install an alternative Painter.

Overrides:
mapFrameInitialized in class Plugin

getPreferenceSetting

public PreferenceSetting getPreferenceSetting()
Description copied from class: Plugin
Called in the preferences dialog to create a preferences page for the plugin, if any available.

Overrides:
getPreferenceSetting in class Plugin

addDownloadSelection

public void addDownloadSelection(java.util.List<DownloadSelection> list)
Description copied from class: Plugin
Called in the download dialog to give the plugin a chance to modify the list of bounding box selectors.

Overrides:
addDownloadSelection in class Plugin


JOSM