Class PlugInContext

java.lang.Object
com.vividsolutions.jump.workbench.plugin.PlugInContext
All Implemented Interfaces:
LayerManagerProxy, LayerableNamePanelProxy, LayerNamePanelProxy, LayerViewPanelProxy

Passed to PlugIns to enable them to access the rest of the JUMP Workbench. contains preselected task,
See Also:
  • Constructor Details

  • Method Details

    • 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:
      getLayerNamePanel in interface LayerNamePanelProxy
      Returns:
      null if the LayerViewPanelProxy currently has no associated LayerViewPanel
    • getLayerableNamePanel

      public LayerableNamePanel getLayerableNamePanel()
      Specified by:
      getLayerableNamePanel in interface LayerableNamePanelProxy
      Returns:
      null if the LayerableViewPanelProxy currently has no associated LayerViewPanel
    • getLayerManager

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

      public LayerViewPanel getLayerViewPanel()
      Specified by:
      getLayerViewPanel in interface LayerViewPanelProxy
      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()