Class PlugInContext
java.lang.Object
com.vividsolutions.jump.workbench.plugin.PlugInContext
- All Implemented Interfaces:
LayerManagerProxy, LayerableNamePanelProxy, LayerNamePanelProxy, LayerViewPanelProxy
public class PlugInContext
extends Object
implements LayerViewPanelProxy, LayerNamePanelProxy, LayerableNamePanelProxy, LayerManagerProxy
Passed to PlugIns to enable them to access the rest of the JUMP Workbench.
contains preselected task,
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionPlugInContext(WorkbenchContext workbenchContext, Task task, LayerManagerProxy layerManagerProxy, LayerNamePanel layerNamePanel, LayerViewPanel layerViewPanel) -
Method Summary
Modifier and TypeMethodDescriptionaddLayer(String categoryName, String layerName, FeatureCollection featureCollection) voidaddLayerSextanteRaster(String categoryName, RasterImageLayer raster) getCandidateLayer(int i) getSelectedLayer(int i) this extends getSelectedLayers() as it returns all selected Layerables e.g.org.locationtech.jts.geom.EnvelopeLayer[]getTask()
-
Constructor Details
-
PlugInContext
public PlugInContext(WorkbenchContext workbenchContext, Task task, LayerManagerProxy layerManagerProxy, LayerNamePanel layerNamePanel, LayerViewPanel layerViewPanel)
-
-
Method Details
-
getDriverManager
-
getErrorHandler
-
getWorkbenchContext
-
getSelectedLayer
- Returns:
- the ith layer clicked on the layer-list panel, or null if the user hasn't clicked an ith layer
-
getCandidateLayer
- Returns:
- the ith selected layer, or if there is none, the ith layer
-
getSelectedLayers
-
getSelectedLayerables
this extends getSelectedLayers() as it returns all selected Layerables e.g. WMSLayers- Returns:
- null or a Collection of Layerables
-
getSelectedLayerEnvelope
public org.locationtech.jts.geom.Envelope getSelectedLayerEnvelope() -
getTask
-
getLayerNamePanel
- Specified by:
getLayerNamePanelin interfaceLayerNamePanelProxy- Returns:
- null if the LayerViewPanelProxy currently has no associated LayerViewPanel
-
getLayerableNamePanel
- Specified by:
getLayerableNamePanelin interfaceLayerableNamePanelProxy- Returns:
- null if the LayerableViewPanelProxy currently has no associated LayerViewPanel
-
getLayerManager
- Specified by:
getLayerManagerin interfaceLayerManagerProxy
-
getLayerViewPanel
- Specified by:
getLayerViewPanelin interfaceLayerViewPanelProxy- Returns:
- null if the LayerViewPanelProxy currently has no associated LayerViewPanel
-
getWorkbenchFrame
-
addLayer
-
addLayerSextanteRaster
-
getOutputFrame
-
getActiveInternalFrame
-
getCheckFactory
-
getFeatureInstaller
-