Package 

Class Annotation.TextDisplayInfo

  • All Implemented Interfaces:

    
    public class Annotation.TextDisplayInfo
    
                        

    * This class is used to set textual display information. It also includes offsets to control where the text will be displayed in relation to the annotation

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      String getText()
      int getOffsetX() Get the horizontal offset of text
      int getOffsetY() Get the vertical offset of text
      int getTextColor() * to get the color of the text in relation to annotation
      void setTextColor(@ColorInt() int textColor) * to set the color of the text in relation to annotation
      static Annotation.TextDisplayInfo Centered(@NonNull() String text)
      void setTextSize(float text_size) * to set the size of the text in relation to annotation
      float getTextSize() * to get the size of the text in relation to annotation
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Annotation.TextDisplayInfo

        Annotation.TextDisplayInfo(String text, int offsetX, int offsetY)
        *
        Parameters:
        text - the text to be displayed with the annotation
        offsetX - the horizontal offset of the text in relation to the annotation, the unit is px.
        offsetY - the vertical offset of the text in relation to the annotation, the unit is px.
      • Annotation.TextDisplayInfo

        Annotation.TextDisplayInfo(String text)
    • Method Detail

      • getOffsetX

         int getOffsetX()

        Get the horizontal offset of text

      • getOffsetY

         int getOffsetY()

        Get the vertical offset of text

      • getTextColor

        @ColorInt() int getTextColor()

        * to get the color of the text in relation to annotation

      • setTextColor

         void setTextColor(@ColorInt() int textColor)

        * to set the color of the text in relation to annotation

        Parameters:
        textColor - the color of the text.
      • setTextSize

         void setTextSize(float text_size)

        * to set the size of the text in relation to annotation

        Parameters:
        text_size - the size of the text in relation to annotation, value range [0.0pt, 32.
      • getTextSize

         float getTextSize()

        * to get the size of the text in relation to annotation