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.
Modifier and Type | Method and Description |
---|---|
FeatureStore |
createAnnotationStore(java.lang.String destinationShapeFile,
int textValueAttributeIndex)
This method creates a
FeatureStore with the annotations. |
FeatureStore |
createAnnotationStore(java.lang.String destinationShapeFile,
java.lang.String textValueAttributeName)
This method creates a
FeatureStore with the annotations. |
AnnotationCreationFinishAction |
getAnnotationCreationFinishAction() |
FeatureStore |
getFeatureStore() |
AnnotationManager |
getManager()
Returns the
AnnotationManager |
void |
setAnnotationCreationFinishAction(AnnotationCreationFinishAction annotationCreationFinishAction)
Sets the
AnnotationCreationFinishAction that is used at the end
of the annotation creation service. |
void |
setAnnotationPositionCalculator(AnnotationPositionCalculator annotationPositionCalculator)
Sets an
AnnotationPositionCalculator used to calculate the
position of the |
void |
setFontColorAttribute(int index) |
void |
setFontColorAttribute(java.lang.String attributeName) |
void |
setFontHeigthAttribute(int index) |
void |
setFontHeigthAttribute(java.lang.String attributeName) |
void |
setFontRotationAttribute(int index) |
void |
setFontRotationAttribute(java.lang.String attributeName) |
void |
setFontStyleAttribute(int index) |
void |
setFontStyleAttribute(java.lang.String attributeName) |
void |
setFontTypeAttribute(int index) |
void |
setFontTypeAttribute(java.lang.String attributeName) |
getTaskStatus
cancelRequest, isCancellationRequested
FeatureStore getFeatureStore()
FeatureStore createAnnotationStore(java.lang.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(java.lang.String destinationShapeFile, java.lang.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(java.lang.String attributeName) throws DataException
DataException
void setFontStyleAttribute(java.lang.String attributeName) throws DataException
DataException
void setFontColorAttribute(java.lang.String attributeName) throws DataException
DataException
void setFontHeigthAttribute(java.lang.String attributeName) throws DataException
DataException
void setFontRotationAttribute(java.lang.String attributeName) throws DataException
DataException
AnnotationManager getManager()
AnnotationManager
AnnotationManager
AnnotationManager}