Class LineLabel
- java.lang.Object
- 
- org.pepstock.charba.client.commons.NativeObjectContainer
- 
- org.pepstock.charba.client.commons.AbstractNode
- 
- org.pepstock.charba.client.annotation.LineLabel
 
 
 
- 
- All Implemented Interfaces:
- IsScriptablePaddingProvider<AnnotationContext>
 
 public final class LineLabel extends AbstractNode Implements a LABEL to apply on a LINE annotation.- Author:
- Andrea "Stock" Stocchero
 
- 
- 
Field SummaryFields Modifier and Type Field Description static doubleAUTO_ROTATIONConstant to use to set AUTO rotation of the label, to use in the rotation callback.static StringAUTO_ROTATION_AS_STRINGValue to set when auto rotation is requested, "auto".static IsColorDEFAULT_BACKGROUND_COLORDefault line label background color, rgba(0, 0, 0, 0.8).static StringDEFAULT_BACKGROUND_COLOR_AS_STRINGDefault line label background color as string, rgba(0, 0, 0, 0.8).static CapStyleDEFAULT_BORDER_CAP_STYLEDefault line label border cap style,CapStyle.BUTT.static IsColorDEFAULT_BORDER_COLORDefault line label background color, black.static StringDEFAULT_BORDER_COLOR_AS_STRINGDefault line label background color as string, black.static intDEFAULT_BORDER_DASH_OFFSETDefault line label border dash offset, 0.static JoinStyleDEFAULT_BORDER_JOIN_STYLEDefault line label border join style,JoinStyle.MITER.static intDEFAULT_BORDER_RADIUSDefault line label border radius, 6.static intDEFAULT_BORDER_WIDTHDefault line label border width, 0.static IsColorDEFAULT_COLORDefault line label text color,HtmlColor.WHITE.static StringDEFAULT_COLOR_AS_STRINGDefault line label font color as string, rgb(255, 255, 255).static booleanDEFAULT_DISPLAYDefault line label display, false.static WeightDEFAULT_FONT_WEIGHTDefault line label font weight,Weight.BOLD.static intDEFAULT_PADDINGDefault line label padding, 6.static LabelPositionDEFAULT_POSITIONDefault line label position,LabelPosition.CENTER.static doubleDEFAULT_ROTATIONDefault line label rotation, 0.0.static TextAlignDEFAULT_TEXT_ALIGNDefault text align for labels,TextAlign.CENTER.static doubleDEFAULT_X_ADJUSTDefault line label X adjust, 0.0.static doubleDEFAULT_Y_ADJUSTDefault line label Y adjust, 0.0.
 - 
