Class StreetsidePlugin
- java.lang.Object
-
- org.openstreetmap.josm.plugins.Plugin
-
- org.openstreetmap.josm.plugins.streetside.StreetsidePlugin
-
- All Implemented Interfaces:
MapFrameListener
public class StreetsidePlugin extends Plugin
This is the main class of the Streetside plugin.
-
-
Field Summary
Fields Modifier and Type Field Description static ImageProviderLOGOprivate static StreetsideWalkActionWALK_ACTIONWalk actionprivate static StreetsideZoomActionZOOM_ACTIONZoom action
-
Constructor Summary
Constructors Constructor Description StreetsidePlugin(PluginInformation info)Main constructor.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static MapViewgetMapView()PreferenceSettinggetPreferenceSetting()(package private) static StreetsideDataListener[]getStreetsideDataListeners()static StreetsideWalkActiongetStreetsideWalkAction()voidmapFrameInitialized(MapFrame oldFrame, MapFrame newFrame)Called when the JOSM map frame is created or destroyed.-
Methods inherited from class org.openstreetmap.josm.plugins.Plugin
addDownloadSelection, getPluginDirs, getPluginInformation, getPluginResourceClassLoader, setPluginInformation
-
-
-
-
Field Detail
-
LOGO
public static final ImageProvider LOGO
-
ZOOM_ACTION
private static final StreetsideZoomAction ZOOM_ACTION
Zoom action
-
WALK_ACTION
private static final StreetsideWalkAction WALK_ACTION
Walk action
-
-
Constructor Detail
-
StreetsidePlugin
public StreetsidePlugin(PluginInformation info)
Main constructor.- Parameters:
info- Required information of the plugin. Obtained from the jar file.
-
-
Method Detail
-
getStreetsideDataListeners
static StreetsideDataListener[] getStreetsideDataListeners()
-
getStreetsideWalkAction
public static StreetsideWalkAction getStreetsideWalkAction()
- Returns:
- the
StreetsideWalkActionfor the plugin
-
mapFrameInitialized
public void mapFrameInitialized(MapFrame oldFrame, MapFrame newFrame)
Called when the JOSM map frame is created or destroyed.- Specified by:
mapFrameInitializedin interfaceMapFrameListener- Overrides:
mapFrameInitializedin classPlugin
-
getPreferenceSetting
public PreferenceSetting getPreferenceSetting()
- Overrides:
getPreferenceSettingin classPlugin
-
getMapView
public static MapView getMapView()
- Returns:
- the current
MapViewwithout throwing aNullPointerException
-
-