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 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 a FeatureStore with the annotations.
      Parameters:
      destinationShapeFile - path there the shape this the annotation information is created.
      textValueAttributeIndex - attribute index of the original FeatureStore that 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 a FeatureStore with the annotations.
      Parameters:
      destinationShapeFile - path there the shape this the annotation information is created.
      textValueAttributeName - attribute name of the original FeatureStore that 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 the AnnotationCreationFinishAction that 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 AnnotationCreationFinishAction used at the end of the annotation creation process.
    • setAnnotationPositionCalculator

      void setAnnotationPositionCalculator(AnnotationPositionCalculator annotationPositionCalculator)
      Sets an AnnotationPositionCalculator used 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

      void setFontTypeAttribute(String attributeName) throws org.gvsig.fmap.dal.exception.DataException
      Throws:
      org.gvsig.fmap.dal.exception.DataException
    • setFontStyleAttribute

      void setFontStyleAttribute(String attributeName) throws org.gvsig.fmap.dal.exception.DataException
      Throws:
      org.gvsig.fmap.dal.exception.DataException
    • setFontColorAttribute

      void setFontColorAttribute(String attributeName) throws org.gvsig.fmap.dal.exception.DataException
      Throws:
      org.gvsig.fmap.dal.exception.DataException
    • setFontHeigthAttribute

      void setFontHeigthAttribute(String attributeName) throws org.gvsig.fmap.dal.exception.DataException
      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 the AnnotationManager
      Returns:
      AnnotationManager