com.vividsolutions.jump.workbench.plugin
Class PlugInContext

java.lang.Object
  extended bycom.vividsolutions.jump.workbench.plugin.PlugInContext
All Implemented Interfaces:
LayerManagerProxy

public class PlugInContext
extends java.lang.Object
implements LayerManagerProxy

Passed to PlugIns to enable them to access the rest of the JUMP Workbench.

See Also:
PlugIn

Constructor Summary
PlugInContext(WorkbenchContext workbenchContext, Task task, LayerManagerProxy layerManagerProxy, LayerNamePanel layerNamePanel, LayerViewPanel layerViewPanel)
           
 
Method Summary
 Layer addLayer(java.lang.String categoryName, java.lang.String layerName, FeatureCollection featureCollection)
           
 javax.swing.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)
           
 com.vividsolutions.jts.geom.Envelope getSelectedLayerEnvelope()
           
 Layer[] getSelectedLayers()
           
 Task getTask()
           
 WorkbenchContext getWorkbenchContext()
           
 WorkbenchFrame getWorkbenchFrame()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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 com.vividsolutions.jts.geom.Envelope getSelectedLayerEnvelope()

getTask

public Task getTask()

getLayerNamePanel

public LayerNamePanel getLayerNamePanel()

getLayerManager

public LayerManager getLayerManager()
Specified by:
getLayerManager in interface LayerManagerProxy

getLayerViewPanel

public LayerViewPanel getLayerViewPanel()

getWorkbenchFrame

public WorkbenchFrame getWorkbenchFrame()

addLayer

public Layer addLayer(java.lang.String categoryName,
                      java.lang.String layerName,
                      FeatureCollection featureCollection)

getOutputFrame

public HTMLFrame getOutputFrame()

getActiveInternalFrame

public javax.swing.JInternalFrame getActiveInternalFrame()

getCheckFactory

public EnableCheckFactory getCheckFactory()

getFeatureInstaller

public FeatureInstaller getFeatureInstaller()