Class AddLayer

java.lang.Object
org.gvsig.andami.plugins.Extension
org.gvsig.app.extension.AddLayer
All Implemented Interfaces:
org.gvsig.andami.plugins.IExtension, org.gvsig.andami.plugins.IExtensionExecuteWithArgs, org.gvsig.andami.plugins.IExtensionQueryByAction

public class AddLayer extends org.gvsig.andami.plugins.Extension
Extensi�n que abre un di�logo para seleccionar la capa o capas que se quieren anadir a la vista.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    addLayers(org.gvsig.fmap.mapcontext.MapContext mapContext)
    Opens the AddLayer dialog, and adds the selected layers to the provided MapContext.
    boolean
    addLayers(org.gvsig.fmap.mapcontrol.MapControl mapControl)
    Opens the AddLayer dialog, and adds the selected layers to the provided mapControl.
    boolean
    addLayers(org.gvsig.fmap.mapcontrol.MapControl mapControl, boolean wait)
     
    static void
    addWizard(Class<? extends WizardPanel> wpClass)
     
    static void
    checkProjection(org.gvsig.fmap.mapcontext.layers.FLayer lyr, org.gvsig.fmap.mapcontext.ViewPort viewPort)
     
    createAddLayerDialog(org.gvsig.fmap.mapcontrol.MapControl mapControl, org.gvsig.fmap.mapcontext.MapContext mapContext, List<File> files)
     
    createAddLayerDialog(org.gvsig.fmap.mapcontrol.MapControl mapControl, org.gvsig.fmap.mapcontext.MapContext mapContext, List<File> files, org.gvsig.tools.arguments.Arguments args)
    Creates FOpenDialog, and adds file tab, and additional registered tabs
    void
    execute(String actionCommand)
     
    void
    execute(String command, Object[] args)
     
    void
     
    boolean
     
    boolean
     
    void
     

    Methods inherited from class org.gvsig.andami.plugins.Extension

    canQueryByAction, getPlugin, getStatus, getStatus, getText, isEnabled, isVisible, setPlugin, terminate

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • AddLayer

      public AddLayer()
  • Method Details

    • addWizard

      public static void addWizard(Class<? extends WizardPanel> wpClass)
    • isVisible

      public boolean isVisible()
    • postInitialize

      public void postInitialize()
      Specified by:
      postInitialize in interface org.gvsig.andami.plugins.IExtension
      Overrides:
      postInitialize in class org.gvsig.andami.plugins.Extension
    • checkProjection

      public static void checkProjection(org.gvsig.fmap.mapcontext.layers.FLayer lyr, org.gvsig.fmap.mapcontext.ViewPort viewPort)
    • execute

      public void execute(String actionCommand)
    • execute

      public void execute(String command, Object[] args)
      Specified by:
      execute in interface org.gvsig.andami.plugins.IExtensionExecuteWithArgs
      Overrides:
      execute in class org.gvsig.andami.plugins.Extension
    • isEnabled

      public boolean isEnabled()
    • createAddLayerDialog

      public static AddLayerDialog createAddLayerDialog(org.gvsig.fmap.mapcontrol.MapControl mapControl, org.gvsig.fmap.mapcontext.MapContext mapContext, List<File> files)
    • createAddLayerDialog

      public static AddLayerDialog createAddLayerDialog(org.gvsig.fmap.mapcontrol.MapControl mapControl, org.gvsig.fmap.mapcontext.MapContext mapContext, List<File> files, org.gvsig.tools.arguments.Arguments args)
      Creates FOpenDialog, and adds file tab, and additional registered tabs
      Parameters:
      mapControl -
      mapContext -
      files -
      args -
      Returns:
      FOpenDialog
    • addLayers

      public boolean addLayers(org.gvsig.fmap.mapcontext.MapContext mapContext)
      Opens the AddLayer dialog, and adds the selected layers to the provided MapContext. This method is useful when we want to add a layer but we don't have an associated View. If a View or a MapControl is available, you will usually prefer the addLayers(MapControl) method.
      Parameters:
      mapContext - The MapContext to add the layers to
      Returns:
      true if any layer has been added.
    • addLayers

      public boolean addLayers(org.gvsig.fmap.mapcontrol.MapControl mapControl)
      Opens the AddLayer dialog, and adds the selected layers to the provided mapControl.
      Parameters:
      mapControl - The MapControl to add the layers to
      Returns:
      true if any layer has been added.
    • addLayers

      public boolean addLayers(org.gvsig.fmap.mapcontrol.MapControl mapControl, boolean wait)
    • initialize

      public void initialize()