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 LayeraddLayer(String categoryName, String layerName, FeatureCollection featureCollection)JInternalFramegetActiveInternalFrame()LayergetCandidateLayer(int i)EnableCheckFactorygetCheckFactory()DriverManagergetDriverManager()ErrorHandlergetErrorHandler()FeatureInstallergetFeatureInstaller()LayerManagergetLayerManager()LayerNamePanelgetLayerNamePanel()LayerViewPanelgetLayerViewPanel()HTMLFramegetOutputFrame()LayergetSelectedLayer(int i)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()
-
getSelectedLayerEnvelope
public org.locationtech.jts.geom.Envelope getSelectedLayerEnvelope()
-
getTask
public Task getTask()
-
getLayerNamePanel
public LayerNamePanel getLayerNamePanel()
-
getLayerManager
public LayerManager getLayerManager()
- Specified by:
getLayerManagerin 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()
-
-