public interface AnnotationManager
AnnotationCreationServices.AnnotationCreationService| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
FONTCOLOR_ATTRIBUTE_NAME
Name of the datastore attribute that contains the font color
of the annotation.
|
static java.lang.String |
FONTHEGTH_ATTRIBUTE_NAME
Name of the datastore attribute that contains the font heigth
of the annotation.
|
static java.lang.String |
FONTROTATION_ATTRIBUTE_NAME
Name of the datastore attribute that contains the font rotation
of the annotation.
|
static java.lang.String |
FONTSTYLE_ATTRIBUTE_NAME
Name of the datastore attribute that contains the font style
of the annotation.
|
static java.lang.String |
FONTTYPE_ATTRIBUTE_NAME
Name of the datastore attribute that contains the font type
of the annotation.
|
static java.lang.String |
TEXTVALUE_ATTRIBUTE_NAME
Name of the datastore attribute that contains the text
of the annotation.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addFontStyle(java.lang.String fontStyle)
It adds a new value for the font style field.
|
void |
addFontType(java.lang.String fontType)
It adds a new value for the font type field.
|
AnnotationCreationService |
getAnnotationCreationService(FeatureStore featureStore)
Create an instance of a
AnnotationCreationService. |
AnnotationPositionCalculator |
getAnnotationPositionCalculator(java.lang.String name)
It returns an object that can be used to create the point
where the annotation is displayed.
|
java.util.List<java.lang.String> |
getAnnotationPositionCalculatorList() |
AnnotationPositionCalculator |
getDefaultAnnotationPositionCalculator()
It returns the default
AnnotationPositionCalculator. |
int |
getDefaultFontColor()
Value used like the default value for the font color field.
|
double |
getDefaultFontHeight()
Value used like the default value for the font height field.
|
double |
getDefaultFontRotation()
Value used like the default value for the font rotation field.
|
java.lang.String |
getDefaultFontStyle()
Value used like the default value for the font style field.
|
java.lang.String |
getDefaultFontType()
Value used like the default value for the font type field.
|
java.lang.String |
getDefaultTextValue()
Value used like the default value for the text field.
|
java.util.List<java.lang.String> |
getFontStyles() |
java.util.List<java.lang.String> |
getFontTypes() |
void |
registerAnnotationPositionCalculator(java.lang.String name,
java.lang.Class annotationPositionCalculatorClass)
It registers a class that can be used to caclulate the position of an
annotation.
|
void |
registerDefaultAnnotationPositionCalculator(java.lang.Class annotationPositionCalculatorClass)
It registers the default implementation of an
AnnotationPositionCalculator
class. |
void |
setDefaultFontColor(java.awt.Color fontColor)
Set the default value for the font color field.
|
void |
setDefaultFontColor(int fontColor)
Set the default value for the font color field.
|
void |
setDefaultFontHeight(double fontHeight)
Set the default value for the font height field.
|
void |
setDefaultFontRotation(double fontRotation)
Set the default value for the font rotation field.
|
void |
setDefaultFontStyle(java.lang.String fontStyle)
Set the default value for the font style field.
|
void |
setDefaultFontType(java.lang.String fontType)
Set the default value for the font type field.
|
void |
setDefaultTextValue(java.lang.String textValue)
Set the default value for the text field.
|
static final java.lang.String TEXTVALUE_ATTRIBUTE_NAME
static final java.lang.String FONTTYPE_ATTRIBUTE_NAME
static final java.lang.String FONTSTYLE_ATTRIBUTE_NAME
static final java.lang.String FONTCOLOR_ATTRIBUTE_NAME
static final java.lang.String FONTROTATION_ATTRIBUTE_NAME
static final java.lang.String FONTHEGTH_ATTRIBUTE_NAME
AnnotationCreationService getAnnotationCreationService(FeatureStore featureStore) throws ServiceException
AnnotationCreationService.the - feature store that is used like input.AnnotationCreationServiceServiceException - if there is an error getting the servicevoid registerAnnotationPositionCalculator(java.lang.String name,
java.lang.Class annotationPositionCalculatorClass)
name - The name used to register the class.annotationPositionCalculatorClass - The class that is able to calculate an annotation point.void registerDefaultAnnotationPositionCalculator(java.lang.Class annotationPositionCalculatorClass)
AnnotationPositionCalculator
class. It will be used by default if the user don't specify any of them.annotationPositionCalculatorClass - A class that is able to calculate an annotation point.AnnotationPositionCalculator getAnnotationPositionCalculator(java.lang.String name) throws AnnotationPositionCalculatorCreationException
name - the name used to register the class.AnnotationPositionCalculatorCreationException - if is not possible to create the object.AnnotationPositionCalculator getDefaultAnnotationPositionCalculator() throws AnnotationPositionCalculatorCreationException
AnnotationPositionCalculator.AnnotationPositionCalculator.AnnotationPositionCalculatorCreationException - if is not possible to create the object.java.util.List<java.lang.String> getAnnotationPositionCalculatorList()
AnnotationPositionCalculator classes.java.lang.String getDefaultTextValue()
void setDefaultTextValue(java.lang.String textValue)
textValue - the default text value.java.lang.String getDefaultFontType()
void setDefaultFontType(java.lang.String fontType)
fontType - the default font type value.java.util.List<java.lang.String> getFontTypes()
void addFontType(java.lang.String fontType)
fontType - the new font type.java.lang.String getDefaultFontStyle()
void setDefaultFontStyle(java.lang.String fontStyle)
fontStyle - the default font style value.java.util.List<java.lang.String> getFontStyles()
void addFontStyle(java.lang.String fontStyle)
fontStyle - the new font style.int getDefaultFontColor()
void setDefaultFontColor(int fontColor)
fontColor - the default font color value.void setDefaultFontColor(java.awt.Color fontColor)
fontColor - the default font color value.double getDefaultFontHeight()
void setDefaultFontHeight(double fontHeight)
fontHeight - the default font height value.double getDefaultFontRotation()
void setDefaultFontRotation(double fontRotation)
fontRotation - the default font rotation value.