Interface AnnotationManager


public interface AnnotationManager
This class is responsible of the management of the library's business logic. It is the library's main entry point, and provides all the services to manage AnnotationCreationServices.
Version:
$Id$
Author:
gvSIG team
See Also:
  • Field Details

    • TEXTVALUE_ATTRIBUTE_NAME

      static final String TEXTVALUE_ATTRIBUTE_NAME
      Name of the datastore attribute that contains the text of the annotation.
      See Also:
    • FONTTYPE_ATTRIBUTE_NAME

      static final String FONTTYPE_ATTRIBUTE_NAME
      Name of the datastore attribute that contains the font type of the annotation.
      See Also:
    • FONTSTYLE_ATTRIBUTE_NAME

      static final String FONTSTYLE_ATTRIBUTE_NAME
      Name of the datastore attribute that contains the font style of the annotation.
      See Also:
    • FONTCOLOR_ATTRIBUTE_NAME

      static final String FONTCOLOR_ATTRIBUTE_NAME
      Name of the datastore attribute that contains the font color of the annotation.
      See Also:
    • FONTROTATION_ATTRIBUTE_NAME

      static final String FONTROTATION_ATTRIBUTE_NAME
      Name of the datastore attribute that contains the font rotation of the annotation.
      See Also:
    • FONTHEGTH_ATTRIBUTE_NAME

      static final String FONTHEGTH_ATTRIBUTE_NAME
      Name of the datastore attribute that contains the font heigth of the annotation.
      See Also:
  • Method Details

    • getAnnotationCreationService

      AnnotationCreationService getAnnotationCreationService(org.gvsig.fmap.dal.feature.FeatureStore featureStore) throws org.gvsig.tools.service.ServiceException
      Create an instance of a AnnotationCreationService.
      Parameters:
      the - feature store that is used like input.
      Returns:
      AnnotationCreationService
      Throws:
      org.gvsig.tools.service.ServiceException - if there is an error getting the service
    • registerAnnotationPositionCalculator

      void registerAnnotationPositionCalculator(String name, Class annotationPositionCalculatorClass)
      It registers a class that can be used to caclulate the position of an annotation.
      Parameters:
      name - The name used to register the class.
      annotationPositionCalculatorClass - The class that is able to calculate an annotation point.
    • registerDefaultAnnotationPositionCalculator

      void registerDefaultAnnotationPositionCalculator(Class annotationPositionCalculatorClass)
      It registers the default implementation of an AnnotationPositionCalculator class. It will be used by default if the user don't specify any of them.
      Parameters:
      annotationPositionCalculatorClass - A class that is able to calculate an annotation point.
    • getAnnotationPositionCalculator

      It returns an object that can be used to create the point where the annotation is displayed.
      Parameters:
      name - the name used to register the class.
      Returns:
      a class that is able to calculate an annotation point.
      Throws:
      AnnotationPositionCalculatorCreationException - if is not possible to create the object.
    • getDefaultAnnotationPositionCalculator

      AnnotationPositionCalculator getDefaultAnnotationPositionCalculator() throws AnnotationPositionCalculatorCreationException
      It returns the default AnnotationPositionCalculator.
      Returns:
      the default AnnotationPositionCalculator.
      Throws:
      AnnotationPositionCalculatorCreationException - if is not possible to create the object.
    • getAnnotationPositionCalculatorList

      List<String> getAnnotationPositionCalculatorList()
      Returns:
      the list of the names used to register the AnnotationPositionCalculator classes.
    • getDefaultTextValue

      String getDefaultTextValue()
      Value used like the default value for the text field.
      Returns:
      the default text value.
    • setDefaultTextValue

      void setDefaultTextValue(String textValue)
      Set the default value for the text field.
      Parameters:
      textValue - the default text value.
    • getDefaultFontType

      String getDefaultFontType()
      Value used like the default value for the font type field.
      Returns:
      the default font type value.
    • setDefaultFontType

      void setDefaultFontType(String fontType)
      Set the default value for the font type field.
      Parameters:
      fontType - the default font type value.
    • getFontTypes

      List<String> getFontTypes()
      Returns:
      the list of possible values for the font type field.
    • addFontType

      void addFontType(String fontType)
      It adds a new value for the font type field.
      Parameters:
      fontType - the new font type.
    • getDefaultFontStyle

      String getDefaultFontStyle()
      Value used like the default value for the font style field.
      Returns:
      the default font style value.
    • setDefaultFontStyle

      void setDefaultFontStyle(String fontStyle)
      Set the default value for the font style field.
      Parameters:
      fontStyle - the default font style value.
    • getFontStyles

      List<String> getFontStyles()
      Returns:
      the list of possible values for the font style field.
    • addFontStyle

      void addFontStyle(String fontStyle)
      It adds a new value for the font style field.
      Parameters:
      fontStyle - the new font style.
    • getDefaultFontColor

      int getDefaultFontColor()
      Value used like the default value for the font color field.
      Returns:
      the default font color value.
    • setDefaultFontColor

      void setDefaultFontColor(int fontColor)
      Set the default value for the font color field.
      Parameters:
      fontColor - the default font color value.
    • setDefaultFontColor

      void setDefaultFontColor(Color fontColor)
      Set the default value for the font color field.
      Parameters:
      fontColor - the default font color value.
    • getDefaultFontHeight

      double getDefaultFontHeight()
      Value used like the default value for the font height field.
      Returns:
      the default font height value.
    • setDefaultFontHeight

      void setDefaultFontHeight(double fontHeight)
      Set the default value for the font height field.
      Parameters:
      fontHeight - the default font height value.
    • getDefaultFontRotation

      double getDefaultFontRotation()
      Value used like the default value for the font rotation field.
      Returns:
      the default font rotation value.
    • setDefaultFontRotation

      void setDefaultFontRotation(double fontRotation)
      Set the default value for the font rotation field.
      Parameters:
      fontRotation - the default font rotation value.