Class BoxLabel
- java.lang.Object
- 
- org.pepstock.charba.client.commons.NativeObjectContainer
- 
- org.pepstock.charba.client.commons.AbstractNode
- 
- org.pepstock.charba.client.annotation.BoxLabel
 
 
 
- 
- All Implemented Interfaces:
- IsScriptableFontProvider<AnnotationContext>,- IsScriptablePaddingProvider<AnnotationContext>
 
 public final class BoxLabel extends AbstractNode Implements a LABEL to apply on a LINE annotation.- Author:
- Andrea "Stock" Stocchero
 
- 
- 
Field SummaryFields Modifier and Type Field Description static IsColorDEFAULT_COLORDefault box label text color,HtmlColor.WHITE.static StringDEFAULT_COLOR_AS_STRINGDefault box label font color as string, rgb(255, 255, 255).static booleanDEFAULT_DISPLAYDefault box label display, false.static WeightDEFAULT_FONT_WEIGHTDefault box label font weight,Weight.BOLD.static intDEFAULT_PADDINGDefault box label padding, 6.static doubleDEFAULT_ROTATIONDefault box label rotation, 0.0.static TextAlignDEFAULT_TEXT_ALIGNDefault text align for labels,TextAlign.START.static doubleDEFAULT_X_ADJUSTDefault box label X adjust, 0.0.static doubleDEFAULT_Y_ADJUSTDefault box label Y adjust, 0.0.
 - 
