Class PlugInContext
- java.lang.Object
-
- org.locationtech.jts.jump.workbench.plugin.PlugInContext
-
- All Implemented Interfaces:
LayerManagerProxy
public class PlugInContext extends Object implements LayerManagerProxy
Passed to PlugIns to enable them to access the rest of the JUMP Workbench.- 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 Layer
addLayer(String categoryName, String layerName, FeatureCollection featureCollection)
JInternalFrame
getActiveInternalFrame()
Layer
getCandidateLayer(int i)
EnableCheckFactory
getCheckFactory()
DriverManager
getDriverManager()
ErrorHandler
getErrorHandler()
FeatureInstaller
getFeatureInstaller()
LayerManager
getLayerManager()
LayerNamePanel
getLayerNamePanel()
LayerViewPanel
getLayerViewPanel()
HTMLFrame
getOutputFrame()
Layer
getSelectedLayer(int i)
org.locationtech.jts.geom.Envelope
getSelectedLayerEnvelope()
Layer[]
getSelectedLayers()
Task
getTask()
WorkbenchContext
getWorkbenchContext()
WorkbenchFrame
getWorkbenchFrame()
-
-
-
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()
-
getSelectedLayerEnvelope
public org.locationtech.jts.geom.Envelope getSelectedLayerEnvelope()
-
getTask
public Task getTask()
-
getLayerNamePanel
public LayerNamePanel getLayerNamePanel()
-
getLayerManager
public LayerManager getLayerManager()
- Specified by:
getLayerManager
in interfaceLayerManagerProxy
-
getLayerViewPanel
public LayerViewPanel getLayerViewPanel()
-
getWorkbenchFrame
public WorkbenchFrame getWorkbenchFrame()
-
addLayer
public Layer addLayer(String categoryName, String layerName, FeatureCollection featureCollection)
-
getOutputFrame
public HTMLFrame getOutputFrame()
-
getActiveInternalFrame
public JInternalFrame getActiveInternalFrame()
-
getCheckFactory
public EnableCheckFactory getCheckFactory()
-
getFeatureInstaller
public FeatureInstaller getFeatureInstaller()
-
-