public interface AnnotationManager
AnnotationCreationService
s.AnnotationCreationService
Modifier and Type | Field and Description |
---|---|
static String |
FONTCOLOR_ATTRIBUTE_NAME
Name of the datastore attribute that contains the font color
of the annotation.
|
static String |
FONTHEGTH_ATTRIBUTE_NAME
Name of the datastore attribute that contains the font heigth
of the annotation.
|
static String |
FONTROTATION_ATTRIBUTE_NAME
Name of the datastore attribute that contains the font rotation
of the annotation.
|
static String |
FONTSTYLE_ATTRIBUTE_NAME
Name of the datastore attribute that contains the font style
of the annotation.
|
static String |
FONTTYPE_ATTRIBUTE_NAME
Name of the datastore attribute that contains the font type
of the annotation.
|
static String |
TEXTVALUE_ATTRIBUTE_NAME
Name of the datastore attribute that contains the text
of the annotation.
|
Modifier and Type | Method and Description |
---|---|
void |
addFontStyle(String fontStyle)
It adds a new value for the font style field.
|
void |
addFontType(String fontType)
It adds a new value for the font type field.
|
AnnotationCreationService |
getAnnotationCreationService(FeatureStore featureStore)
Create an instance of a
AnnotationCreationService . |
AnnotationPositionCalculator |
getAnnotationPositionCalculator(String name)
It returns an object that can be used to create the point
where the annotation is displayed.
|
List<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.
|
String |
getDefaultFontStyle()
Value used like the default value for the font style field.
|
String |
getDefaultFontType()
Value used like the default value for the font type field.
|
String |
getDefaultTextValue()
Value used like the default value for the text field.
|
List<String> |
getFontStyles() |
List<String> |
getFontTypes() |
void |
registerAnnotationPositionCalculator(String name,
Class annotationPositionCalculatorClass)
It registers a class that can be used to caclulate the position of an
annotation.
|
void |
registerDefaultAnnotationPositionCalculator(Class annotationPositionCalculatorClass)
It registers the default implementation of an
AnnotationPositionCalculator
class. |
void |
setDefaultFontColor(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(String fontStyle)
Set the default value for the font style field.
|
void |
setDefaultFontType(String fontType)
Set the default value for the font type field.
|
void |
setDefaultTextValue(String textValue)
Set the default value for the text field.
|
static final String TEXTVALUE_ATTRIBUTE_NAME
static final String FONTTYPE_ATTRIBUTE_NAME
static final String FONTSTYLE_ATTRIBUTE_NAME
static final String FONTCOLOR_ATTRIBUTE_NAME
static final String FONTROTATION_ATTRIBUTE_NAME
static final String FONTHEGTH_ATTRIBUTE_NAME
AnnotationCreationService getAnnotationCreationService(FeatureStore featureStore) throws ServiceException
AnnotationCreationService
.the
- feature store that is used like input.AnnotationCreationService
ServiceException
- if there is an error getting the servicevoid registerAnnotationPositionCalculator(String name, Class annotationPositionCalculatorClass)
name
- The name used to register the class.annotationPositionCalculatorClass
- The class that is able to calculate an annotation point.void registerDefaultAnnotationPositionCalculator(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(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.List<String> getAnnotationPositionCalculatorList()
AnnotationPositionCalculator
classes.String getDefaultTextValue()
void setDefaultTextValue(String textValue)
textValue
- the default text value.String getDefaultFontType()
void setDefaultFontType(String fontType)
fontType
- the default font type value.List<String> getFontTypes()
void addFontType(String fontType)
fontType
- the new font type.String getDefaultFontStyle()
void setDefaultFontStyle(String fontStyle)
fontStyle
- the default font style value.List<String> getFontStyles()
void addFontStyle(String fontStyle)
fontStyle
- the new font style.int getDefaultFontColor()
void setDefaultFontColor(int fontColor)
fontColor
- the default font color value.void setDefaultFontColor(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.