Method SummaryAll Methods Instance Methods Abstract Methods Concrete Methods Default Methods Modifier and Type Method Description default IsColorgetColor()Returns the color of text.default StringgetColorAsString()Returns the color of text as string.default ColorCallback<AnnotationContext>getColorCallback()Returns the callback called to set the color of the text of label.default List<String>getContent()Returns the text to display in label as list.default CanvasgetContentAsCanvas()Returns the text to display in label asCanvas.default ImggetContentAsImage()Returns the text to display in label as list.default ContentCallbackgetContentCallback()Returns the callback called to set the text to display in label as list.SimpleDisplayCallback<AnnotationContext>getDisplayCallback()Returns the callback called to set whether the label should be displayed.default SimpleDisplayCallback<AnnotationContext>getDisplayCallback()Returns the callback called to set whether the label should be displayed.DrawTimegetDrawTime()Returns the draw time which defines when the annotations are drawn.DrawTimegetDrawTime()Returns the draw time which defines when the annotations are drawn.default IsFontgetFont()Returns the font element.default FontCallback<AnnotationContext>getFontCallback()Returns the font callback, if set, otherwisenull.default intgetImageHeight()Returns the height of label content, when is set asImg, in pixels in order to scale the image when drawn.default StringgetImageHeightAsPercentage()Returns the height of label content, when is set asImg, in percentage (format is "{n}%") in order to scale the image when drawn.default ImageSizeCallbackgetImageHeightCallback()Returns the callback called to set the height of label content, when is set asImg, in percentage (format is "{n}%") in order to scale the image when drawn.default intgetImageWidth()Returns the width of label content, when is set asImg, in pixels in order to scale the image when drawn.default StringgetImageWidthAsPercentage()Returns the width of label content, when is set asImg, in percentage (format is "{n}%") in order to scale the image when drawn.default ImageSizeCallbackgetImageWidthCallback()Returns the callback called to set the width of label content, when is set asImg, in percentage (format is "{n}%") in order to scale the image when drawn.org.pepstock.charba.client.annotation.LabelHandlergetLabelHandler()default IsPaddinggetPadding()Returns the padding element.default PaddingCallback<AnnotationContext>getPaddingCallback()Returns the callback called to set the padding of label.AlignPositiongetPosition()Returns the anchor position of label on line.LabelAlignPositionCallbackgetPositionCallback()Returns the callback called to set the anchor position of label on box.default doublegetRotation()Returns the rotation (in pixels).default RotationCallback<AnnotationContext>getRotationCallback()Returns the callback called to set the rotation.org.pepstock.charba.client.annotation.RotationHandlergetRotationHandler()default TextAligngetTextAlign()Returns the horizontal alignment of the label text when multiple lines.default TextAlignCallback<AnnotationContext>getTextAlignCallback()Returns the callback called to set the horizontal alignment of the label text when multiple lines.default IsColorgetTextStrokeColor()Returns the color of the text stroke of annotation.default StringgetTextStrokeColorAsString()Returns the color of the text stroke of annotation.default ColorCallback<AnnotationContext>getTextStrokeColorCallback()Returns the callback called to set the color of the text stroke of annotation.org.pepstock.charba.client.annotation.TextStrokeOptionsHandlergetTextStrokeOptionsHandler()default intgetTextStrokeWidth()Returns the width of the text stroke in pixels.default WidthCallback<AnnotationContext>getTextStrokeWidthCallback()Returns the callback called to set the width of the text stroke in pixels.doublegetXAdjust()Returns the adjustment along x-axis (left-right) of label relative to above number (can be negative).
 For horizontal lines positioned left or right, negative values move the label toward the edge, and positive values toward the center.doublegetXAdjust()Returns the adjustment along x-axis (left-right) of label relative to above number (can be negative).
 For horizontal lines positioned left or right, negative values move the label toward the edge, and positive values toward the center.AdjustSizeCallbackgetXAdjustCallback()Returns the callback called to set the adjustment along x-axis (left-right) of label relative to above number (can be negative).default AdjustSizeCallbackgetXAdjustCallback()Returns the callback called to set the adjustment along x-axis (left-right) of label relative to above number (can be negative).doublegetYAdjust()Returns the adjustment along y-axis (top-bottom) of label relative to above number (can be negative).
 For vertical lines positioned top or bottom, negative values move the label toward the edge, and positive values toward the center.doublegetYAdjust()Returns the adjustment along y-axis (top-bottom) of label relative to above number (can be negative).
 For vertical lines positioned top or bottom, negative values move the label toward the edge, and positive values toward the center.AdjustSizeCallbackgetYAdjustCallback()Returns the callback called to set the adjustment along y-axis (top-bottom) of label relative to above number (can be negative).default AdjustSizeCallbackgetYAdjustCallback()Returns the callback called to set the adjustment along y-axis (top-bottom) of label relative to above number (can be negative).intgetZ()Returns the property determines the drawing stack level of the box annotation element.
 All visible elements will be drawn in ascending order of `z` option, with the same "drawTime" option.default intgetZ()Returns the property determines the drawing stack level of the box annotation element.
 All visible elements will be drawn in ascending order of `z` option, with the same "drawTime" option.ZCallbackgetZCallback()Returns the callback called to set the property determines the drawing stack level of the box annotation element.default ZCallbackgetZCallback()Returns the callback called to set the property determines the drawing stack level of the box annotation element.booleanisDisplay()Returnstruewhether the label should be displayed.booleanisDisplay()Returnstruewhether the label should be displayed.default voidsetColor(String fontColor)Sets the color of text as string.default voidsetColor(ColorCallback<AnnotationContext> colorCallback)Sets the callback to set the color of the text of label.default voidsetColor(NativeCallback colorCallback)Sets the callback to set the color of the text of label.default voidsetColor(IsColor fontColor)Sets the color of text.default voidsetContent(String... content)Sets the text to display in label.
 Provide an array to display values on a new line.default voidsetContent(List<String> content)Sets the text to display in label.
 Provide a list to display values on a new line.default voidsetContent(ContentCallback contentCallback)Sets the callback to set the text to display in label as list.default voidsetContent(NativeCallback contentCallback)Sets the callback to set the text to display in label as list.default voidsetContent(Canvas content)Sets the canvas to display in label.default voidsetContent(Img content)Sets the image to display in label.voidsetDisplay(boolean display)Setstruewhether the label should be displayed.voidsetDisplay(NativeCallback displayCallback)Sets the callback to set whether the label should be displayed.voidsetDisplay(SimpleDisplayCallback<AnnotationContext> displayCallback)Sets the callback to set whether the label should be displayed.voidsetDrawTime(DrawTime drawTime)Sets the draw time which defines when the annotations are drawn.default voidsetFont(FontCallback<AnnotationContext> fontCallback)Sets the font callback.default voidsetFont(NativeCallback fontCallback)Sets the font callback.default voidsetImageHeight(int height)Sets the height of label content, when is set asImg, in pixels in order to scale the image when drawn.default voidsetImageHeight(ImageSizeCallback imageSizeCallback)Sets the callback to set the height of label content, when is set asImg, in percentage (format is "{n}%") in order to scale the image when drawn.default voidsetImageHeight(NativeCallback imageSizeCallback)Sets the callback to set the height of label content, when is set asImg, in percentage (format is "{n}%") in order to scale the image when drawn.default voidsetImageHeightAsPercentage(String heightPercentage)Sets the height of label content, when is set asImg, in percentage (format is "{n}%") in order to scale the image when drawn.default voidsetImageWidth(int width)Sets the width of label content, when is set asImg, in pixels in order to scale the image when drawn.default voidsetImageWidth(ImageSizeCallback imageSizeCallback)Sets the callback to set the width of label content, when is set asImg, in percentage (format is "{n}%") in order to scale the image when drawn.default voidsetImageWidth(NativeCallback imageSizeCallback)Sets the callback to set the width of label content, when is set asImg, in percentage (format is "{n}%") in order to scale the image when drawn.default voidsetImageWidthAsPercentage(String widthPercentage)Sets the width of label content, when is set asImg, in percentage (format is "{n}%") in order to scale the image when drawn.default voidsetPadding(NativeCallback paddingCallback)Sets the callback to set the padding of label to add left and right.default voidsetPadding(PaddingCallback<AnnotationContext> paddingCallback)Sets the callback to set the padding of label.voidsetPosition(LabelAlignPositionCallback positionCallback)Sets the callback to set the anchor position of label on box.voidsetPosition(NativeCallback positionCallback)Sets the callback to set the anchor position of label on box.default voidsetRotation(double radius)Sets the rotation.default voidsetRotation(NativeCallback rotationCallback)Sets the callback to set the rotation.default voidsetRotation(RotationCallback<AnnotationContext> rotationCallback)Sets the callback to set the rotation.default voidsetTextAlign(NativeCallback alignCallback)Sets the callback to set the horizontal alignment of the label text when multiple lines.default voidsetTextAlign(TextAlignCallback<AnnotationContext> alignCallback)Sets the callback to set the horizontal alignment of the label text when multiple lines.default voidsetTextAlign(TextAlign align)Sets the horizontal alignment of the label text when multiple lines.default voidsetTextStrokeColor(String textStrokeColor)Sets the color of the text stroke of annotation.default voidsetTextStrokeColor(ColorCallback<AnnotationContext> textStrokeColorCallback)Sets the callback to set the color of the text stroke of annotation.default voidsetTextStrokeColor(NativeCallback textStrokeColorCallback)Sets the callback to set the color of the text stroke of annotation.default voidsetTextStrokeColor(IsColor textStrokeColor)Sets the color of the text stroke of annotation.default voidsetTextStrokeWidth(int textStrokeWidth)Sets the width of the text stroke in pixels.default voidsetTextStrokeWidth(NativeCallback textStrokeWidthCallback)Sets the callback to set the color of the width of the text stroke in pixels.default voidsetTextStrokeWidth(WidthCallback<AnnotationContext> textStrokeWidthCallback)Sets the callback to set the color of the width of the text stroke in pixels.voidsetXAdjust(double xAdjust)Sets the adjustment along x-axis (left-right) of label relative to above number (can be negative).
 For horizontal lines positioned left or right, negative values move the label toward the edge, and positive values toward the center.voidsetXAdjust(AdjustSizeCallback adjustCallback)Sets the callback to set the adjustment along y-axis (top-bottom) of label relative to above number (can be negative).voidsetXAdjust(NativeCallback adjustCallback)Sets the callback to set the adjustment along y-axis (top-bottom) of label relative to above number (can be negative).voidsetYAdjust(double yAdjust)Sets the adjustment along y-axis (top-bottom) of label relative to above number (can be negative).
 For vertical lines positioned top or bottom, negative values move the label toward the edge, and positive values toward the center.voidsetYAdjust(AdjustSizeCallback adjustCallback)Sets the callback to set the adjustment along x-axis (left-right) of label relative to above number (can be negative).voidsetYAdjust(NativeCallback adjustCallback)Sets the callback to set the adjustment along x-axis (left-right) of label relative to above number (can be negative).voidsetZ(int z)Sets the property determines the drawing stack level of the box annotation element.
 All visible elements will be drawn in ascending order of `z` option, with the same "drawTime" option.voidsetZ(ZCallback zCallback)Sets the callback called to set the property determines the drawing stack level of the box annotation element.voidsetZ(NativeCallback zCallback)Sets the callback called to set the property determines the drawing stack level of the box annotation element.- 
