public class PortableViewBasicMapControlExtension extends Extension implements MapControlToolRegistrant
PortableViewViewer| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
TOOL_PAN_ID |
static java.lang.String |
TOOL_ZOOM_IN_ID |
static java.lang.String |
TOOL_ZOOM_OUT_ID |
| Constructor and Description |
|---|
PortableViewBasicMapControlExtension() |
| Modifier and Type | Method and Description |
|---|---|
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 actionCommand,
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.
|
void |
registerTools(MapControl mapControl) |
public static final java.lang.String TOOL_PAN_ID
public static final java.lang.String TOOL_ZOOM_IN_ID
public static final java.lang.String TOOL_ZOOM_OUT_ID
public PortableViewBasicMapControlExtension()
public void initialize()
IExtensioninitialize in interface IExtensionpublic void postInitialize()
IExtensioninitialize()
has been called for ALL the extensions.postInitialize in interface IExtensionpostInitialize in class Extensionpublic void execute(java.lang.String actionCommand,
java.lang.Object[] args)
execute in interface IExtensionExecuteWithArgsexecute in class Extensionpublic void execute(java.lang.String actionCommand)
IExtensionexecute in interface IExtensionactionCommand - An String specifying the action to
execute. This is useful when there are different
controls associated with the same extension.public boolean isEnabled()
IExtensionisEnabled in interface IExtensionpublic boolean isVisible()
IExtensionisVisible in interface IExtensionpublic void registerTools(MapControl mapControl)
registerTools in interface MapControlToolRegistrant