public class AnnotationExtension extends Extension
Modifier and Type | Field and Description |
---|---|
static String |
PERSIST_DEF_FONT_COLOR_KEY |
static String |
PERSIST_DEF_FONT_HEIGHT_KEY |
static String |
PERSIST_DEF_FONT_ROTATION_KEY |
static String |
PERSIST_DEF_FONT_STYLE_KEY |
static String |
PERSIST_DEF_FONT_TYPE_KEY |
static String |
PERSIST_DEF_TEXT_VALUE_KEY |
Constructor and Description |
---|
AnnotationExtension() |
Modifier and Type | Method and Description |
---|---|
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 |
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 |
showAnnotation(AnnotationManager manager,
FeatureStore featureStore,
MapContext mapContext) |
public static final String PERSIST_DEF_FONT_COLOR_KEY
public static final String PERSIST_DEF_TEXT_VALUE_KEY
public static final String PERSIST_DEF_FONT_TYPE_KEY
public static final String PERSIST_DEF_FONT_STYLE_KEY
public static final String PERSIST_DEF_FONT_HEIGHT_KEY
public static final String PERSIST_DEF_FONT_ROTATION_KEY
public void initialize()
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 showAnnotation(AnnotationManager manager, FeatureStore featureStore, MapContext mapContext)
public boolean isEnabled()
IExtension
public boolean isVisible()
IExtension