Methods inherited from class org.pepstock.charba.client.commons.AbstractNodecheckAndAddToParent, getChildKey, getParentNode, getRootNode, retrieveRoot, setArrayValueAndAddToParent, setArrayValueAndAddToParent, setArrayValueAndAddToParent, setElementAndAddToParent, setInternalCallbackToModel, setInternalCallbackToModel, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueOrArrayAndAddToParent, setValueOrArrayAndAddToParent, setValueOrArrayAndAddToParent, setValueOrArrayAndAddToParent, setValueOrArrayAndAddToParent, setValueOrArrayAndAddToParent, setValueOrArrayAndAddToParent, setValueOrArrayAndAddToParent, setValueOrArrayAndAddToParent, setValueOrArrayAndAddToParent
 - 
Methods inherited from class org.pepstock.charba.client.commons.NativeObjectContainercheckDefaultValuesArgument, empty, getArrayValue, getElement, getIncrementalId, getNativeChart, getNativeEvent, getNativeObject, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValueForMultipleKeyTypes, getValueForMultipleKeyTypes, getValueForMultipleKeyTypes, getValueOrArray, getValueOrArray, getValueOrArray, getValueOrArray, getValueOrArray, getValueOrArray, getValueOrArray, getValueOrArray, has, has, isType, keys, loadNativeObject, remove, remove, setArrayValue, setArrayValue, setArrayValue, setElement, setEmptyValue, setNewIncrementalId, setNewIncrementalId, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, toJSON, type
 
- 
 
- 
- 
- 
Field Detail- 
DEFAULT_DISPLAYpublic static final boolean DEFAULT_DISPLAY Default box label display, false.- See Also:
- Constant Field Values
 
 - 