Method SummaryAll Methods Instance Methods Abstract Methods Concrete Methods Default Methods Modifier and Type Method Description default IsColorgetBackgroundColor()Returns the color of the background of annotation.default StringgetBackgroundColorAsString()Returns the color of the background of annotation.default ColorCallback<AnnotationContext>getBackgroundColorCallback()Returns the callback called to set the color of the background of annotation.org.pepstock.charba.client.annotation.BackgroundColorHandlergetBackgroundColorHandler()default IsColorgetBackgroundShadowColor()Returns the color of the shadow of annotation.default StringgetBackgroundShadowColorAsString()Returns the color of the shadow of annotation.default ColorCallback<AnnotationContext>getBackgroundShadowColorCallback()Returns the callback called to set the color of the shadow of annotation.default CapStylegetBorderCapStyle()Returns how the end points of every line are drawn.default CapStyleCallback<AnnotationContext>getBorderCapStyleCallback()Returns the border capstyle callback, if set, otherwisenull.default IsColorgetBorderColor()Returns the color of the border of annotation.default StringgetBorderColorAsString()Returns the color of the border of annotation.default ColorCallback<AnnotationContext>getBorderColorCallback()Returns the callback called to set the color of the border of annotation.default List<Integer>getBorderDash()Returns the line dash pattern used when stroking lines, using an array of values which specify alternating lengths of lines and gaps which describe the pattern.default BorderDashCallback<AnnotationContext>getBorderDashCallback()Returns the callback called to set the line dash pattern used when stroking lines, using an array of values which specify alternating lengths of lines and gaps which describe the pattern.default doublegetBorderDashOffset()Returns the line dash pattern offset.default BorderDashOffsetCallback<AnnotationContext>getBorderDashOffsetCallback()Returns the callback called to set the line dash pattern offset.default JoinStylegetBorderJoinStyle()Returns how two connecting segments (of lines, arcs or curves) with non-zero lengths in a shape are joined together (degenerate segments with zero lengths, whose specified end points and control points are exactly at the same position, are skipped).default JoinStyleCallback<AnnotationContext>getBorderJoinStyleCallback()Returns the border join style callback, if set, otherwisenull.org.pepstock.charba.client.annotation.BorderOptionsHandlergetBorderOptionsHandler()default intgetBorderRadius()Returns the border radius (in pixels).default BarBorderRadiusgetBorderRadiusAsObject()Returns the border radius (in pixels).default BorderRadiusCallback<AnnotationContext>getBorderRadiusCallback()Returns the callback called to set the border radius.org.pepstock.charba.client.annotation.BorderRadiusHandlergetBorderRadiusHandler()default IsColorgetBorderShadowColor()Returns the color of the border shadow of annotation.default StringgetBorderShadowColorAsString()Returns the color of the border shadow of annotation.default ColorCallback<AnnotationContext>getBorderShadowColorCallback()Returns the callback called to set the color of the border shadow of annotation.default intgetBorderWidth()Returns the width of the border in pixels.default WidthCallback<AnnotationContext>getBorderWidthCallback()Returns the callback called to set the width of the border in pixels.CalloutgetCallout()Returns the callout node.default List<IsColor>getColor()Returns the color of text.default List<String>getColorAsString()Returns the color of text as string.default ColorsCallback<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.org.pepstock.charba.client.annotation.ExtendedBorderOptionsHandlergetExtendedBorderOptionsHandler()org.pepstock.charba.client.annotation.ExtendedShadowOptionsHandlergetExtendedShadowOptionsHandler()default IsFontgetFont()Returns the font element.default FontsCallback<AnnotationContext>getFontCallback()Returns the font callback, if set, otherwisenull.default List<IsFont>getFonts()Returns the font of the text.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 doublegetImageOpacity()Overrides the opacity of the image or canvas element.default ImageOpacityCallbackgetImageOpacityCallback()Returns the opacity callback, if set, otherwisenull.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.LabelPositiongetPosition()Returns the anchor position of label on line.doublegetPositionAsPercentage()Returns the position of label on line by the percentage (value between 0 and 1) of the line dimension.LabelPositionCallbackgetPositionCallback()Returns the callback called to set the anchor position of label on line.doublegetRotation()Returns the rotation of label in degrees.RotationCallback<AnnotationContext>getRotationCallback()Returns the callback called to set the rotation of label in degrees.default doublegetShadowBlur()Returns the amount of blur applied to shadows.default ShadowBlurCallbackgetShadowBlurCallback()Returns the callback called to set the amount of blur applied to shadows.default intgetShadowOffsetX()Returns the distance that shadows will be offset horizontally.default ShadowOffsetCallbackgetShadowOffsetXCallback()Returns the callback called to set the distance that shadows will be offset horizontally.default intgetShadowOffsetY()Returns the distance that shadows will be offset vertically.default ShadowOffsetCallbackgetShadowOffsetYCallback()Returns the callback called to set the distance that shadows will be offset vertically.org.pepstock.charba.client.annotation.ShadowOptionsHandlergetShadowOptionsHandler()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.booleanisAutoRotation()Returnstruewhether the rotation of label must calculates automatically.booleanisDisplay()Returnstruewhether the label should be displayed.booleanisDisplay()Returnstruewhether the label should be displayed.voidsetAutoRotation(boolean autoRotation)Setstruewhether the rotation of label must calculates automatically.default voidsetBackgroundColor(String backgroundColor)Sets the color of the background of annotation.default voidsetBackgroundColor(ColorCallback<AnnotationContext> backgroundColorCallback)Sets the callback to set the color of the background of annotation.default voidsetBackgroundColor(NativeCallback backgroundColorCallback)Sets the callback to set the color of the background of annotation.default voidsetBackgroundColor(IsColor backgroundColor)Sets the color of the background of annotation.default voidsetBackgroundShadowColor(String backgroundColor)Sets the color of the shadow of annotation.default voidsetBackgroundShadowColor(ColorCallback<AnnotationContext> borderShadowColorCallback)Sets the callback to set the color of the shadow of annotation.default voidsetBackgroundShadowColor(NativeCallback borderShadowColorCallback)Sets the callback to set the color of the shadow of annotation.default voidsetBackgroundShadowColor(IsColor backgroundColor)Sets the color of the shadow of annotation.default voidsetBorderCapStyle(CapStyleCallback<AnnotationContext> borderCapStyleCallback)Sets the border capstyle callback.default voidsetBorderCapStyle(NativeCallback borderCapStyleCallback)Sets the border capstyle callback.default voidsetBorderCapStyle(CapStyle borderCapStyle)Sets how the end points of every line are drawn.default voidsetBorderColor(String borderColor)Sets the color of the border of annotation.default voidsetBorderColor(ColorCallback<AnnotationContext> borderColorCallback)Sets the callback to set the color of the border of annotation.default voidsetBorderColor(NativeCallback borderColorCallback)Sets the callback to set the color of the border of annotation.default voidsetBorderColor(IsColor borderColor)Sets the color of the border of annotation.default voidsetBorderDash(int... borderDash)Sets the line dash pattern used when stroking lines, using an array of values which specify alternating lengths of lines and gaps which describe the pattern.default voidsetBorderDash(BorderDashCallback<AnnotationContext> borderDashCallback)Sets the callback to set the line dash pattern used when stroking lines, using an array of values which specify alternating lengths of lines and gaps which describe the pattern.default voidsetBorderDash(NativeCallback borderDashCallback)Sets the callback to set the line dash pattern used when stroking lines, using an array of values which specify alternating lengths of lines and gaps which describe the pattern.default voidsetBorderDashOffset(double borderDashOffset)Sets the line dash pattern offset.default voidsetBorderDashOffset(BorderDashOffsetCallback<AnnotationContext> borderDashOffsetCallback)Sets the callback to set the line dash pattern offset.default voidsetBorderDashOffset(NativeCallback borderDashOffsetCallback)Sets the callback to set the line dash pattern offset.default voidsetBorderJoinStyle(JoinStyleCallback<AnnotationContext> borderJoinStyleCallback)Sets the border join style callback.default voidsetBorderJoinStyle(NativeCallback borderJoinStyleCallback)Sets the border join style callback.default voidsetBorderJoinStyle(JoinStyle borderJoinStyle)Sets how two connecting segments (of lines, arcs or curves) with non-zero lengths in a shape are joined together (degenerate segments with zero lengths, whose specified end points and control points are exactly at the same position, are skipped).default voidsetBorderRadius(int radius)Sets the border radius.default voidsetBorderRadius(BorderRadiusCallback<AnnotationContext> borderRadiusCallback)Sets the callback to set the border radius.default voidsetBorderRadius(NativeCallback borderRadiusCallback)Sets the callback to set the border radius.default voidsetBorderRadius(BarBorderRadius borderRadius)Sets the border radius (in pixels).default voidsetBorderShadowColor(String borderColor)Sets the color of the border shadow of annotation.default voidsetBorderShadowColor(ColorCallback<AnnotationContext> borderShadowColorCallback)Sets the callback to set the color of the border shadow of annotation.default voidsetBorderShadowColor(NativeCallback borderShadowColorCallback)Sets the callback to set the color of the border shadow of annotation.default voidsetBorderShadowColor(IsColor borderColor)Sets the color of the border shadow of annotation.default voidsetBorderWidth(int borderWidth)Sets the width of the border in pixels.default voidsetBorderWidth(NativeCallback borderWidthCallback)Sets the callback to set the color of the width of the border in pixels.default voidsetBorderWidth(WidthCallback<AnnotationContext> borderWidthCallback)Sets the callback to set the color of the width of the border in pixels.default voidsetColor(String... fontColor)Sets the color of text as string.default voidsetColor(List<IsColor> fontColor)Sets the color of the text.default voidsetColor(ColorsCallback<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(FontsCallback<AnnotationContext> fontCallback)Sets the font callback.default voidsetFont(NativeCallback fontCallback)Sets the font callback.default voidsetFonts(List<FontItem> fonts)Sets the font of the text.default voidsetFonts(FontItem... fonts)Sets the font of the text.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 voidsetImageOpacity(double opacity)Overrides the opacity of the image or canvas element.default voidsetImageOpacity(ImageOpacityCallback opacityCallback)Sets the opacity callback.default voidsetImageOpacity(NativeCallback opacityCallback)Sets the opacity callback.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(LabelPositionCallback positionCallback)Sets the callback to set the anchor position of label on line.voidsetPosition(LabelPosition position)Sets the anchor position of label on line.voidsetPosition(NativeCallback positionCallback)Sets the callback to set the anchor position of label on line.voidsetPositionAsPercentage(double percentage)Sets the position of label on line by the percentage (value between 0 and 1) of the line dimension.voidsetRotation(double rotation)Sets the rotation of label in degrees.voidsetRotation(NativeCallback rotationCallback)Sets the callback to set the rotation of label in degrees.voidsetRotation(RotationCallback<AnnotationContext> rotationCallback)Sets the callback to set the rotation of label in degrees.default voidsetShadowBlur(double shadowBlur)Sets the amount of blur applied to shadows.default voidsetShadowBlur(ShadowBlurCallback shadowBlurCallback)Sets the callback to set the amount of blur applied to shadows.default voidsetShadowBlur(NativeCallback shadowBlurCallback)Sets the callback to set the amount of blur applied to shadows.default voidsetShadowOffsetX(int shadowOffset)Sets the distance that shadows will be offset horizontally.default voidsetShadowOffsetX(ShadowOffsetCallback shadowOffsetCallback)Sets the callback to set the distance that shadows will be offset horizontally.default voidsetShadowOffsetX(NativeCallback shadowOffsetCallback)Sets the callback to set the distance that shadows will be offset horizontally.default voidsetShadowOffsetY(int shadowOffset)Sets the distance that shadows will be offset vertically.default voidsetShadowOffsetY(ShadowOffsetCallback shadowOffsetCallback)Sets the callback to set the distance that shadows will be offset vertically.default voidsetShadowOffsetY(NativeCallback shadowOffsetCallback)Sets the callback to set the distance that shadows will be offset vertically.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, getUpdateListener, retrieveRoot, setArrayValueAndAddToParent, setArrayValueAndAddToParent, setArrayValueAndAddToParent, setElementAndAddToParent, setInternalCallbackToModel, setInternalCallbackToModel, setUpdateListener, setValueAndAddToParent, 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.NativeObjectContainercheckAndGetColor, checkDefaultValuesArgument, 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, 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, setValue, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, toJSON, type
 
- 
 
- 
- 
- 
Field Detail- 
AUTO_ROTATIONpublic static final double AUTO_ROTATION Constant to use to set AUTO rotation of the label, to use in the rotation callback.- See Also:
- Constant Field Values
 
 - 
DEFAULT_DISPLAYpublic static final boolean DEFAULT_DISPLAY Default line label display, false.- See Also:
- Constant Field Values
 
 - 
DEFAULT_BACKGROUND_COLORpublic static final IsColor DEFAULT_BACKGROUND_COLOR Default line label background color, rgba(0, 0, 0, 0.8).
 - 
DEFAULT_BACKGROUND_COLOR_AS_STRINGpublic static final String DEFAULT_BACKGROUND_COLOR_AS_STRING Default line label background color as string, rgba(0, 0, 0, 0.8).
 - 
DEFAULT_FONT_WEIGHTpublic static final Weight DEFAULT_FONT_WEIGHT Default line label font weight,Weight.BOLD.
 - 
DEFAULT_COLORpublic static final IsColor DEFAULT_COLOR Default line label text color,HtmlColor.WHITE.
 - 
DEFAULT_COLOR_AS_STRINGpublic static final String DEFAULT_COLOR_AS_STRING Default line label font color as string, rgb(255, 255, 255).
 - 
DEFAULT_PADDINGpublic static final int DEFAULT_PADDING Default line label padding, 6.- See Also:
- Constant Field Values
 
 - 
DEFAULT_BORDER_COLORpublic static final IsColor DEFAULT_BORDER_COLOR Default line label background color, black.
 - 
DEFAULT_BORDER_COLOR_AS_STRINGpublic static final String DEFAULT_BORDER_COLOR_AS_STRING Default line label background color as string, black.
 - 
DEFAULT_BORDER_WIDTHpublic static final int DEFAULT_BORDER_WIDTH Default line label border width, 0.- See Also:
- Constant Field Values
 
 - 
DEFAULT_BORDER_RADIUSpublic static final int DEFAULT_BORDER_RADIUS Default line label border radius, 6.- See Also:
- Constant Field Values
 
 - 
DEFAULT_BORDER_CAP_STYLEpublic static final CapStyle DEFAULT_BORDER_CAP_STYLE Default line label border cap style,CapStyle.BUTT.
 - 
DEFAULT_BORDER_JOIN_STYLEpublic static final JoinStyle DEFAULT_BORDER_JOIN_STYLE Default line label border join style,JoinStyle.MITER.
 - 
DEFAULT_BORDER_DASH_OFFSETpublic static final int DEFAULT_BORDER_DASH_OFFSET Default line label border dash offset, 0.- See Also:
- Constant Field Values
 
 - 
DEFAULT_POSITIONpublic static final LabelPosition DEFAULT_POSITION Default line label position,LabelPosition.CENTER.
 - 
DEFAULT_X_ADJUSTpublic static final double DEFAULT_X_ADJUST Default line label X adjust, 0.0.- See Also:
- Constant Field Values
 
 - 
DEFAULT_Y_ADJUSTpublic static final double DEFAULT_Y_ADJUST Default line label Y adjust, 0.0.- See Also:
- Constant Field Values
 
 - 
DEFAULT_TEXT_ALIGNpublic static final TextAlign DEFAULT_TEXT_ALIGN Default text align for labels,TextAlign.CENTER.
 - 
DEFAULT_ROTATIONpublic static final double DEFAULT_ROTATION Default line label rotation, 0.0.- See Also:
- Constant Field Values
 
 - 
AUTO_ROTATION_AS_STRINGpublic static final String AUTO_ROTATION_AS_STRING Value to set when auto rotation is requested, "auto".- See Also:
- Constant Field Values
 
 
- 
 - 
Method Detail- 
getBackgroundColorHandlerpublic org.pepstock.charba.client.annotation.BackgroundColorHandler getBackgroundColorHandler() 
 - 
getBorderRadiusHandlerpublic org.pepstock.charba.client.annotation.BorderRadiusHandler getBorderRadiusHandler() 
 - 
getBorderOptionsHandlerpublic org.pepstock.charba.client.annotation.BorderOptionsHandler getBorderOptionsHandler() 
 - 
getExtendedBorderOptionsHandlerpublic org.pepstock.charba.client.annotation.ExtendedBorderOptionsHandler getExtendedBorderOptionsHandler() 
 - 
getShadowOptionsHandlerpublic org.pepstock.charba.client.annotation.ShadowOptionsHandler getShadowOptionsHandler() 
 - 
getExtendedShadowOptionsHandlerpublic org.pepstock.charba.client.annotation.ExtendedShadowOptionsHandler getExtendedShadowOptionsHandler() 
 - 
getCalloutpublic Callout getCallout() Returns the callout node.- Returns:
- the callout node
 
 - 
setPositionpublic void setPosition(LabelPosition position) Sets the anchor position of label on line.- Parameters:
- position- the anchor position of label on line
 
 - 
getPositionpublic LabelPosition getPosition() Returns the anchor position of label on line.- Returns:
- the anchor position of label on line
 
 - 
setPositionAsPercentagepublic void setPositionAsPercentage(double percentage) Sets the position of label on line by the percentage (value between 0 and 1) of the line dimension.- Parameters:
- percentage- the position of label on line by the percentage (value between 0 and 1) of the line dimension
 
 - 
getPositionAsPercentagepublic double getPositionAsPercentage() Returns the position of label on line by the percentage (value between 0 and 1) of the line dimension.- Returns:
- the position of label on line by the percentage (value between 0 and 1) of the line dimension
 
 - 
setRotationpublic void setRotation(double rotation) Sets the rotation of label in degrees.- Parameters:
- rotation- the rotation of label in degrees
 
 - 
getRotationpublic double getRotation() Returns the rotation of label in degrees.- Returns:
- the rotation of label in degrees
 
 - 
setAutoRotationpublic void setAutoRotation(boolean autoRotation) Setstruewhether the rotation of label must calculates automatically.- Parameters:
- autoRotation-- truewhether the rotation of label must calculates automatically
 
 - 
isAutoRotationpublic boolean isAutoRotation() Returnstruewhether the rotation of label must calculates automatically.- Returns:
- truewhether the rotation of label must calculates automatically
 
 - 
getRotationCallbackpublic RotationCallback<AnnotationContext> getRotationCallback() Returns the callback called to set the rotation of label in degrees.- Returns:
- the callback called to set the rotation of label in degrees
 
 - 
setRotationpublic void setRotation(RotationCallback<AnnotationContext> rotationCallback) Sets the callback to set the rotation of label in degrees.- Parameters:
- rotationCallback- to set the rotation of label in degrees
 
 - 
setRotationpublic void setRotation(NativeCallback rotationCallback) Sets the callback to set the rotation of label in degrees.- Parameters:
- rotationCallback- to set the rotation of label in degrees
 
 - 
getPositionCallbackpublic LabelPositionCallback getPositionCallback() Returns the callback called to set the anchor position of label on line.- Returns:
- the callback called to set the anchor position of label on line
 
 - 
setPositionpublic void setPosition(LabelPositionCallback positionCallback) Sets the callback to set the anchor position of label on line.- Parameters:
- positionCallback- to set the anchor position of label on line
 
 - 
setPositionpublic void setPosition(NativeCallback positionCallback) Sets the callback to set the anchor position of label on line.- Parameters:
- positionCallback- to set the anchor position of label on line
 
 - 
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
 
 - 
setBackgroundColorpublic default void setBackgroundColor(IsColor backgroundColor) Sets the color of the background of annotation.- Parameters:
- backgroundColor- the color of the background of annotation
 
 - 
setBackgroundColorpublic default void setBackgroundColor(String backgroundColor) Sets the color of the background of annotation.- Parameters:
- backgroundColor- the color of the background of annotation
 
 - 
getBackgroundColorAsStringpublic default String getBackgroundColorAsString() Returns the color of the background of annotation.- Returns:
- the color of the background of annotation
 
 - 
getBackgroundColorpublic default IsColor getBackgroundColor() Returns the color of the background of annotation.- Returns:
- the color of the background of annotation
 
 - 
getBackgroundColorCallbackpublic default ColorCallback<AnnotationContext> getBackgroundColorCallback() Returns the callback called to set the color of the background of annotation.- Returns:
- the callback called to set the color of the background of annotation
 
 - 
setBackgroundColorpublic default void setBackgroundColor(ColorCallback<AnnotationContext> backgroundColorCallback) Sets the callback to set the color of the background of annotation.- Parameters:
- backgroundColorCallback- to set the color of the background of annotation
 
 - 
setBackgroundColorpublic default void setBackgroundColor(NativeCallback backgroundColorCallback) Sets the callback to set the color of the background of annotation.- Parameters:
- backgroundColorCallback- to set the color of the background of annotation
 
 - 
setBorderRadiuspublic default void setBorderRadius(int radius) Sets the border radius.- Parameters:
- radius- the border radius.
 
 - 
setBorderRadiuspublic default void setBorderRadius(BarBorderRadius borderRadius) Sets the border radius (in pixels).- Parameters:
- borderRadius- the border radius (in pixels).
 
 - 
getBorderRadiuspublic default int getBorderRadius() Returns the border radius (in pixels).- Returns:
- the border radius (in pixels).
 
 - 
getBorderRadiusAsObjectpublic default BarBorderRadius getBorderRadiusAsObject() Returns the border radius (in pixels).- Returns:
- the border radius (in pixels).
 
 - 
getBorderRadiusCallbackpublic default BorderRadiusCallback<AnnotationContext> getBorderRadiusCallback() Returns the callback called to set the border radius.- Returns:
- the callback called to set the border radius
 
 - 
setBorderRadiuspublic default void setBorderRadius(BorderRadiusCallback<AnnotationContext> borderRadiusCallback) Sets the callback to set the border radius.- Parameters:
- borderRadiusCallback- to set the border radius
 
 - 
setBorderRadiuspublic default void setBorderRadius(NativeCallback borderRadiusCallback) Sets the callback to set the border radius.- Parameters:
- borderRadiusCallback- to set the border radius
 
 - 
setBorderColorpublic default void setBorderColor(IsColor borderColor) Sets the color of the border of annotation.- Parameters:
- borderColor- the color of the border of annotation
 
 - 
setBorderColorpublic default void setBorderColor(String borderColor) Sets the color of the border of annotation.- Parameters:
- borderColor- the color of the border of annotation
 
 - 
getBorderColorAsStringpublic default String getBorderColorAsString() Returns the color of the border of annotation.- Returns:
- the color of the border of annotation
 
 - 
getBorderColorpublic default IsColor getBorderColor() Returns the color of the border of annotation.- Returns:
- the color of the border of annotation
 
 - 
setBorderWidthpublic default void setBorderWidth(int borderWidth) Sets the width of the border in pixels.- Parameters:
- borderWidth- the width of the border in pixels.
 
 - 
getBorderWidthpublic default int getBorderWidth() Returns the width of the border in pixels.- Returns:
- the width of the border in pixels.
 
 - 
setBorderDashpublic default void setBorderDash(int... borderDash) Sets the line dash pattern used when stroking lines, using an array of values which specify alternating lengths of lines and gaps which describe the pattern.- Parameters:
- borderDash- the line dash pattern used when stroking lines, using an array of values which specify alternating lengths of lines and gaps which describe the pattern.
 
 - 
getBorderDashpublic default List<Integer> getBorderDash() Returns the line dash pattern used when stroking lines, using an array of values which specify alternating lengths of lines and gaps which describe the pattern.- Returns:
- the line dash pattern used when stroking lines, using an array of values which specify alternating lengths of lines and gaps which describe the pattern.
 
 - 
setBorderDashOffsetpublic default void setBorderDashOffset(double borderDashOffset) Sets the line dash pattern offset.- Parameters:
- borderDashOffset- the line dash pattern offset.
 
 - 
getBorderDashOffsetpublic default double getBorderDashOffset() Returns the line dash pattern offset.- Returns:
- the line dash pattern offset.
 
 - 
getBorderColorCallbackpublic default ColorCallback<AnnotationContext> getBorderColorCallback() Returns the callback called to set the color of the border of annotation.- Returns:
- the callback called to set the color of the border of annotation
 
 - 
setBorderColorpublic default void setBorderColor(ColorCallback<AnnotationContext> borderColorCallback) Sets the callback to set the color of the border of annotation.- Parameters:
- borderColorCallback- to set the color of the border of annotation
 
 - 
setBorderColorpublic default void setBorderColor(NativeCallback borderColorCallback) Sets the callback to set the color of the border of annotation.- Parameters:
- borderColorCallback- to set the color of the border of annotation
 
 - 
getBorderWidthCallbackpublic default WidthCallback<AnnotationContext> getBorderWidthCallback() Returns the callback called to set the width of the border in pixels.- Returns:
- the callback called to set the width of the border in pixels
 
 - 
setBorderWidthpublic default void setBorderWidth(WidthCallback<AnnotationContext> borderWidthCallback) Sets the callback to set the color of the width of the border in pixels.- Parameters:
- borderWidthCallback- to set the width of the border in pixels
 
 - 
setBorderWidthpublic default void setBorderWidth(NativeCallback borderWidthCallback) Sets the callback to set the color of the width of the border in pixels.- Parameters:
- borderWidthCallback- to set the width of the border in pixels
 
 - 
getBorderDashCallbackpublic default BorderDashCallback<AnnotationContext> getBorderDashCallback() Returns the callback called to set the line dash pattern used when stroking lines, using an array of values which specify alternating lengths of lines and gaps which describe the pattern.- Returns:
- the callback called to set the line dash pattern used when stroking lines, using an array of values which specify alternating lengths of lines and gaps which describe the pattern
 
 - 
setBorderDashpublic default void setBorderDash(BorderDashCallback<AnnotationContext> borderDashCallback) Sets the callback to set the line dash pattern used when stroking lines, using an array of values which specify alternating lengths of lines and gaps which describe the pattern.- Parameters:
- borderDashCallback- to set the line dash pattern used when stroking lines, using an array of values which specify alternating lengths of lines and gaps which describe the pattern
 
 - 
setBorderDashpublic default void setBorderDash(NativeCallback borderDashCallback) Sets the callback to set the line dash pattern used when stroking lines, using an array of values which specify alternating lengths of lines and gaps which describe the pattern.- Parameters:
- borderDashCallback- to set the line dash pattern used when stroking lines, using an array of values which specify alternating lengths of lines and gaps which describe the pattern
 
 - 
getBorderDashOffsetCallbackpublic default BorderDashOffsetCallback<AnnotationContext> getBorderDashOffsetCallback() Returns the callback called to set the line dash pattern offset.- Returns:
- the callback called to set the line dash pattern offset
 
 - 
setBorderDashOffsetpublic default void setBorderDashOffset(BorderDashOffsetCallback<AnnotationContext> borderDashOffsetCallback) Sets the callback to set the line dash pattern offset.- Parameters:
- borderDashOffsetCallback- to set the line dash pattern offset
 
 - 
setBorderDashOffsetpublic default void setBorderDashOffset(NativeCallback borderDashOffsetCallback) Sets the callback to set the line dash pattern offset.- Parameters:
- borderDashOffsetCallback- to set the line dash pattern offset
 
 - 
setBorderCapStylepublic default void setBorderCapStyle(CapStyle borderCapStyle) Sets how the end points of every line are drawn.- Parameters:
- borderCapStyle- how the end points of every line are drawn.
 
 - 
getBorderCapStylepublic default CapStyle getBorderCapStyle() Returns how the end points of every line are drawn.- Returns:
- how the end points of every line are drawn.
 
 - 
setBorderJoinStylepublic default void setBorderJoinStyle(JoinStyle borderJoinStyle) Sets how two connecting segments (of lines, arcs or curves) with non-zero lengths in a shape are joined together (degenerate segments with zero lengths, whose specified end points and control points are exactly at the same position, are skipped).- Parameters:
- borderJoinStyle- how two connecting segments (of lines, arcs or curves) with non-zero lengths in a shape are joined together
 
 - 
getBorderJoinStylepublic default JoinStyle getBorderJoinStyle() Returns how two connecting segments (of lines, arcs or curves) with non-zero lengths in a shape are joined together (degenerate segments with zero lengths, whose specified end points and control points are exactly at the same position, are skipped).- Returns:
- how two connecting segments (of lines, arcs or curves) with non-zero lengths in a shape are joined together
 
 - 
getBorderCapStyleCallbackpublic default CapStyleCallback<AnnotationContext> getBorderCapStyleCallback() Returns the border capstyle callback, if set, otherwisenull.- Returns:
- the border capstyle callback, if set, otherwise null.
 
 - 
setBorderCapStylepublic default void setBorderCapStyle(CapStyleCallback<AnnotationContext> borderCapStyleCallback) Sets the border capstyle callback.- Parameters:
- borderCapStyleCallback- the border capstyle callback.
 
 - 
setBorderCapStylepublic default void setBorderCapStyle(NativeCallback borderCapStyleCallback) Sets the border capstyle callback.- Parameters:
- borderCapStyleCallback- the border capstyle callback.
 
 - 
getBorderJoinStyleCallbackpublic default JoinStyleCallback<AnnotationContext> getBorderJoinStyleCallback() Returns the border join style callback, if set, otherwisenull.- Returns:
- the border join style callback, if set, otherwise null.
 
 - 
setBorderJoinStylepublic default void setBorderJoinStyle(JoinStyleCallback<AnnotationContext> borderJoinStyleCallback) Sets the border join style callback.- Parameters:
- borderJoinStyleCallback- the border join style callback.
 
 - 
setBorderJoinStylepublic default void setBorderJoinStyle(NativeCallback borderJoinStyleCallback) Sets the border join style callback.- Parameters:
- borderJoinStyleCallback- the border join style callback.
 
 - 
setBorderShadowColorpublic default void setBorderShadowColor(IsColor borderColor) Sets the color of the border shadow of annotation.- Parameters:
- borderColor- the color of the border shadow of annotation
 
 - 
setBorderShadowColorpublic default void setBorderShadowColor(String borderColor) Sets the color of the border shadow of annotation.- Parameters:
- borderColor- the color of the border shadow of annotation
 
 - 
getBorderShadowColorAsStringpublic default String getBorderShadowColorAsString() Returns the color of the border shadow of annotation.- Returns:
- the color of the border shadow of annotation
 
 - 
getBorderShadowColorpublic default IsColor getBorderShadowColor() Returns the color of the border shadow of annotation.- Returns:
- the color of the border shadow of annotation
 
 - 
setShadowBlurpublic default void setShadowBlur(double shadowBlur) Sets the amount of blur applied to shadows.- Parameters:
- shadowBlur- the amount of blur applied to shadows
 
 - 
getShadowBlurpublic default double getShadowBlur() Returns the amount of blur applied to shadows.- Returns:
- the amount of blur applied to shadows
 
 - 
setShadowOffsetXpublic default void setShadowOffsetX(int shadowOffset) Sets the distance that shadows will be offset horizontally.- Parameters:
- shadowOffset- the distance that shadows will be offset horizontally.
 
 - 
getShadowOffsetXpublic default int getShadowOffsetX() Returns the distance that shadows will be offset horizontally.- Returns:
- the distance that shadows will be offset horizontally.
 
 - 
setShadowOffsetYpublic default void setShadowOffsetY(int shadowOffset) Sets the distance that shadows will be offset vertically.- Parameters:
- shadowOffset- the distance that shadows will be offset vertically.
 
 - 
getShadowOffsetYpublic default int getShadowOffsetY() Returns the distance that shadows will be offset vertically.- Returns:
- the distance that shadows will be offset vertically.
 
 - 
getBorderShadowColorCallbackpublic default ColorCallback<AnnotationContext> getBorderShadowColorCallback() Returns the callback called to set the color of the border shadow of annotation.- Returns:
- the callback called to set the color of the border shadow of annotation
 
 - 
setBorderShadowColorpublic default void setBorderShadowColor(ColorCallback<AnnotationContext> borderShadowColorCallback) Sets the callback to set the color of the border shadow of annotation.- Parameters:
- borderShadowColorCallback- to set the color of the border shadow of annotation
 
 - 
setBorderShadowColorpublic default void setBorderShadowColor(NativeCallback borderShadowColorCallback) Sets the callback to set the color of the border shadow of annotation.- Parameters:
- borderShadowColorCallback- to set the color of the border shadow of annotation
 
 - 
getShadowBlurCallbackpublic default ShadowBlurCallback getShadowBlurCallback() Returns the callback called to set the amount of blur applied to shadows.- Returns:
- the callback called to set the amount of blur applied to shadows.
 
 - 
setShadowBlurpublic default void setShadowBlur(ShadowBlurCallback shadowBlurCallback) Sets the callback to set the amount of blur applied to shadows.- Parameters:
- shadowBlurCallback- to set the amount of blur applied to shadows.
 
 - 
setShadowBlurpublic default void setShadowBlur(NativeCallback shadowBlurCallback) Sets the callback to set the amount of blur applied to shadows.- Parameters:
- shadowBlurCallback- to set the amount of blur applied to shadows.
 
 - 
getShadowOffsetXCallbackpublic default ShadowOffsetCallback getShadowOffsetXCallback() Returns the callback called to set the distance that shadows will be offset horizontally.- Returns:
- the callback called to set the distance that shadows will be offset horizontally.
 
 - 
setShadowOffsetXpublic default void setShadowOffsetX(ShadowOffsetCallback shadowOffsetCallback) Sets the callback to set the distance that shadows will be offset horizontally.- Parameters:
- shadowOffsetCallback- to set the distance that shadows will be offset horizontally.
 
 - 
setShadowOffsetXpublic default void setShadowOffsetX(NativeCallback shadowOffsetCallback) Sets the callback to set the distance that shadows will be offset horizontally.- Parameters:
- shadowOffsetCallback- to set the distance that shadows will be offset horizontally.
 
 - 
getShadowOffsetYCallbackpublic default ShadowOffsetCallback getShadowOffsetYCallback() Returns the callback called to set the distance that shadows will be offset vertically.- Returns:
- the callback called to set the distance that shadows will be offset vertically.
 
 - 
setShadowOffsetYpublic default void setShadowOffsetY(ShadowOffsetCallback shadowOffsetCallback) Sets the callback to set the distance that shadows will be offset vertically.- Parameters:
- shadowOffsetCallback- to set the distance that shadows will be offset vertically.
 
 - 
setShadowOffsetYpublic default void setShadowOffsetY(NativeCallback shadowOffsetCallback) Sets the callback to set the distance that shadows will be offset vertically.- Parameters:
- shadowOffsetCallback- to set the distance that shadows will be offset vertically.
 
 - 
setBackgroundShadowColorpublic default void setBackgroundShadowColor(IsColor backgroundColor) Sets the color of the shadow of annotation.- Parameters:
- backgroundColor- the color of the shadow of annotation
 
 - 
setBackgroundShadowColorpublic default void setBackgroundShadowColor(String backgroundColor) Sets the color of the shadow of annotation.- Parameters:
- backgroundColor- the color of the shadow of annotation
 
 - 
getBackgroundShadowColorAsStringpublic default String getBackgroundShadowColorAsString() Returns the color of the shadow of annotation.- Returns:
- the color of the shadow of annotation
 
 - 
getBackgroundShadowColorpublic default IsColor getBackgroundShadowColor() Returns the color of the shadow of annotation.- Returns:
- the color of the shadow of annotation
 
 - 
getBackgroundShadowColorCallbackpublic default ColorCallback<AnnotationContext> getBackgroundShadowColorCallback() Returns the callback called to set the color of the shadow of annotation.- Returns:
- the callback called to set the color of the shadow of annotation
 
 - 
setBackgroundShadowColorpublic default void setBackgroundShadowColor(ColorCallback<AnnotationContext> borderShadowColorCallback) Sets the callback to set the color of the shadow of annotation.- Parameters:
- borderShadowColorCallback- to set the color of the shadow of annotation
 
 - 
setBackgroundShadowColorpublic default void setBackgroundShadowColor(NativeCallback borderShadowColorCallback) Sets the callback to set the color of the shadow of annotation.- Parameters:
- borderShadowColorCallback- to set the color of the shadow of annotation
 
 - 
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.
 
 - 
setFontspublic default void setFonts(FontItem... fonts) Sets the font of the text.- Parameters:
- fonts- the font of the text
 
 - 
setFontspublic default void setFonts(List<FontItem> fonts) Sets the font of the text.- Parameters:
- fonts- the font of the text
 
 - 
getFontspublic default List<IsFont> getFonts() Returns the font of the text.- Returns:
- the font of the text
 
 - 
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(List<IsColor> fontColor) Sets the color of the text.- Parameters:
- fontColor- the color of the text
 
 - 
setColorpublic default void setColor(String... fontColor) Sets the color of text as string.- Parameters:
- fontColor- the color of text
 
 - 
getColorAsStringpublic default List<String> getColorAsString() Returns the color of text as string.- Returns:
- the color of text
 
 - 
getColorpublic default List<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
 
 - 
setImageOpacitypublic default void setImageOpacity(double opacity) Overrides the opacity of the image or canvas element. Could be set a number in the range 0.0 to 1.0, inclusive.
 If undefined, uses the opacity of the image or canvas element.
 It is used only when the content is an image or canvas element.- Parameters:
- opacity- the opacity of the image or canvas element. Could be set a number in the range 0.0 to 1.0, inclusive
 
 - 
getImageOpacitypublic default double getImageOpacity() Overrides the opacity of the image or canvas element. Could be set a number in the range 0.0 to 1.0, inclusive.
 If undefined, uses the opacity of the image or canvas element.
 It is used only when the content is an image or canvas element.- Returns:
- the opacity of the image or canvas element. Could be set a number in the range 0.0 to 1.0, inclusive
 
 - 
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 ColorsCallback<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(ColorsCallback<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 FontsCallback<AnnotationContext> getFontCallback() Returns the font callback, if set, otherwisenull.- Returns:
- the font callback, if set, otherwise null.
 
 - 
setFontpublic default void setFont(FontsCallback<AnnotationContext> fontCallback) Sets the font callback.- Parameters:
- fontCallback- the font callback to set
 
 - 
setFontpublic default void setFont(NativeCallback fontCallback) Sets the font callback.- Parameters:
- fontCallback- the font callback to set
 
 - 
getImageOpacityCallbackpublic default ImageOpacityCallback getImageOpacityCallback() Returns the opacity callback, if set, otherwisenull.- Returns:
- the opacity callback, if set, otherwise null.
 
 - 
setImageOpacitypublic default void setImageOpacity(ImageOpacityCallback opacityCallback) Sets the opacity callback.- Parameters:
- opacityCallback- the opacity callback to set
 
 - 
setImageOpacitypublic default void setImageOpacity(NativeCallback opacityCallback) Sets the opacity callback.- Parameters:
- opacityCallback- the opacity 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
 
 
- 
 
-