-
- All Implemented Interfaces:
public final class Annotation.TextDisplayInfoThis 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 public classAnnotation.TextDisplayInfo.Companion
-
Constructor Summary
Constructors Constructor Description Annotation.TextDisplayInfo(String text, Integer offsetX, Integer offsetY)Annotation.TextDisplayInfo(String text)
-
Method Summary
Modifier and Type Method Description final StringgetText()final IntegergetOffsetX()Get the horizontal offset of text final IntegergetOffsetY()Get the vertical offset of text final FloatgetTextSize()to set the size of the text in relation to annotation final UnitsetTextSize(Float textSize)to set the size of the text in relation to annotation final IntegergetTextColor()to set the color of the text in relation to annotation final UnitsetTextColor(Integer textColor)to set the color of the text in relation to annotation -
-
Constructor Detail
-
Annotation.TextDisplayInfo
Annotation.TextDisplayInfo(String text, Integer offsetX, Integer offsetY)
- Parameters:
text- the text to be displayed with the annotationoffsetX- 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
-
getText
final String getText()
-
getOffsetX
final Integer getOffsetX()
Get the horizontal offset of text
-
getOffsetY
final Integer getOffsetY()
Get the vertical offset of text
-
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.
-
getTextColor
@ColorInt() final Integer getTextColor()
to set the color of the text in relation to annotation
-
setTextColor
final Unit setTextColor(Integer textColor)
to set the color of the text in relation to annotation
- Parameters:
textColor- the color of the text.
-
-
-
-