DEFAULT_FONT_WEIGHTpublic static final Weight DEFAULT_FONT_WEIGHT Default box label font weight,Weight.BOLD.
 - 
DEFAULT_COLORpublic static final IsColor DEFAULT_COLOR Default box label text color,HtmlColor.WHITE.
 - 
DEFAULT_COLOR_AS_STRINGpublic static final String DEFAULT_COLOR_AS_STRING Default box label font color as string, rgb(255, 255, 255).
 - 
DEFAULT_PADDINGpublic static final int DEFAULT_PADDING Default box label padding, 6.- See Also:
- Constant Field Values
 
 - 
DEFAULT_X_ADJUSTpublic static final double DEFAULT_X_ADJUST Default box label X adjust, 0.0.- See Also:
- Constant Field Values
 
 - 
DEFAULT_Y_ADJUSTpublic static final double DEFAULT_Y_ADJUST Default box label Y adjust, 0.0.- See Also:
- Constant Field Values
 
 - 
DEFAULT_ROTATIONpublic static final double DEFAULT_ROTATION Default box label rotation, 0.0.- See Also:
- Constant Field Values
 
 - 
DEFAULT_TEXT_ALIGNpublic static final TextAlign DEFAULT_TEXT_ALIGN Default text align for labels,TextAlign.START.
 
- 
 - 
Method Detail- 
getRotationHandlerpublic org.pepstock.charba.client.annotation.RotationHandler getRotationHandler() 
 - 
getPositionpublic AlignPosition getPosition() Returns the anchor position of label on line.- Returns:
- the anchor position of label on line
 
 - 
getPositionCallbackpublic LabelAlignPositionCallback getPositionCallback() Returns the callback called to set the anchor position of label on box.- Returns:
- the callback called to set the anchor position of label on box
 
 - 
setPositionpublic void setPosition(LabelAlignPositionCallback positionCallback) Sets the callback to set the anchor position of label on box.- Parameters:
- positionCallback- to set the anchor position of label on box
 
 - 
setPositionpublic void setPosition(NativeCallback positionCallback) Sets the callback to set the anchor position of label on box.- Parameters:
- positionCallback- to set the anchor position of label on box
 
 - 
isDisplaypublic abstract boolean isDisplay() Returnstruewhether the label should be displayed.- Returns:
- truewhether the label should be displayed
 
 - 
getDrawTimepublic abstract DrawTime getDrawTime() Returns the draw time which defines when the annotations are drawn.- Returns:
- the draw time which defines when the annotations are drawn
 
 - 
getXAdjustpublic abstract double getXAdjust() Returns the adjustment along x-axis (left-right) of label relative to above number (can be negative).
 For horizontal lines positioned left or right, negative values move the label toward the edge, and positive values toward the center.- Returns:
- the adjustment along x-axis (left-right) of label
 
 - 
getYAdjustpublic abstract double getYAdjust() Returns the adjustment along y-axis (top-bottom) of label relative to above number (can be negative).
 For vertical lines positioned top or bottom, negative values move the label toward the edge, and positive values toward the center.- Returns:
- the adjustment along y-axis (top-bottom) of label
 
 - 
getZpublic default int getZ() Returns the property determines the drawing stack level of the box annotation element.
 All visible elements will be drawn in ascending order of `z` option, with the same "drawTime" option.- Returns:
- the property determines the drawing stack level of the box annotation element.
 All visible elements will be drawn in ascending order of `z` option, with the same "drawTime" option.
 
 - 
getDisplayCallbackpublic default SimpleDisplayCallback<AnnotationContext> getDisplayCallback() Returns the callback called to set whether the label should be displayed.- Returns:
- the callback called to set whether the label should be displayed
 
 - 
getXAdjustCallbackpublic default AdjustSizeCallback getXAdjustCallback() Returns the callback called to set the adjustment along x-axis (left-right) of label relative to above number (can be negative).- Returns:
- the callback called to set the adjustment along x-axis (left-right) of label relative to above number (can be negative)
 
 - 
getYAdjustCallbackpublic default AdjustSizeCallback getYAdjustCallback() Returns the callback called to set the adjustment along y-axis (top-bottom) of label relative to above number (can be negative).- Returns:
- the callback called to set the adjustment along y-axis (top-bottom) of label relative to above number (can be negative)
 
 - 
getZCallbackpublic default ZCallback getZCallback() Returns the callback called to set the property determines the drawing stack level of the box annotation element.- Returns:
- the callback called to set the property determines the drawing stack level of the box annotation element
 
 - 
setRotationpublic default void setRotation(double radius) Sets the rotation.- Parameters:
- radius- the rotation.
 
 - 
getRotationpublic default double getRotation() Returns the rotation (in pixels).- Returns:
- the rotation (in pixels).
 
 - 
