public class DefaultAnnotationCreationService extends AbstractMonitorableTask implements AnnotationCreationService
AnnotationCreationService
implementation.taskStatus
cancellationRequested
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, setTaskName
isCancellationRequested
activeCount, 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, yield
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getTaskStatus
cancelRequest, isCancellationRequested
public DefaultAnnotationCreationService(FeatureStore featureStore, AnnotationManager manager) throws DataException
DefaultAnnotationCreationService
constructor with a
AnnotationManager
.manager
- to use in the serviceDataException
public AnnotationManager getManager()
AnnotationCreationService
AnnotationManager
getManager
in interface AnnotationCreationService
AnnotationManager
AnnotationManager}
public FeatureStore createAnnotationStore(java.lang.String destinationShapeFile, int textValueAttribute) throws AnnotationCreationException
AnnotationCreationService
FeatureStore
with the annotations.createAnnotationStore
in interface AnnotationCreationService
destinationShapeFile
- 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
AnnotationCreationService
FeatureStore
with the annotations.createAnnotationStore
in interface AnnotationCreationService
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.public void setFontTypeAttribute(int index) throws DataException
setFontTypeAttribute
in interface AnnotationCreationService
DataException
public void setFontStyleAttribute(int index) throws DataException
setFontStyleAttribute
in interface AnnotationCreationService
DataException
public void setFontColorAttribute(int index) throws DataException
setFontColorAttribute
in interface AnnotationCreationService
DataException
public void setFontHeigthAttribute(int index) throws DataException
setFontHeigthAttribute
in interface AnnotationCreationService
DataException
public void setFontRotationAttribute(int index) throws DataException
setFontRotationAttribute
in interface AnnotationCreationService
DataException
public void setAnnotationPositionCalculator(AnnotationPositionCalculator annotationPositionCalculator)
AnnotationCreationService
AnnotationPositionCalculator
used to calculate the
position of thesetAnnotationPositionCalculator
in interface AnnotationCreationService
public int getIndex(java.lang.String attributeName) throws DataException
DataException
public void setFontColorAttribute(java.lang.String attributeName) throws DataException
setFontColorAttribute
in interface AnnotationCreationService
DataException
public void setFontHeigthAttribute(java.lang.String attributeName) throws DataException
setFontHeigthAttribute
in interface AnnotationCreationService
DataException
public void setFontRotationAttribute(java.lang.String attributeName) throws DataException
setFontRotationAttribute
in interface AnnotationCreationService
DataException
public void setFontStyleAttribute(java.lang.String attributeName) throws DataException
setFontStyleAttribute
in interface AnnotationCreationService
DataException
public void setFontTypeAttribute(java.lang.String attributeName) throws DataException
setFontTypeAttribute
in interface AnnotationCreationService
DataException
public FeatureStore getFeatureStore()
getFeatureStore
in interface AnnotationCreationService
public AnnotationCreationFinishAction getAnnotationCreationFinishAction()
getAnnotationCreationFinishAction
in interface AnnotationCreationService
AnnotationCreationFinishAction
used at the end of the annotation
creation process.public void setAnnotationCreationFinishAction(AnnotationCreationFinishAction annotationCreationFinishAction)
AnnotationCreationService
AnnotationCreationFinishAction
that is used at the end
of the annotation creation service.setAnnotationCreationFinishAction
in interface AnnotationCreationService
annotationCreationFinishAction
- it contains an action that can be executed at the end of the annotation
creation process.