Package org.gvsig.annotation
Interface AnnotationCreationService
- All Superinterfaces:
org.gvsig.tools.task.CancellableTask,org.gvsig.tools.task.MonitorableTask
public interface AnnotationCreationService
extends org.gvsig.tools.task.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.
- Version:
- $Id$
- Author:
- gvSIG team
-
Method Summary
Modifier and TypeMethodDescriptionorg.gvsig.fmap.dal.feature.FeatureStorecreateAnnotationStore(String destinationShapeFile, int textValueAttributeIndex) This method creates aFeatureStorewith the annotations.org.gvsig.fmap.dal.feature.FeatureStorecreateAnnotationStore(String destinationShapeFile, String textValueAttributeName) This method creates aFeatureStorewith the annotations.org.gvsig.fmap.dal.feature.FeatureStoreReturns theAnnotationManagervoidsetAnnotationCreationFinishAction(AnnotationCreationFinishAction annotationCreationFinishAction) Sets theAnnotationCreationFinishActionthat is used at the end of the annotation creation service.voidsetAnnotationPositionCalculator(AnnotationPositionCalculator annotationPositionCalculator) Sets anAnnotationPositionCalculatorused to calculate the position of thevoidsetFontColorAttribute(int index) voidsetFontColorAttribute(String attributeName) voidsetFontHeigthAttribute(int index) voidsetFontHeigthAttribute(String attributeName) voidsetFontRotationAttribute(int index) voidsetFontRotationAttribute(String attributeName) voidsetFontStyleAttribute(int index) voidsetFontStyleAttribute(String attributeName) voidsetFontTypeAttribute(int index) voidsetFontTypeAttribute(String attributeName) Methods inherited from interface org.gvsig.tools.task.CancellableTask
cancelRequest, isCancellationRequestedMethods inherited from interface org.gvsig.tools.task.MonitorableTask
getTaskStatus
-
Method Details
-
getFeatureStore
org.gvsig.fmap.dal.feature.FeatureStore getFeatureStore()- Returns:
- the store that is used like input.
-
createAnnotationStore
org.gvsig.fmap.dal.feature.FeatureStore createAnnotationStore(String destinationShapeFile, int textValueAttributeIndex) throws AnnotationCreationException This method creates aFeatureStorewith the annotations.- Parameters:
destinationShapeFile- path there the shape this the annotation information is created.textValueAttributeIndex- attribute index of the originalFeatureStorethat contains the text.- Returns:
- a new store with the annotation information.
- Throws:
AnnotationCreationException- if there is an error creating the annotation store.
-
createAnnotationStore
org.gvsig.fmap.dal.feature.FeatureStore createAnnotationStore(String destinationShapeFile, String textValueAttributeName) throws AnnotationCreationException This method creates aFeatureStorewith the annotations.- Parameters:
destinationShapeFile- path there the shape this the annotation information is created.textValueAttributeName- attribute name of the originalFeatureStorethat contains the text.- Returns:
- a new store with the annotation information.
- Throws:
AnnotationCreationException- if there is an error creating the annotation store.
-
setAnnotationCreationFinishAction
void setAnnotationCreationFinishAction(AnnotationCreationFinishAction annotationCreationFinishAction) Sets theAnnotationCreationFinishActionthat is used at the end of the annotation creation service.- Parameters:
annotationCreationFinishAction- it contains an action that can be executed at the end of the annotation creation process.
-
getAnnotationCreationFinishAction
AnnotationCreationFinishAction getAnnotationCreationFinishAction()- Returns:
- the
AnnotationCreationFinishActionused at the end of the annotation creation process.
-
setAnnotationPositionCalculator
Sets anAnnotationPositionCalculatorused to calculate the position of the- Parameters:
annotationPositionCalculator-
-
setFontTypeAttribute
void setFontTypeAttribute(int index) throws org.gvsig.fmap.dal.exception.DataException - Throws:
org.gvsig.fmap.dal.exception.DataException
-
setFontStyleAttribute
void setFontStyleAttribute(int index) throws org.gvsig.fmap.dal.exception.DataException - Throws:
org.gvsig.fmap.dal.exception.DataException
-
setFontColorAttribute
void setFontColorAttribute(int index) throws org.gvsig.fmap.dal.exception.DataException - Throws:
org.gvsig.fmap.dal.exception.DataException
-
setFontHeigthAttribute
void setFontHeigthAttribute(int index) throws org.gvsig.fmap.dal.exception.DataException - Throws:
org.gvsig.fmap.dal.exception.DataException
-
setFontRotationAttribute
void setFontRotationAttribute(int index) throws org.gvsig.fmap.dal.exception.DataException - Throws:
org.gvsig.fmap.dal.exception.DataException
-
setFontTypeAttribute
- Throws:
org.gvsig.fmap.dal.exception.DataException
-
setFontStyleAttribute
- Throws:
org.gvsig.fmap.dal.exception.DataException
-
setFontColorAttribute
- Throws:
org.gvsig.fmap.dal.exception.DataException
-
setFontHeigthAttribute
- Throws:
org.gvsig.fmap.dal.exception.DataException
-
setFontRotationAttribute
void setFontRotationAttribute(String attributeName) throws org.gvsig.fmap.dal.exception.DataException - Throws:
org.gvsig.fmap.dal.exception.DataException
-
getManager
AnnotationManager getManager()Returns theAnnotationManager- Returns:
AnnotationManager
-