getRotationCallbackpublic default RotationCallback<AnnotationContext> getRotationCallback() Returns the callback called to set the rotation.- Returns:
- the callback called to set the rotation
 
 - 
setRotationpublic default void setRotation(RotationCallback<AnnotationContext> rotationCallback) Sets the callback to set the rotation.- Parameters:
- rotationCallback- to set the rotation
 
 - 
setRotationpublic default void setRotation(NativeCallback rotationCallback) Sets the callback to set the rotation.- Parameters:
- rotationCallback- to set the rotation
 
 - 
getLabelHandlerpublic final org.pepstock.charba.client.annotation.LabelHandler getLabelHandler() 
 - 
getTextStrokeOptionsHandlerpublic final org.pepstock.charba.client.annotation.TextStrokeOptionsHandler getTextStrokeOptionsHandler() 
 - 
setDisplaypublic final void setDisplay(boolean display) Setstruewhether the label should be displayed.- Parameters:
- display-- truewhether the label should be displayed
 
 - 
isDisplaypublic final boolean isDisplay() Returnstruewhether the label should be displayed.- Returns:
- truewhether the label should be displayed
 
 - 
setXAdjustpublic final void setXAdjust(double xAdjust) Sets the adjustment along x-axis (left-right) of label relative to above number (can be negative).
 For horizontal lines positioned left or right, negative values move the label toward the edge, and positive values toward the center.- Parameters:
- xAdjust- the adjustment along x-axis (left-right) of label
 
 - 
getXAdjustpublic final double getXAdjust() Returns the adjustment along x-axis (left-right) of label relative to above number (can be negative).
 For horizontal lines positioned left or right, negative values move the label toward the edge, and positive values toward the center.- Returns:
- the adjustment along x-axis (left-right) of label
 
 - 
setYAdjustpublic final void setYAdjust(double yAdjust) Sets the adjustment along y-axis (top-bottom) of label relative to above number (can be negative).
 For vertical lines positioned top or bottom, negative values move the label toward the edge, and positive values toward the center.- Parameters:
- yAdjust- the adjustment along y-axis (top-bottom) of label
 
 - 
getYAdjustpublic final double getYAdjust() Returns the adjustment along y-axis (top-bottom) of label relative to above number (can be negative).
 For vertical lines positioned top or bottom, negative values move the label toward the edge, and positive values toward the center.- Returns:
- the adjustment along y-axis (top-bottom) of label
 
 - 
setDrawTimepublic final void setDrawTime(DrawTime drawTime) Sets the draw time which defines when the annotations are drawn.- Parameters:
- drawTime- the draw time which defines when the annotations are drawn
 
 - 
getDrawTimepublic final DrawTime getDrawTime() Returns the draw time which defines when the annotations are drawn.- Returns:
- the draw time which defines when the annotations are drawn
 
 - 
setZpublic final void setZ(int z) Sets the property determines the drawing stack level of the box annotation element.
 All visible elements will be drawn in ascending order of `z` option, with the same "drawTime" option.- Parameters:
- z- the property determines the drawing stack level of the box annotation element.
 All visible elements will be drawn in ascending order of `z` option, with the same "drawTime" option.
 
 - 
getZpublic final int getZ() Returns the property determines the drawing stack level of the box annotation element.
 All visible elements will be drawn in ascending order of `z` option, with the same "drawTime" option.- Returns:
- the property determines the drawing stack level of the box annotation element.
 All visible elements will be drawn in ascending order of `z` option, with the same "drawTime" option.
 
 - 
getDisplayCallbackpublic final SimpleDisplayCallback<AnnotationContext> getDisplayCallback() Returns the callback called to set whether the label should be displayed.- Returns:
- the callback called to set whether the label should be displayed
 
 - 
setDisplaypublic final void setDisplay(SimpleDisplayCallback<AnnotationContext> displayCallback) Sets the callback to set whether the label should be displayed.- Parameters:
- displayCallback- to set whether the label should be displayed
 
 - 
setDisplaypublic final void setDisplay(NativeCallback displayCallback) Sets the callback to set whether the label should be displayed.- Parameters:
- displayCallback- to set whether the label should be displayed
 
 - 
getXAdjustCallbackpublic final AdjustSizeCallback getXAdjustCallback() Returns the callback called to set the adjustment along x-axis (left-right) of label relative to above number (can be negative).- Returns:
- the callback called to set the adjustment along x-axis (left-right) of label relative to above number (can be negative)
 
 - 
setXAdjustpublic final void setXAdjust(AdjustSizeCallback adjustCallback) Sets the callback to set the adjustment along y-axis (top-bottom) of label relative to above number (can be negative).- Parameters:
- adjustCallback- to set the adjustment along y-axis (top-bottom) of label relative to above number (can be negative)
 
 - 
setXAdjustpublic final void setXAdjust(NativeCallback adjustCallback) Sets the callback to set the adjustment along y-axis (top-bottom) of label relative to above number (can be negative).- Parameters:
- adjustCallback- to set the adjustment along y-axis (top-bottom) of label relative to above number (can be negative)
 
 - 
