Package org.gvsig.app.extension
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 -
Method Summary
Modifier and TypeMethodDescriptionbooleanaddLayers(org.gvsig.fmap.mapcontext.MapContext mapContext) Opens the AddLayer dialog, and adds the selected layers to the provided MapContext.booleanaddLayers(org.gvsig.fmap.mapcontrol.MapControl mapControl) Opens the AddLayer dialog, and adds the selected layers to the provided mapControl.booleanaddLayers(org.gvsig.fmap.mapcontrol.MapControl mapControl, boolean wait) static voidaddWizard(Class<? extends WizardPanel> wpClass) static voidcheckProjection(org.gvsig.fmap.mapcontext.layers.FLayer lyr, org.gvsig.fmap.mapcontext.ViewPort viewPort) static AddLayerDialogcreateAddLayerDialog(org.gvsig.fmap.mapcontrol.MapControl mapControl, org.gvsig.fmap.mapcontext.MapContext mapContext, List<File> files) static AddLayerDialogcreateAddLayerDialog(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 tabsvoidvoidvoidbooleanbooleanvoidMethods inherited from class org.gvsig.andami.plugins.Extension
canQueryByAction, getPlugin, getStatus, getStatus, getText, isEnabled, isVisible, setPlugin, terminate
-
Constructor Details
-
AddLayer
public AddLayer()
-
-
Method Details
-
addWizard
-
isVisible
public boolean isVisible() -
postInitialize
public void postInitialize()- Specified by:
postInitializein interfaceorg.gvsig.andami.plugins.IExtension- Overrides:
postInitializein classorg.gvsig.andami.plugins.Extension
-
checkProjection
public static void checkProjection(org.gvsig.fmap.mapcontext.layers.FLayer lyr, org.gvsig.fmap.mapcontext.ViewPort viewPort) -
execute
-
execute
- Specified by:
executein interfaceorg.gvsig.andami.plugins.IExtensionExecuteWithArgs- Overrides:
executein classorg.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 theaddLayers(MapControl)method.- Parameters:
mapContext- The MapContext to add the layers to- Returns:
trueif 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:
trueif any layer has been added.
-
addLayers
public boolean addLayers(org.gvsig.fmap.mapcontrol.MapControl mapControl, boolean wait) -
initialize
public void initialize()
-