public class DefaultAnnotationCreationService extends AbstractMonitorableTask implements AnnotationCreationService
AnnotationCreationService implementation.taskStatuscancellationRequested| Constructor and Description |
|---|
DefaultAnnotationCreationService(FeatureStore featureStore,
AnnotationManager manager)
DefaultAnnotationCreationService constructor with a
AnnotationManager. |
| Modifier and Type | Method and Description |
|---|---|
FeatureStore |
createAnnotationStore(java.lang.String destinationShapeFile,
int textValueAttribute)
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() |
int |
getIndex(java.lang.String attributeName) |
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) |
cancelRequest, getSimpleTaskStatus, getTaskStatus, setTaskNameisCancellationRequestedactiveCount, checkAccess, clone, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, run, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yieldequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetTaskStatuscancelRequest, isCancellationRequestedpublic DefaultAnnotationCreationService(FeatureStore featureStore, AnnotationManager manager) throws DataException
DefaultAnnotationCreationService constructor with a
AnnotationManager.manager - to use in the serviceDataExceptionpublic AnnotationManager getManager()
AnnotationCreationServiceAnnotationManagergetManager in interface AnnotationCreationServiceAnnotationManagerAnnotationManager}public FeatureStore createAnnotationStore(java.lang.String destinationShapeFile, int textValueAttribute) throws AnnotationCreationException
AnnotationCreationServiceFeatureStore with the annotations.createAnnotationStore in interface AnnotationCreationServicedestinationShapeFile - path there the shape this the annotation information is created.textValueAttribute - attribute index of the original FeatureStore that contains the text.AnnotationCreationException - if there is an error creating the annotation store.public FeatureStore createAnnotationStore(java.lang.String destinationShapeFile, java.lang.String textValueAttributeName) throws AnnotationCreationException
AnnotationCreationServiceFeatureStore with the annotations.createAnnotationStore in interface AnnotationCreationServicedestinationShapeFile - 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.public void setFontTypeAttribute(int index)
throws DataException
setFontTypeAttribute in interface AnnotationCreationServiceDataExceptionpublic void setFontStyleAttribute(int index)
throws DataException
setFontStyleAttribute in interface AnnotationCreationServiceDataExceptionpublic void setFontColorAttribute(int index)
throws DataException
setFontColorAttribute in interface AnnotationCreationServiceDataExceptionpublic void setFontHeigthAttribute(int index)
throws DataException
setFontHeigthAttribute in interface AnnotationCreationServiceDataExceptionpublic void setFontRotationAttribute(int index)
throws DataException
setFontRotationAttribute in interface AnnotationCreationServiceDataExceptionpublic void setAnnotationPositionCalculator(AnnotationPositionCalculator annotationPositionCalculator)
AnnotationCreationServiceAnnotationPositionCalculator used to calculate the
position of thesetAnnotationPositionCalculator in interface AnnotationCreationServicepublic int getIndex(java.lang.String attributeName)
throws DataException
DataExceptionpublic void setFontColorAttribute(java.lang.String attributeName)
throws DataException
setFontColorAttribute in interface AnnotationCreationServiceDataExceptionpublic void setFontHeigthAttribute(java.lang.String attributeName)
throws DataException
setFontHeigthAttribute in interface AnnotationCreationServiceDataExceptionpublic void setFontRotationAttribute(java.lang.String attributeName)
throws DataException
setFontRotationAttribute in interface AnnotationCreationServiceDataExceptionpublic void setFontStyleAttribute(java.lang.String attributeName)
throws DataException
setFontStyleAttribute in interface AnnotationCreationServiceDataExceptionpublic void setFontTypeAttribute(java.lang.String attributeName)
throws DataException
setFontTypeAttribute in interface AnnotationCreationServiceDataExceptionpublic FeatureStore getFeatureStore()
getFeatureStore in interface AnnotationCreationServicepublic AnnotationCreationFinishAction getAnnotationCreationFinishAction()
getAnnotationCreationFinishAction in interface AnnotationCreationServiceAnnotationCreationFinishAction used at the end of the annotation
creation process.public void setAnnotationCreationFinishAction(AnnotationCreationFinishAction annotationCreationFinishAction)
AnnotationCreationServiceAnnotationCreationFinishAction that is used at the end
of the annotation creation service.setAnnotationCreationFinishAction in interface AnnotationCreationServiceannotationCreationFinishAction - it contains an action that can be executed at the end of the annotation
creation process.