getYAdjustCallbackpublic final AdjustSizeCallback getYAdjustCallback() Returns the callback called to set the adjustment along y-axis (top-bottom) of label relative to above number (can be negative).- Returns:
- the callback called to set the adjustment along y-axis (top-bottom) of label relative to above number (can be negative)
 
 - 
setYAdjustpublic final void setYAdjust(AdjustSizeCallback adjustCallback) Sets the callback to set the adjustment along x-axis (left-right) of label relative to above number (can be negative).- Parameters:
- adjustCallback- to set the adjustment along x-axis (left-right) of label relative to above number (can be negative)
 
 - 
setYAdjustpublic final void setYAdjust(NativeCallback adjustCallback) Sets the callback to set the adjustment along x-axis (left-right) of label relative to above number (can be negative).- Parameters:
- adjustCallback- to set the adjustment along x-axis (left-right) of label relative to above number (can be negative)
 
 - 
getZCallbackpublic final ZCallback getZCallback() Returns the callback called to set the property determines the drawing stack level of the box annotation element.- Returns:
- the callback called to set the property determines the drawing stack level of the box annotation element
 
 - 
setZpublic final void setZ(ZCallback zCallback) Sets the callback called to set the property determines the drawing stack level of the box annotation element.- Parameters:
- zCallback- to set the property determines the drawing stack level of the box annotation element
 
 - 
setZpublic final void setZ(NativeCallback zCallback) Sets the callback called to set the property determines the drawing stack level of the box annotation element.- Parameters:
- zCallback- to set the property determines the drawing stack level of the box annotation element
 
 - 
getFontpublic default IsFont getFont() Returns the font element.- Returns:
- the font element.
 
 - 
getPaddingpublic default IsPadding getPadding() Returns the padding element.- Returns:
- the padding element.
 
 - 
setColorpublic default void setColor(IsColor fontColor) Sets the color of text.- Parameters:
- fontColor- the color of text
 
 - 
setColorpublic default void setColor(String fontColor) Sets the color of text as string.- Parameters:
- fontColor- the color of text
 
 - 
getColorAsStringpublic default String getColorAsString() Returns the color of text as string.- Returns:
- the color of text
 
 - 
getColorpublic default IsColor getColor() Returns the color of text.- Returns:
- the color of text
 
 - 
setContentpublic default void setContent(List<String> content) Sets the text to display in label.
 Provide a list to display values on a new line.- Parameters:
- content- the text to display in label as multi-line values
 
 - 
setContentpublic default void setContent(String... content) Sets the text to display in label.
 Provide an array to display values on a new line.- Parameters:
- content- the text to display in label
 
 - 
setContentpublic default void setContent(Img content) Sets the image to display in label.- Parameters:
- content- the image to display in label
 
 - 
setContentpublic default void setContent(Canvas content) Sets the canvas to display in label.- Parameters:
- content- the canvas to display in label
 
 - 
getContentpublic default List<String> getContent() Returns the text to display in label as list.- Returns:
- the text to display in label as list
 
 - 
getContentAsImagepublic default Img getContentAsImage() Returns the text to display in label as list.- Returns:
- the text to display in label as list
 
 - 
getContentAsCanvaspublic default Canvas getContentAsCanvas() Returns the text to display in label asCanvas.- Returns:
- the text to display in label as Canvas
 
 - 
setImageHeightpublic default void setImageHeight(int height) Sets the height of label content, when is set asImg, in pixels in order to scale the image when drawn.- Parameters:
- height- the height of label content, when is set as- Img, in pixels in order to scale the image when drawn
 
 - 
setImageHeightAsPercentagepublic default void setImageHeightAsPercentage(String heightPercentage) Sets the height of label content, when is set asImg, in percentage (format is "{n}%") in order to scale the image when drawn.- Parameters:
- heightPercentage- the height of label content, when is set as- Img, in percentage (format is "{n}%") in order to scale the image when drawn
 
 - 
getImageHeightpublic default int getImageHeight() Returns the height of label content, when is set asImg, in pixels in order to scale the image when drawn.- Returns:
- the height of label content, when is set as Img, in pixels in order to scale the image when drawn
 
 - 
getImageHeightAsPercentagepublic default String getImageHeightAsPercentage() Returns the height of label content, when is set asImg, in percentage (format is "{n}%") in order to scale the image when drawn.- Returns:
- the height of label content, when is set as Img, in percentage (format is "{n}%") in order to scale the image when drawn
 
 - 
setImageWidthpublic default void setImageWidth(int width) Sets the width of label content, when is set asImg, in pixels in order to scale the image when drawn.- Parameters:
- width- the height of label content, when is set as- Img, in pixels in order to scale the image when drawn
 
 - 
