public class DefaultAnnotationCreationService extends AbstractMonitorableTask implements AnnotationCreationService
AnnotationCreationService
implementation.Thread.State, Thread.UncaughtExceptionHandler
taskStatus
cancellationRequested
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
Constructor and Description |
---|
DefaultAnnotationCreationService(FeatureStore featureStore,
AnnotationManager manager)
DefaultAnnotationCreationService constructor with a
AnnotationManager . |
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(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(String destinationShapeFile, 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(String attributeName) throws DataException
DataException
public void setFontColorAttribute(String attributeName) throws DataException
setFontColorAttribute
in interface AnnotationCreationService
DataException
public void setFontHeigthAttribute(String attributeName) throws DataException
setFontHeigthAttribute
in interface AnnotationCreationService
DataException
public void setFontRotationAttribute(String attributeName) throws DataException
setFontRotationAttribute
in interface AnnotationCreationService
DataException
public void setFontStyleAttribute(String attributeName) throws DataException
setFontStyleAttribute
in interface AnnotationCreationService
DataException
public void setFontTypeAttribute(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.