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.
getTaskStatuscancelRequest, isCancellationRequestedFeatureStore 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
DataExceptionvoid setFontStyleAttribute(int index)
throws DataException
DataExceptionvoid setFontColorAttribute(int index)
throws DataException
DataExceptionvoid setFontHeigthAttribute(int index)
throws DataException
DataExceptionvoid setFontRotationAttribute(int index)
throws DataException
DataExceptionvoid setFontTypeAttribute(String attributeName) throws DataException
DataExceptionvoid setFontStyleAttribute(String attributeName) throws DataException
DataExceptionvoid setFontColorAttribute(String attributeName) throws DataException
DataExceptionvoid setFontHeigthAttribute(String attributeName) throws DataException
DataExceptionvoid setFontRotationAttribute(String attributeName) throws DataException
DataExceptionAnnotationManager getManager()
AnnotationManagerAnnotationManagerAnnotationManager}