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:
PlugIn
-
-
Constructor Summary
Constructors Constructor Description PlugInContext(WorkbenchContext workbenchContext, Task task, LayerManagerProxy layerManagerProxy, LayerNamePanel layerNamePanel, LayerViewPanel layerViewPanel)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description LayeraddLayer(String categoryName, String layerName, FeatureCollection featureCollection)voidaddLayerSextanteRaster(String categoryName, RasterImageLayer raster)JInternalFramegetActiveInternalFrame()LayergetCandidateLayer(int i)EnableCheckFactorygetCheckFactory()DriverManagergetDriverManager()ErrorHandlergetErrorHandler()FeatureInstallergetFeatureInstaller()LayerableNamePanelgetLayerableNamePanel()LayerManagergetLayerManager()LayerNamePanelgetLayerNamePanel()LayerViewPanelgetLayerViewPanel()HTMLFramegetOutputFrame()LayergetSelectedLayer(int i)Collection<Layerable>getSelectedLayerables()this extends getSelectedLayers() as it returns all selected Layerables e.g.org.locationtech.jts.geom.EnvelopegetSelectedLayerEnvelope()Layer[]getSelectedLayers()TaskgetTask()WorkbenchContextgetWorkbenchContext()WorkbenchFramegetWorkbenchFrame()
-
-
-
Constructor Detail
-
PlugInContext
public PlugInContext(WorkbenchContext workbenchContext, Task task, LayerManagerProxy layerManagerProxy, LayerNamePanel layerNamePanel, LayerViewPanel layerViewPanel)
-
-
Method Detail
-
getDriverManager
public DriverManager getDriverManager()
-
getErrorHandler
public ErrorHandler getErrorHandler()
-
getWorkbenchContext
public WorkbenchContext getWorkbenchContext()
-
getSelectedLayer
public Layer getSelectedLayer(int i)
- Returns:
- the ith layer clicked on the layer-list panel, or null if the user hasn't clicked an ith layer
-
getCandidateLayer
public Layer getCandidateLayer(int i)
- Returns:
- the ith selected layer, or if there is none, the ith layer
-
getSelectedLayers
public Layer[] getSelectedLayers()
-
getSelectedLayerables
public Collection<Layerable> 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
public Task getTask()
-
getLayerNamePanel
public LayerNamePanel getLayerNamePanel()
- Specified by:
getLayerNamePanelin interfaceLayerNamePanelProxy- Returns:
- null if the LayerViewPanelProxy currently has no associated LayerViewPanel
-
getLayerableNamePanel
public LayerableNamePanel getLayerableNamePanel()
- Specified by:
getLayerableNamePanelin interfaceLayerableNamePanelProxy- Returns:
- null if the LayerableViewPanelProxy currently has no associated LayerViewPanel
-
getLayerManager
public LayerManager getLayerManager()
- Specified by:
getLayerManagerin interfaceLayerManagerProxy
-
getLayerViewPanel
public LayerViewPanel getLayerViewPanel()
- Specified by:
getLayerViewPanelin interfaceLayerViewPanelProxy- Returns:
- null if the LayerViewPanelProxy currently has no associated LayerViewPanel
-
getWorkbenchFrame
public WorkbenchFrame getWorkbenchFrame()
-
addLayer
public Layer addLayer(String categoryName, String layerName, FeatureCollection featureCollection)
-
addLayerSextanteRaster
public void addLayerSextanteRaster(String categoryName, RasterImageLayer raster)
-
getOutputFrame
public HTMLFrame getOutputFrame()
-
getActiveInternalFrame
public JInternalFrame getActiveInternalFrame()
-
getCheckFactory
public EnableCheckFactory getCheckFactory()
-
getFeatureInstaller
public FeatureInstaller getFeatureInstaller()
-
-