Package 

Class Annotation.TextDisplayInfo

  • All Implemented Interfaces:

    
    public final 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

    • Constructor Detail

      • Annotation.TextDisplayInfo

        Annotation.TextDisplayInfo(String text, Integer offsetX, Integer 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

      • getTextSize

         final Float getTextSize()

        to set the size of the text in relation to annotation

      • setTextSize

         final Unit setTextSize(Float textSize)

        to set the size of the text in relation to annotation

        Parameters:
        textSize - the size of the text in relation to annotation, value range 0.0pt, 32.
      • setTextColor

         final Unit setTextColor(Integer textColor)

        to set the color of the text in relation to annotation

        Parameters:
        textColor - the color of the text.