public class EnableSnappingToLayerExtension extends Extension
Constructor and Description |
---|
EnableSnappingToLayerExtension() |
Modifier and Type | Method and Description |
---|---|
boolean |
canQueryByAction() |
void |
execute(java.lang.String action)
This method is executed when the user clicks on any of the
controls associated with this extension (menus, tools, etc).
|
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 |
isEnabled(java.lang.String action) |
boolean |
isVisible()
This method is invoked by Andami to check whether the extension
(and its associated controls) is visible or hidden.
|
boolean |
isVisible(java.lang.String action) |
public void initialize()
IExtension
public void execute(java.lang.String action)
IExtension
action
- An String specifying the action to
execute. This is useful when there are different
controls associated with the same extension.public boolean isEnabled()
IExtension
public boolean isVisible()
IExtension
public boolean isVisible(java.lang.String action)
isVisible
in interface IExtensionQueryByAction
isVisible
in class Extension
public boolean isEnabled(java.lang.String action)
isEnabled
in interface IExtensionQueryByAction
isEnabled
in class Extension
public boolean canQueryByAction()
canQueryByAction
in interface IExtensionQueryByAction
canQueryByAction
in class Extension