public interface AnnotationCreationService extends MonitorableTask
This service is used to create an annotation layer.
It inherits if MonitorableTask
, and it means that the annotation
process can be monitorized by one or more observers that can listen
all the export events.
getTaskStatus
cancelRequest, isCancellationRequested
FeatureStore getFeatureStore()
FeatureStore createAnnotationStore(String destinationShapeFile, int textValueAttributeIndex) throws AnnotationCreationException
FeatureStore
with the annotations.destinationShapeFile
- path there the shape this the annotation information is created.textValueAttributeIndex
- attribute index of the original FeatureStore
that contains the text.AnnotationCreationException
- if there is an error creating the annotation store.FeatureStore createAnnotationStore(String destinationShapeFile, String textValueAttributeName) throws AnnotationCreationException
FeatureStore
with the annotations.destinationShapeFile
- path there the shape this the annotation information is created.textValueAttributeName
- attribute name of the original FeatureStore
that contains the text.AnnotationCreationException
- if there is an error creating the annotation store.void setAnnotationCreationFinishAction(AnnotationCreationFinishAction annotationCreationFinishAction)
AnnotationCreationFinishAction
that is used at the end
of the annotation creation service.annotationCreationFinishAction
- it contains an action that can be executed at the end of the annotation
creation process.AnnotationCreationFinishAction getAnnotationCreationFinishAction()
AnnotationCreationFinishAction
used at the end of the annotation
creation process.void setAnnotationPositionCalculator(AnnotationPositionCalculator annotationPositionCalculator)
AnnotationPositionCalculator
used to calculate the
position of theannotationPositionCalculator
- void setFontTypeAttribute(int index) throws DataException
DataException
void setFontStyleAttribute(int index) throws DataException
DataException
void setFontColorAttribute(int index) throws DataException
DataException
void setFontHeigthAttribute(int index) throws DataException
DataException
void setFontRotationAttribute(int index) throws DataException
DataException
void setFontTypeAttribute(String attributeName) throws DataException
DataException
void setFontStyleAttribute(String attributeName) throws DataException
DataException
void setFontColorAttribute(String attributeName) throws DataException
DataException
void setFontHeigthAttribute(String attributeName) throws DataException
DataException
void setFontRotationAttribute(String attributeName) throws DataException
DataException
AnnotationManager getManager()
AnnotationManager
AnnotationManager
AnnotationManager}