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.
|
static void |
addWizard(Class<? extends WizardPanel> wpClass) |
static void |
checkProjection(FLayer lyr,
ViewPort viewPort) |
void |
execute(String actionCommand)
This method is executed when the user clicks on any of the
controls associated with this extension (menus, tools, etc).
|
void |
execute(String command,
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(Class<? extends WizardPanel> wpClass)
public boolean isVisible()
IExtension
public void postInitialize()
IExtension
initialize()
has been called for ALL the extensions.postInitialize
in interface IExtension
postInitialize
in class Extension
public void execute(String actionCommand)
IExtension
actionCommand
- An String specifying the action to
execute. This is useful when there are different
controls associated with the same extension.public void execute(String command, Object[] args)
execute
in interface IExtensionExecuteWithArgs
execute
in class Extension
public boolean isEnabled()
IExtension
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 void initialize()
IExtension