setImageWidthAsPercentagepublic default void setImageWidthAsPercentage(String widthPercentage) Sets the width of label content, when is set asImg, in percentage (format is "{n}%") in order to scale the image when drawn.- Parameters:
- widthPercentage- the height of label content, when is set as- Img, in percentage (format is "{n}%") in order to scale the image when drawn
 
 - 
getImageWidthpublic default int getImageWidth() Returns the width of label content, when is set asImg, in pixels in order to scale the image when drawn.- Returns:
- the width of label content, when is set as Img, in pixels in order to scale the image when drawn
 
 - 
getImageWidthAsPercentagepublic default String getImageWidthAsPercentage() Returns the width of label content, when is set asImg, in percentage (format is "{n}%") in order to scale the image when drawn.- Returns:
- the width of label content, when is set as Img, in percentage (format is "{n}%") in order to scale the image when drawn
 
 - 
setTextAlignpublic default void setTextAlign(TextAlign align) Sets the horizontal alignment of the label text when multiple lines.- Parameters:
- align- the horizontal alignment of the label text when multiple lines
 
 - 
getTextAlignpublic default TextAlign getTextAlign() Returns the horizontal alignment of the label text when multiple lines.- Returns:
- the horizontal alignment of the label text when multiple lines
 
 - 
getColorCallbackpublic default ColorCallback<AnnotationContext> getColorCallback() Returns the callback called to set the color of the text of label.- Returns:
- the callback called to set the color of the text of label
 
 - 
setColorpublic default void setColor(ColorCallback<AnnotationContext> colorCallback) Sets the callback to set the color of the text of label.- Parameters:
- colorCallback- to set the color of the text of label
 
 - 
setColorpublic default void setColor(NativeCallback colorCallback) Sets the callback to set the color of the text of label.- Parameters:
- colorCallback- to set the color of the text of label
 
 - 
getContentCallbackpublic default ContentCallback getContentCallback() Returns the callback called to set the text to display in label as list.- Returns:
- the callback called to set the text to display in label as list
 
 - 
setContentpublic default void setContent(ContentCallback contentCallback) Sets the callback to set the text to display in label as list.- Parameters:
- contentCallback- to set the text to display in label as list
 
 - 
setContentpublic default void setContent(NativeCallback contentCallback) Sets the callback to set the text to display in label as list.- Parameters:
- contentCallback- to set the text to display in label as list
 
 - 
getImageHeightCallbackpublic default ImageSizeCallback getImageHeightCallback() Returns the callback called to set the height of label content, when is set asImg, in percentage (format is "{n}%") in order to scale the image when drawn.- Returns:
- the callback called to set the height of label content, when is set as Img, in percentage (format is "{n}%") in order to scale the image when drawn
 
 - 
setImageHeightpublic default void setImageHeight(ImageSizeCallback imageSizeCallback) Sets the callback to set the height of label content, when is set asImg, in percentage (format is "{n}%") in order to scale the image when drawn.- Parameters:
- imageSizeCallback- to set the height of label content, when is set as- Img, in percentage (format is "{n}%") in order to scale the image when drawn
 
 - 
setImageHeightpublic default void setImageHeight(NativeCallback imageSizeCallback) Sets the callback to set the height of label content, when is set asImg, in percentage (format is "{n}%") in order to scale the image when drawn.- Parameters:
- imageSizeCallback- to set the height of label content, when is set as- Img, in percentage (format is "{n}%") in order to scale the image when drawn
 
 - 
getImageWidthCallbackpublic default ImageSizeCallback getImageWidthCallback() Returns the callback called to set the width of label content, when is set asImg, in percentage (format is "{n}%") in order to scale the image when drawn.- Returns:
- the callback called to set the width of label content, when is set as Img, in percentage (format is "{n}%") in order to scale the image when drawn
 
 - 
setImageWidthpublic default void setImageWidth(ImageSizeCallback imageSizeCallback) Sets the callback to set the width of label content, when is set asImg, in percentage (format is "{n}%") in order to scale the image when drawn.- Parameters:
- imageSizeCallback- to set the width of label content, when is set as- Img, in percentage (format is "{n}%") in order to scale the image when drawn
 
 - 
setImageWidthpublic default void setImageWidth(NativeCallback imageSizeCallback) Sets the callback to set the width of label content, when is set asImg, in percentage (format is "{n}%") in order to scale the image when drawn.- Parameters:
- imageSizeCallback- to set the width of label content, when is set as- Img, in percentage (format is "{n}%") in order to scale the image when drawn
 
 - 
getTextAlignCallbackpublic default TextAlignCallback<AnnotationContext> getTextAlignCallback() Returns the callback called to set the horizontal alignment of the label text when multiple lines.- Returns:
- the callback called to set the horizontal alignment of the label text when multiple lines
 
 - 
