public class AddLayer extends Extension
| Constructor and Description |
|---|
AddLayer() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
addLayers(MapContext mapContext)
Opens the AddLayer dialog, and adds the selected layers to the provided
MapContext.
|
boolean |
addLayers(MapControl mapControl)
Opens the AddLayer dialog, and adds the selected layers to the provided
mapControl.
|
boolean |
addLayers(MapControl mapControl,
boolean wait) |
static void |
addWizard(java.lang.Class<? extends WizardPanel> wpClass) |
static void |
checkProjection(FLayer lyr,
ViewPort viewPort) |
static AddLayerDialog |
createAddLayerDialog(MapControl mapControl,
MapContext mapContext,
java.util.List<java.io.File> files) |
static AddLayerDialog |
createAddLayerDialog(MapControl mapControl,
MapContext mapContext,
java.util.List<java.io.File> files,
Arguments args)
Creates FOpenDialog, and adds file tab, and additional registered tabs
|
void |
execute(java.lang.String actionCommand)
This method is executed when the user clicks on any of the
controls associated with this extension (menus, tools, etc).
|
void |
execute(java.lang.String command,
java.lang.Object[] args) |
void |
initialize()
Extension's initialization code should be here.
|
boolean |
isEnabled()
This method is invoked by Andami to check whether the extension
(and its associated controls) is enabled or disabled.
|
boolean |
isVisible()
This method is invoked by Andami to check whether the extension
(and its associated controls) is visible or hidden.
|
void |
postInitialize()
Extension's post-initialization code should be here.
|
public static void addWizard(java.lang.Class<? extends WizardPanel> wpClass)
public boolean isVisible()
IExtensionpublic void postInitialize()
IExtensioninitialize()
has been called for ALL the extensions.postInitialize in interface IExtensionpostInitialize in class Extensionpublic void execute(java.lang.String actionCommand)
IExtensionactionCommand - An String specifying the action to
execute. This is useful when there are different
controls associated with the same extension.public void execute(java.lang.String command,
java.lang.Object[] args)
execute in interface IExtensionExecuteWithArgsexecute in class Extensionpublic boolean isEnabled()
IExtensionpublic static AddLayerDialog createAddLayerDialog(MapControl mapControl, MapContext mapContext, java.util.List<java.io.File> files)
public static AddLayerDialog createAddLayerDialog(MapControl mapControl, MapContext mapContext, java.util.List<java.io.File> files, Arguments args)
mapControl - mapContext - files - args - public boolean addLayers(MapContext mapContext)
addLayers(MapControl) method.mapContext - The MapContext to add the layers totrue if any layer has been added.public boolean addLayers(MapControl mapControl)
mapControl - The MapControl to add the layers totrue if any layer has been added.public boolean addLayers(MapControl mapControl, boolean wait)
public void initialize()
IExtension