setTextAlignpublic default void setTextAlign(TextAlignCallback<AnnotationContext> alignCallback) Sets the callback to set the horizontal alignment of the label text when multiple lines.- Parameters:
- alignCallback- to the horizontal alignment of the label text when multiple lines
 
 - 
setTextAlignpublic default void setTextAlign(NativeCallback alignCallback) Sets the callback to set the horizontal alignment of the label text when multiple lines.- Parameters:
- alignCallback- to the horizontal alignment of the label text when multiple lines
 
 - 
getPaddingCallbackpublic default PaddingCallback<AnnotationContext> getPaddingCallback() Returns the callback called to set the padding of label.- Specified by:
- getPaddingCallbackin interface- IsScriptablePaddingProvider<AnnotationContext>
- Returns:
- the callback called to set the padding of label
 
 - 
setPaddingpublic default void setPadding(PaddingCallback<AnnotationContext> paddingCallback) Sets the callback to set the padding of label.- Specified by:
- setPaddingin interface- IsScriptablePaddingProvider<AnnotationContext>
- Parameters:
- paddingCallback- to set the padding of label
 
 - 
setPaddingpublic default void setPadding(NativeCallback paddingCallback) Sets the callback to set the padding of label to add left and right.- Specified by:
- setPaddingin interface- IsScriptablePaddingProvider<AnnotationContext>
- Parameters:
- paddingCallback- to set the padding of label to add left and right
 
 - 
getFontCallbackpublic default FontCallback<AnnotationContext> getFontCallback() Returns the font callback, if set, otherwisenull.- Specified by:
- getFontCallbackin interface- IsScriptableFontProvider<AnnotationContext>
- Returns:
- the font callback, if set, otherwise null.
 
 - 
setFontpublic default void setFont(FontCallback<AnnotationContext> fontCallback) Sets the font callback.- Specified by:
- setFontin interface- IsScriptableFontProvider<AnnotationContext>
- Parameters:
- fontCallback- the font callback to set
 
 - 
setFontpublic default void setFont(NativeCallback fontCallback) Sets the font callback.- Specified by:
- setFontin interface- IsScriptableFontProvider<AnnotationContext>
- Parameters:
- fontCallback- the font callback to set
 
 - 
setTextStrokeColorpublic default void setTextStrokeColor(IsColor textStrokeColor) Sets the color of the text stroke of annotation.- Parameters:
- textStrokeColor- the color of the text stroke of annotation
 
 - 
setTextStrokeColorpublic default void setTextStrokeColor(String textStrokeColor) Sets the color of the text stroke of annotation.- Parameters:
- textStrokeColor- the color of the text stroke of annotation
 
 - 
getTextStrokeColorAsStringpublic default String getTextStrokeColorAsString() Returns the color of the text stroke of annotation.- Returns:
- the color of the text stroke of annotation
 
 - 
getTextStrokeColorpublic default IsColor getTextStrokeColor() Returns the color of the text stroke of annotation.- Returns:
- the color of the text stroke of annotation
 
 - 
setTextStrokeWidthpublic default void setTextStrokeWidth(int textStrokeWidth) Sets the width of the text stroke in pixels.- Parameters:
- textStrokeWidth- the width of the text stroke in pixels.
 
 - 
getTextStrokeWidthpublic default int getTextStrokeWidth() Returns the width of the text stroke in pixels.- Returns:
- the width of the text stroke in pixels.
 
 - 
getTextStrokeColorCallbackpublic default ColorCallback<AnnotationContext> getTextStrokeColorCallback() Returns the callback called to set the color of the text stroke of annotation.- Returns:
- the callback called to set the color of the text stroke of annotation
 
 - 
setTextStrokeColorpublic default void setTextStrokeColor(ColorCallback<AnnotationContext> textStrokeColorCallback) Sets the callback to set the color of the text stroke of annotation.- Parameters:
- textStrokeColorCallback- to set the color of the text stroke of annotation
 
 - 
setTextStrokeColorpublic default void setTextStrokeColor(NativeCallback textStrokeColorCallback) Sets the callback to set the color of the text stroke of annotation.- Parameters:
- textStrokeColorCallback- to set the color of the text stroke of annotation
 
 - 
getTextStrokeWidthCallbackpublic default WidthCallback<AnnotationContext> getTextStrokeWidthCallback() Returns the callback called to set the width of the text stroke in pixels.- Returns:
- the callback called to set the width of the text stroke in pixels
 
 - 
setTextStrokeWidthpublic default void setTextStrokeWidth(WidthCallback<AnnotationContext> textStrokeWidthCallback) Sets the callback to set the color of the width of the text stroke in pixels.- Parameters:
- textStrokeWidthCallback- to set the width of the text stroke in pixels
 
 - 
setTextStrokeWidthpublic default void setTextStrokeWidth(NativeCallback textStrokeWidthCallback) Sets the callback to set the color of the width of the text stroke in pixels.- Parameters:
- textStrokeWidthCallback- to set the width of the text stroke in pixels
 
 
- 
 
-