Class LabelAnnotation
- java.lang.Object
-
- org.pepstock.charba.client.commons.NativeObjectContainer
-
- org.pepstock.charba.client.commons.AbstractNode
-
- org.pepstock.charba.client.annotation.AbstractAnnotation
-
- org.pepstock.charba.client.annotation.LabelAnnotation
-
- All Implemented Interfaces:
IsScriptableFontProvider<AnnotationContext>
,IsScriptablePaddingProvider<AnnotationContext>
public final class LabelAnnotation extends AbstractAnnotation
Implements a LABEL annotation which draws a content in the a chart.- Author:
- Andrea "Stock" Stocchero
-
-
Field Summary
Fields Modifier and Type Field Description static IsColor
DEFAULT_BACKGROUND_COLOR
Default label annotation background color,HtmlColor.TRANSPARENT
.static String
DEFAULT_BACKGROUND_COLOR_AS_STRING
Default label annotation background color as string,HtmlColor.TRANSPARENT
.static CapStyle
DEFAULT_BORDER_CAP_STYLE
Default label border cap style,CapStyle.BUTT
.static JoinStyle
DEFAULT_BORDER_JOIN_STYLE
Default label border join style,JoinStyle.MITER
.static int
DEFAULT_BORDER_RADIUS
Default label border radius, 6.static int
DEFAULT_BORDER_WIDTH
Default label annotation border width, 0.static IsColor
DEFAULT_COLOR
Default label text color,HtmlColor.WHITE
.static String
DEFAULT_COLOR_AS_STRING
Default label font color as string, rgb(255, 255, 255).static int
DEFAULT_PADDING
Default label padding, 6.static TextAlign
DEFAULT_TEXT_ALIGN
Default text align for labels,TextAlign.CENTER
.static IsColor
DEFAULT_TEXT_STROKE_COLOR
Default label annotation text stroke color,HtmlColor.TRANSPARENT
.static String
DEFAULT_TEXT_STROKE_COLOR_AS_STRING
Default label annotation text stroke color as string,HtmlColor.TRANSPARENT
.static int
DEFAULT_TEXT_STROKE_WIDTH
Default label annotation text stroke width, 0.static double
DEFAULT_X_ADJUST
Default annotation X adjust, 0.0.static double
DEFAULT_Y_ADJUST
Default annotation Y adjust, 0.0.static ElementFactory<LabelAnnotation>
FACTORY
Element factory to get ""labelAnnotation"" element.-
Fields inherited from class org.pepstock.charba.client.annotation.AbstractAnnotation
DEFAULT_ADJUST_SCALE_RANGE, DEFAULT_DISPLAY, DEFAULT_ROTATION, DEFAULT_Z
-
-
Constructor Summary
Constructors Constructor Description LabelAnnotation()
Creates a label annotation to be added to anAnnotationOptions
instance.
The annotation id is calculated automatically.LabelAnnotation(String id)
Creates a label annotation to be added to anAnnotationOptions
instance, using the ID passed as argument.LabelAnnotation(String id, IsChart chart)
Creates a label annotation to be added to anAnnotationOptions
instance, using the ID passed as argument.
The chart instance, passed as argument, must be the chart where the annotations will be applied and is used to get the whole default options in order to get the default for this object.LabelAnnotation(AnnotationId id)
Creates a label annotation to be added to anAnnotationOptions
instance, using the ID passed as argument.LabelAnnotation(AnnotationId id, IsChart chart)
Creates a label annotation to be added to anAnnotationOptions
instance, using the ID passed as argument.
The chart instance, passed as argument, must be the chart where the annotations will be applied and is used to get the whole default options in order to get the default for this object.
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Default Methods Modifier and Type Method Description default AdjustScaleRangeCallback
getAdjustScaleRangeCallback()
Returns the callback called to set whether the scale range should be adjusted if this annotation is out of range.default IsColor
getBackgroundColor()
Returns the color of the background of annotation.default String
getBackgroundColorAsString()
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.BackgroundColorHandler
getBackgroundColorHandler()
default IsColor
getBackgroundShadowColor()
Returns the color of the shadow of annotation.default String
getBackgroundShadowColorAsString()
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 CapStyle
getBorderCapStyle()
Returns how the end points of every line are drawn.default CapStyleCallback<AnnotationContext>
getBorderCapStyleCallback()
Returns the border capstyle callback, if set, otherwisenull
.default IsColor
getBorderColor()
Returns the color of the border of annotation.default String
getBorderColorAsString()
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 double
getBorderDashOffset()
Returns the line dash pattern offset.default BorderDashOffsetCallback<AnnotationContext>
getBorderDashOffsetCallback()
Returns the callback called to set the line dash pattern offset.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).default JoinStyleCallback<AnnotationContext>
getBorderJoinStyleCallback()
Returns the border join style callback, if set, otherwisenull
.default int
getBorderRadius()
Returns the border radius (in pixels).default BarBorderRadius
getBorderRadiusAsObject()
Returns the border radius (in pixels).default BorderRadiusCallback<AnnotationContext>
getBorderRadiusCallback()
Returns the callback called to set the border radius.org.pepstock.charba.client.annotation.BorderRadiusHandler
getBorderRadiusHandler()
default IsColor
getBorderShadowColor()
Returns the color of the border shadow of annotation.default String
getBorderShadowColorAsString()
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 int
getBorderWidth()
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.Callout
getCallout()
Returns the callout node.default ClickCallback
getClickCallback()
Returns the callback called when a "click" event is occurring.default IsColor
getColor()
Returns the color of text.default String
getColorAsString()
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 Canvas
getContentAsCanvas()
Returns the text to display in label asCanvas
.default Img
getContentAsImage()
Returns the text to display in label as list.default ContentCallback
getContentCallback()
Returns the callback called to set the text to display in label as list.default SimpleDisplayCallback<AnnotationContext>
getDisplayCallback()
Returns the callback called to set the display options.default DrawTime
getDrawTime()
Returns the draw time which defines when the annotations are drawn.default DrawTimeCallback
getDrawTimeCallback()
Returns the callback called to set the draw time which defines when the annotations are drawn.default EnterCallback
getEnterCallback()
Returns the callback called when a "enter" event is occurring.org.pepstock.charba.client.annotation.ExtendedBorderOptionsHandler
getExtendedBorderOptionsHandler()
org.pepstock.charba.client.annotation.ExtendedShadowOptionsHandler
getExtendedShadowOptionsHandler()
default IsFont
getFont()
Returns the font element.default FontCallback<AnnotationContext>
getFontCallback()
Returns the font callback, if set, otherwisenull
.default int
getImageHeight()
Returns the height of label content, when is set asImg
, in pixels in order to scale the image when drawn.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.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.default int
getImageWidth()
Returns the width of label content, when is set asImg
, in pixels in order to scale the image when drawn.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.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.org.pepstock.charba.client.annotation.LabelHandler
getLabelHandler()
default LeaveCallback
getLeaveCallback()
Returns the callback called when a "leave" event is occurring.default IsPadding
getPadding()
Returns the padding element.default PaddingCallback<AnnotationContext>
getPaddingCallback()
Returns the callback called to set the padding of label.AlignPosition
getPosition()
Returns the anchor position of label on line.LabelAlignPositionCallback
getPositionCallback()
Returns the callback called to set the anchor position of label on box.default double
getRotation()
Returns the rotation (in pixels).default RotationCallback<AnnotationContext>
getRotationCallback()
Returns the callback called to set the rotation.org.pepstock.charba.client.annotation.RotationHandler
getRotationHandler()
default double
getShadowBlur()
Returns the amount of blur applied to shadows.default ShadowBlurCallback
getShadowBlurCallback()
Returns the callback called to set the amount of blur applied to shadows.default int
getShadowOffsetX()
Returns the distance that shadows will be offset horizontally.default ShadowOffsetCallback
getShadowOffsetXCallback()
Returns the callback called to set the distance that shadows will be offset horizontally.default int
getShadowOffsetY()
Returns the distance that shadows will be offset vertically.default ShadowOffsetCallback
getShadowOffsetYCallback()
Returns the callback called to set the distance that shadows will be offset vertically.default TextAlign
getTextAlign()
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 IsColor
getTextStrokeColor()
Returns the color of the text stroke of annotation.default String
getTextStrokeColorAsString()
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.TextStrokeOptionsHandler
getTextStrokeOptionsHandler()
default int
getTextStrokeWidth()
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.AnnotationType
getType()
Returns the type of annotation.double
getXAdjust()
Returns the adjustment along x-axis (left-right) of annotation relative to above number (can be negative).default double
getXAdjust()
Returns the adjustment along x-axis (left-right) of annotation relative to above number (can be negative).AdjustSizeCallback
getXAdjustCallback()
Returns the callback called to set the adjustment along x-axis (left-right) of annotation relative to above number (can be negative).default AdjustSizeCallback
getXAdjustCallback()
Returns the callback called to set the adjustment along x-axis (left-right) of annotation relative to above number (can be negative).default Date
getXMaxAsDate()
Returns the right edge of the box.default double
getXMaxAsDouble()
Returns the right edge of the box.default String
getXMaxAsString()
Returns the right edge of the box.default ValueCallback
getXMaxCallback()
Returns the callback called to set the right edge of the box.default Date
getXMinAsDate()
Returns the left edge of the box, in units along the x axis.default double
getXMinAsDouble()
Returns the left edge of the box, in units along the x axis.default String
getXMinAsString()
Returns the left edge of the box, in units along the x axis.default ValueCallback
getXMinCallback()
Returns the callback called to set the left edge of the box, in units along the x axis.default ScaleId
getXScaleID()
Returns the ID of the X scale to bind onto.Date
getXValueAsDate()
Returns the data X value to draw the annotation at.default Date
getXValueAsDate()
Returns the data X value to draw the annotation at.double
getXValueAsDouble()
Returns the data X value to draw the annotation at.default double
getXValueAsDouble()
Returns the data X value to draw the annotation at.String
getXValueAsString()
Returns the data X value to draw the annotation at.default String
getXValueAsString()
Returns the data X value to draw the annotation at.ValueCallback
getXValueCallback()
Returns the callback called to set the data X value to draw the annotation at.default ValueCallback
getXValueCallback()
Returns the callback called to set the data X value to draw the annotation at.double
getYAdjust()
Returns the adjustment along y-axis (top-bottom) of annotation relative to above number (can be negative).default double
getYAdjust()
Returns the adjustment along y-axis (top-bottom) of annotation relative to above number (can be negative).AdjustSizeCallback
getYAdjustCallback()
Returns the callback called to set the adjustment along y-axis (top-bottom) of annotation relative to above number (can be negative).default AdjustSizeCallback
getYAdjustCallback()
Returns the callback called to set the adjustment along y-axis (top-bottom) of annotation relative to above number (can be negative).default Date
getYMaxAsDate()
Returns the top edge of the box in units along the y axis.default double
getYMaxAsDouble()
Returns the top edge of the box in units along the y axis.default String
getYMaxAsString()
Returns the top edge of the box in units along the y axis.default ValueCallback
getYMaxCallback()
Returns the callback called to set the right edge of the box.default Date
getYMinAsDate()
Returns the bottom edge of the box.default double
getYMinAsDouble()
Returns the bottom edge of the box.default String
getYMinAsString()
Returns the bottom edge of the box.default ValueCallback
getYMinCallback()
Returns the callback called to set the left edge of the box, in units along the x axis.default ScaleId
getYScaleID()
Returns the ID of the Y scale to bind onto.Date
getYValueAsDate()
Returns the data Y value to draw the annotation at.default Date
getYValueAsDate()
Returns the data Y value to draw the annotation at.double
getYValueAsDouble()
Returns the data Y value to draw the annotation at.default double
getYValueAsDouble()
Returns the data Y value to draw the annotation at.String
getYValueAsString()
Returns the data Y value to draw the annotation at.default String
getYValueAsString()
Returns the data Y value to draw the annotation at.ValueCallback
getYValueCallback()
Returns the callback called to set the data Y value to draw the annotation at.default ValueCallback
getYValueCallback()
Returns the callback called to set the data Y value to draw the annotation at.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.default ZCallback
getZCallback()
Returns the callback called to set the property determines the drawing stack level of the box annotation element.default boolean
isAdjustScaleRange()
Returnstrue
whether the scale range should be adjusted if this annotation is out of range.default boolean
isDisplay()
Returnstrue
whether the annotation should be displayed.default void
setBackgroundColor(String backgroundColor)
Sets the color of the background of annotation.default void
setBackgroundColor(ColorCallback<AnnotationContext> backgroundColorCallback)
Sets the callback to set the color of the background of annotation.default void
setBackgroundColor(NativeCallback backgroundColorCallback)
Sets the callback to set the color of the background of annotation.default void
setBackgroundColor(IsColor backgroundColor)
Sets the color of the background of annotation.default void
setBackgroundShadowColor(String backgroundColor)
Sets the color of the shadow of annotation.default void
setBackgroundShadowColor(ColorCallback<AnnotationContext> borderShadowColorCallback)
Sets the callback to set the color of the shadow of annotation.default void
setBackgroundShadowColor(NativeCallback borderShadowColorCallback)
Sets the callback to set the color of the shadow of annotation.default void
setBackgroundShadowColor(IsColor backgroundColor)
Sets the color of the shadow of annotation.default void
setBorderCapStyle(CapStyleCallback<AnnotationContext> borderCapStyleCallback)
Sets the border capstyle callback.default void
setBorderCapStyle(NativeCallback borderCapStyleCallback)
Sets the border capstyle callback.default void
setBorderCapStyle(CapStyle borderCapStyle)
Sets how the end points of every line are drawn.default void
setBorderColor(String borderColor)
Sets the color of the border of annotation.default void
setBorderColor(ColorCallback<AnnotationContext> borderColorCallback)
Sets the callback to set the color of the border of annotation.default void
setBorderColor(NativeCallback borderColorCallback)
Sets the callback to set the color of the border of annotation.default void
setBorderColor(IsColor borderColor)
Sets the color of the border of annotation.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.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.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.default void
setBorderDashOffset(double borderDashOffset)
Sets the line dash pattern offset.default void
setBorderDashOffset(BorderDashOffsetCallback<AnnotationContext> borderDashOffsetCallback)
Sets the callback to set the line dash pattern offset.default void
setBorderDashOffset(NativeCallback borderDashOffsetCallback)
Sets the callback to set the line dash pattern offset.default void
setBorderJoinStyle(JoinStyleCallback<AnnotationContext> borderJoinStyleCallback)
Sets the border join style callback.default void
setBorderJoinStyle(NativeCallback borderJoinStyleCallback)
Sets the border join style callback.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).default void
setBorderRadius(int radius)
Sets the border radius.default void
setBorderRadius(BorderRadiusCallback<AnnotationContext> borderRadiusCallback)
Sets the callback to set the border radius.default void
setBorderRadius(NativeCallback borderRadiusCallback)
Sets the callback to set the border radius.default void
setBorderRadius(BarBorderRadius borderRadius)
Sets the border radius (in pixels).default void
setBorderShadowColor(String borderColor)
Sets the color of the border shadow of annotation.default void
setBorderShadowColor(ColorCallback<AnnotationContext> borderShadowColorCallback)
Sets the callback to set the color of the border shadow of annotation.default void
setBorderShadowColor(NativeCallback borderShadowColorCallback)
Sets the callback to set the color of the border shadow of annotation.default void
setBorderShadowColor(IsColor borderColor)
Sets the color of the border shadow of annotation.default void
setBorderWidth(int borderWidth)
Sets the width of the border in pixels.default void
setBorderWidth(NativeCallback borderWidthCallback)
Sets the callback to set the color of the width of the border in pixels.default void
setBorderWidth(WidthCallback<AnnotationContext> borderWidthCallback)
Sets the callback to set the color of the width of the border in pixels.default void
setClickCallback(ClickCallback clickCallback)
Sets the callback called when a "click" event is occurring.default void
setColor(String fontColor)
Sets the color of text as string.default void
setColor(ColorCallback<AnnotationContext> colorCallback)
Sets the callback to set the color of the text of label.default void
setColor(NativeCallback colorCallback)
Sets the callback to set the color of the text of label.default void
setColor(IsColor fontColor)
Sets the color of text.default void
setContent(String... content)
Sets the text to display in label.
Provide an array to display values on a new line.default void
setContent(List<String> content)
Sets the text to display in label.
Provide a list to display values on a new line.default void
setContent(ContentCallback contentCallback)
Sets the callback to set the text to display in label as list.default void
setContent(NativeCallback contentCallback)
Sets the callback to set the text to display in label as list.default void
setContent(Canvas content)
Sets the canvas to display in label.default void
setContent(Img content)
Sets the image to display in label.default void
setEnterCallback(EnterCallback enterCallback)
Sets the callback called when a "enter" event is occurring.default void
setFont(FontCallback<AnnotationContext> fontCallback)
Sets the font callback.default void
setFont(NativeCallback fontCallback)
Sets the font callback.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.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.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.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.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.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.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.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.default void
setLeaveCallback(LeaveCallback leaveCallback)
Sets the callback called when a "leave" event is occurring.default void
setPadding(NativeCallback paddingCallback)
Sets the callback to set the padding of label to add left and right.default void
setPadding(PaddingCallback<AnnotationContext> paddingCallback)
Sets the callback to set the padding of label.void
setPosition(LabelAlignPositionCallback positionCallback)
Sets the callback to set the anchor position of label on box.void
setPosition(NativeCallback positionCallback)
Sets the callback to set the anchor position of label on box.default void
setRotation(double radius)
Sets the rotation.default void
setRotation(NativeCallback rotationCallback)
Sets the callback to set the rotation.default void
setRotation(RotationCallback<AnnotationContext> rotationCallback)
Sets the callback to set the rotation.default void
setShadowBlur(double shadowBlur)
Sets the amount of blur applied to shadows.default void
setShadowBlur(ShadowBlurCallback shadowBlurCallback)
Sets the callback to set the amount of blur applied to shadows.default void
setShadowBlur(NativeCallback shadowBlurCallback)
Sets the callback to set the amount of blur applied to shadows.default void
setShadowOffsetX(int shadowOffset)
Sets the distance that shadows will be offset horizontally.default void
setShadowOffsetX(ShadowOffsetCallback shadowOffsetCallback)
Sets the callback to set the distance that shadows will be offset horizontally.default void
setShadowOffsetX(NativeCallback shadowOffsetCallback)
Sets the callback to set the distance that shadows will be offset horizontally.default void
setShadowOffsetY(int shadowOffset)
Sets the distance that shadows will be offset vertically.default void
setShadowOffsetY(ShadowOffsetCallback shadowOffsetCallback)
Sets the callback to set the distance that shadows will be offset vertically.default void
setShadowOffsetY(NativeCallback shadowOffsetCallback)
Sets the callback to set the distance that shadows will be offset vertically.default void
setTextAlign(NativeCallback alignCallback)
Sets the callback to set the horizontal alignment of the label text when multiple lines.default void
setTextAlign(TextAlignCallback<AnnotationContext> alignCallback)
Sets the callback to set the horizontal alignment of the label text when multiple lines.default void
setTextAlign(TextAlign align)
Sets the horizontal alignment of the label text when multiple lines.default void
setTextStrokeColor(String textStrokeColor)
Sets the color of the text stroke of annotation.default void
setTextStrokeColor(ColorCallback<AnnotationContext> textStrokeColorCallback)
Sets the callback to set the color of the text stroke of annotation.default void
setTextStrokeColor(NativeCallback textStrokeColorCallback)
Sets the callback to set the color of the text stroke of annotation.default void
setTextStrokeColor(IsColor textStrokeColor)
Sets the color of the text stroke of annotation.default void
setTextStrokeWidth(int textStrokeWidth)
Sets the width of the text stroke in pixels.default void
setTextStrokeWidth(NativeCallback textStrokeWidthCallback)
Sets the callback to set the color of the width of the text stroke in pixels.default void
setTextStrokeWidth(WidthCallback<AnnotationContext> textStrokeWidthCallback)
Sets the callback to set the color of the width of the text stroke in pixels.void
setXAdjust(double xAdjust)
Sets the adjustment along x-axis (left-right) of annotation relative to above number (can be negative).void
setXAdjust(AdjustSizeCallback adjustCallback)
Sets the callback to set the adjustment along y-axis (top-bottom) of annotation relative to above number (can be negative).void
setXAdjust(NativeCallback adjustCallback)
Sets the callback to set the adjustment along y-axis (top-bottom) of annotation relative to above number (can be negative).void
setXValue(double value)
Sets the data X value to draw the annotation at.void
setXValue(String value)
Sets the data X value to draw the annotation at.void
setXValue(Date value)
Sets the data X value to draw the annotation at.void
setXValue(ValueCallback valueCallback)
Sets the callback to set the data X value to draw the annotation at.void
setXValue(NativeCallback valueCallback)
Sets the callback to set the data X value to draw the annotation at.void
setYAdjust(double yAdjust)
Sets the adjustment along y-axis (top-bottom) of annotation relative to above number (can be negative).void
setYAdjust(AdjustSizeCallback adjustCallback)
Sets the callback to set the adjustment along x-axis (left-right) of annotation relative to above number (can be negative).void
setYAdjust(NativeCallback adjustCallback)
Sets the callback to set the adjustment along x-axis (left-right) of annotation relative to above number (can be negative).void
setYValue(double value)
Sets the data Y value to draw the annotation at.void
setYValue(String value)
Sets the data Y value to draw the annotation at.void
setYValue(Date value)
Sets the data Y value to draw the annotation at.void
setYValue(ValueCallback valueCallback)
Sets the callback to set the data Y value to draw the annotation at.void
setYValue(NativeCallback valueCallback)
Sets the callback to set the data Y value to draw the annotation at.-
Methods inherited from class org.pepstock.charba.client.annotation.AbstractAnnotation
getAdjustScaleRangeCallback, getBorderOptionsHandler, getDisplayCallback, getDrawTime, getDrawTimeCallback, getEventsHandler, getId, getShadowOptionsHandler, getType, getXMaxAsDate, getXMaxAsDouble, getXMaxAsString, getXMaxCallback, getXMinAsDate, getXMinAsDouble, getXMinAsString, getXMinCallback, getXScaleID, getYMaxAsDate, getYMaxAsDouble, getYMaxAsString, getYMaxCallback, getYMinAsDate, getYMinAsDouble, getYMinAsString, getYMinCallback, getYScaleID, getZ, getZCallback, isAdjustScaleRange, isDisplay, setAdjustScaleRange, setAdjustScaleRange, setAdjustScaleRange, setDisplay, setDisplay, setDisplay, setDrawTime, setDrawTime, setDrawTime, setXMax, setXMax, setXMax, setXMax, setXMax, setXMin, setXMin, setXMin, setXMin, setXMin, setXScaleID, setXScaleID, setYMax, setYMax, setYMax, setYMax, setYMax, setYMin, setYMin, setYMin, setYMin, setYMin, setYScaleID, setYScaleID, setZ, setZ, setZ
-
Methods inherited from class org.pepstock.charba.client.commons.AbstractNode
checkAndAddToParent, 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.NativeObjectContainer
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, 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_BORDER_WIDTH
public static final int DEFAULT_BORDER_WIDTH
Default label annotation border width, 0.- See Also:
- Constant Field Values
-
DEFAULT_BACKGROUND_COLOR
public static final IsColor DEFAULT_BACKGROUND_COLOR
Default label annotation background color,HtmlColor.TRANSPARENT
.
-
DEFAULT_BACKGROUND_COLOR_AS_STRING
public static final String DEFAULT_BACKGROUND_COLOR_AS_STRING
Default label annotation background color as string,HtmlColor.TRANSPARENT
.
-
DEFAULT_COLOR
public static final IsColor DEFAULT_COLOR
Default label text color,HtmlColor.WHITE
.
-
DEFAULT_COLOR_AS_STRING
public static final String DEFAULT_COLOR_AS_STRING
Default label font color as string, rgb(255, 255, 255).
-
DEFAULT_PADDING
public static final int DEFAULT_PADDING
Default label padding, 6.- See Also:
- Constant Field Values
-
DEFAULT_BORDER_RADIUS
public static final int DEFAULT_BORDER_RADIUS
Default label border radius, 6.- See Also:
- Constant Field Values
-
DEFAULT_BORDER_CAP_STYLE
public static final CapStyle DEFAULT_BORDER_CAP_STYLE
Default label border cap style,CapStyle.BUTT
.
-
DEFAULT_BORDER_JOIN_STYLE
public static final JoinStyle DEFAULT_BORDER_JOIN_STYLE
Default label border join style,JoinStyle.MITER
.
-
DEFAULT_TEXT_ALIGN
public static final TextAlign DEFAULT_TEXT_ALIGN
Default text align for labels,TextAlign.CENTER
.
-
DEFAULT_TEXT_STROKE_COLOR
public static final IsColor DEFAULT_TEXT_STROKE_COLOR
Default label annotation text stroke color,HtmlColor.TRANSPARENT
.
-
DEFAULT_TEXT_STROKE_COLOR_AS_STRING
public static final String DEFAULT_TEXT_STROKE_COLOR_AS_STRING
Default label annotation text stroke color as string,HtmlColor.TRANSPARENT
.
-
DEFAULT_TEXT_STROKE_WIDTH
public static final int DEFAULT_TEXT_STROKE_WIDTH
Default label annotation text stroke width, 0.- See Also:
- Constant Field Values
-
FACTORY
public static final ElementFactory<LabelAnnotation> FACTORY
Element factory to get ""labelAnnotation"" element.
-
DEFAULT_X_ADJUST
public static final double DEFAULT_X_ADJUST
Default annotation X adjust, 0.0.- See Also:
- Constant Field Values
-
DEFAULT_Y_ADJUST
public static final double DEFAULT_Y_ADJUST
Default annotation Y adjust, 0.0.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
LabelAnnotation
public LabelAnnotation()
Creates a label annotation to be added to anAnnotationOptions
instance.
The annotation id is calculated automatically.- See Also:
AnnotationType.createId()
-
LabelAnnotation
public LabelAnnotation(String id)
Creates a label annotation to be added to anAnnotationOptions
instance, using the ID passed as argument.- Parameters:
id
- annotation id to apply to the object, as string
-
LabelAnnotation
public LabelAnnotation(AnnotationId id)
Creates a label annotation to be added to anAnnotationOptions
instance, using the ID passed as argument.- Parameters:
id
- annotation id to apply to the object
-
LabelAnnotation
public LabelAnnotation(String id, IsChart chart)
Creates a label annotation to be added to anAnnotationOptions
instance, using the ID passed as argument.
The chart instance, passed as argument, must be the chart where the annotations will be applied and is used to get the whole default options in order to get the default for this object.- Parameters:
id
- annotation id to apply to the object, as stringchart
- chart instance related to the plugin options
-
LabelAnnotation
public LabelAnnotation(AnnotationId id, IsChart chart)
Creates a label annotation to be added to anAnnotationOptions
instance, using the ID passed as argument.
The chart instance, passed as argument, must be the chart where the annotations will be applied and is used to get the whole default options in order to get the default for this object.- Parameters:
id
- annotation id to apply to the objectchart
- chart instance related to the plugin options
-
-
Method Detail
-
getExtendedBorderOptionsHandler
public org.pepstock.charba.client.annotation.ExtendedBorderOptionsHandler getExtendedBorderOptionsHandler()
-
getBorderRadiusHandler
public org.pepstock.charba.client.annotation.BorderRadiusHandler getBorderRadiusHandler()
-
getLabelHandler
public org.pepstock.charba.client.annotation.LabelHandler getLabelHandler()
-
getRotationHandler
public org.pepstock.charba.client.annotation.RotationHandler getRotationHandler()
-
getTextStrokeOptionsHandler
public org.pepstock.charba.client.annotation.TextStrokeOptionsHandler getTextStrokeOptionsHandler()
-
getPosition
public AlignPosition getPosition()
Returns the anchor position of label on line.- Returns:
- the anchor position of label on line
-
getCallout
public Callout getCallout()
Returns the callout node.- Returns:
- the callout node
-
setPosition
public 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
-
setPosition
public 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
-
getPositionCallback
public 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
-
getXValueAsString
public default String getXValueAsString()
Returns the data X value to draw the annotation at.- Returns:
- the data X value to draw the annotation at
-
getXValueAsDouble
public default double getXValueAsDouble()
Returns the data X value to draw the annotation at.- Returns:
- the data X value to draw the annotation at
-
getXValueAsDate
public default Date getXValueAsDate()
Returns the data X value to draw the annotation at.- Returns:
- the data X value to draw the annotation at
-
getYValueAsString
public default String getYValueAsString()
Returns the data Y value to draw the annotation at.- Returns:
- the data Y value to draw the annotation at
-
getYValueAsDouble
public default double getYValueAsDouble()
Returns the data Y value to draw the annotation at.- Returns:
- the data Y value to draw the annotation at
-
getYValueAsDate
public default Date getYValueAsDate()
Returns the data Y value to draw the annotation at.- Returns:
- the data Y value to draw the annotation at
-
getXValueCallback
public default ValueCallback getXValueCallback()
Returns the callback called to set the data X value to draw the annotation at.- Returns:
- the callback called to set the data X value to draw the annotation at
-
getYValueCallback
public default ValueCallback getYValueCallback()
Returns the callback called to set the data Y value to draw the annotation at.- Returns:
- the callback called to set the data Y value to draw the annotation at
-
getXAdjust
public default double getXAdjust()
Returns the adjustment along x-axis (left-right) of annotation relative to above number (can be negative).- Returns:
- the adjustment along x-axis (left-right) of annotation
-
getYAdjust
public default double getYAdjust()
Returns the adjustment along y-axis (top-bottom) of annotation relative to above number (can be negative).- Returns:
- the adjustment along y-axis (top-bottom) of annotation
-
getXAdjustCallback
public default AdjustSizeCallback getXAdjustCallback()
Returns the callback called to set the adjustment along x-axis (left-right) of annotation relative to above number (can be negative).- Returns:
- the callback called to set the adjustment along x-axis (left-right) of annotation relative to above number (can be negative)
-
getYAdjustCallback
public default AdjustSizeCallback getYAdjustCallback()
Returns the callback called to set the adjustment along y-axis (top-bottom) of annotation relative to above number (can be negative).- Returns:
- the callback called to set the adjustment along y-axis (top-bottom) of annotation relative to above number (can be negative)
-
getType
public abstract AnnotationType getType()
Returns the type of annotation.- Returns:
- the type of annotation
-
isDisplay
public default boolean isDisplay()
Returnstrue
whether the annotation should be displayed.- Returns:
true
whether the annotation should be displayed
-
isAdjustScaleRange
public default boolean isAdjustScaleRange()
Returnstrue
whether the scale range should be adjusted if this annotation is out of range.- Returns:
true
whether the scale range should be adjusted if this annotation is out of range
-
getZ
public 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.
-
getDrawTime
public default DrawTime getDrawTime()
Returns the draw time which defines when the annotations are drawn.- Returns:
- the draw time which defines when the annotations are drawn
-
getDrawTimeCallback
public default DrawTimeCallback getDrawTimeCallback()
Returns the callback called to set the draw time which defines when the annotations are drawn.- Returns:
- the callback called to set the draw time which defines when the annotations are drawn
-
getDisplayCallback
public default SimpleDisplayCallback<AnnotationContext> getDisplayCallback()
Returns the callback called to set the display options.- Returns:
- the callback called to set the display options
-
getAdjustScaleRangeCallback
public default AdjustScaleRangeCallback getAdjustScaleRangeCallback()
Returns the callback called to set whether the scale range should be adjusted if this annotation is out of range.- Returns:
- the callback called to set whether the scale range should be adjusted if this annotation is out of range
-
getZCallback
public 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
-
getXScaleID
public default ScaleId getXScaleID()
Returns the ID of the X scale to bind onto.- Returns:
- the ID of the X scale to bind onto
-
getXMaxAsString
public default String getXMaxAsString()
Returns the right edge of the box.- Returns:
- the right edge of the box
-
getXMaxAsDouble
public default double getXMaxAsDouble()
Returns the right edge of the box.- Returns:
- the right edge of the box
-
getXMaxAsDate
public default Date getXMaxAsDate()
Returns the right edge of the box.- Returns:
- the right edge of the box
-
getXMinAsString
public default String getXMinAsString()
Returns the left edge of the box, in units along the x axis.- Returns:
- the left edge of the box
-
getXMinAsDouble
public default double getXMinAsDouble()
Returns the left edge of the box, in units along the x axis.- Returns:
- the left edge of the box
-
getXMinAsDate
public default Date getXMinAsDate()
Returns the left edge of the box, in units along the x axis.- Returns:
- the left edge of the box
-
getYScaleID
public default ScaleId getYScaleID()
Returns the ID of the Y scale to bind onto.- Returns:
- the ID of the Y scale to bind onto
-
getYMaxAsString
public default String getYMaxAsString()
Returns the top edge of the box in units along the y axis.- Returns:
- the top edge of the box in units along the y axis
-
getYMaxAsDouble
public default double getYMaxAsDouble()
Returns the top edge of the box in units along the y axis.- Returns:
- the top edge of the box in units along the y axis
-
getYMaxAsDate
public default Date getYMaxAsDate()
Returns the top edge of the box in units along the y axis.- Returns:
- the top edge of the box in units along the y axis
-
getYMinAsString
public default String getYMinAsString()
Returns the bottom edge of the box.- Returns:
- the bottom edge of the box
-
getYMinAsDouble
public default double getYMinAsDouble()
Returns the bottom edge of the box.- Returns:
- the bottom edge of the box
-
getYMinAsDate
public default Date getYMinAsDate()
Returns the bottom edge of the box.- Returns:
- the bottom edge of the box
-
getXMinCallback
public default ValueCallback getXMinCallback()
Returns the callback called to set the left edge of the box, in units along the x axis.- Returns:
- the callback called to set the left edge of the box, in units along the x axis
-
getXMaxCallback
public default ValueCallback getXMaxCallback()
Returns the callback called to set the right edge of the box.- Returns:
- the callback called to set the right edge of the box
-
getYMinCallback
public default ValueCallback getYMinCallback()
Returns the callback called to set the left edge of the box, in units along the x axis.- Returns:
- the callback called to set the left edge of the box, in units along the x axis
-
getYMaxCallback
public default ValueCallback getYMaxCallback()
Returns the callback called to set the right edge of the box.- Returns:
- the callback called to set the right edge of the box
-
getFont
public default IsFont getFont()
Returns the font element.- Returns:
- the font element.
-
getPadding
public default IsPadding getPadding()
Returns the padding element.- Returns:
- the padding element.
-
setColor
public default void setColor(IsColor fontColor)
Sets the color of text.- Parameters:
fontColor
- the color of text
-
setColor
public default void setColor(String fontColor)
Sets the color of text as string.- Parameters:
fontColor
- the color of text
-
getColorAsString
public default String getColorAsString()
Returns the color of text as string.- Returns:
- the color of text
-
getColor
public default IsColor getColor()
Returns the color of text.- Returns:
- the color of text
-
setContent
public 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
-
setContent
public 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
-
setContent
public default void setContent(Img content)
Sets the image to display in label.- Parameters:
content
- the image to display in label
-
setContent
public default void setContent(Canvas content)
Sets the canvas to display in label.- Parameters:
content
- the canvas to display in label
-
getContent
public default List<String> getContent()
Returns the text to display in label as list.- Returns:
- the text to display in label as list
-
getContentAsImage
public default Img getContentAsImage()
Returns the text to display in label as list.- Returns:
- the text to display in label as list
-
getContentAsCanvas
public default Canvas getContentAsCanvas()
Returns the text to display in label asCanvas
.- Returns:
- the text to display in label as
Canvas
-
setImageHeight
public 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 asImg
, in pixels in order to scale the image when drawn
-
setImageHeightAsPercentage
public 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 asImg
, in percentage (format is "{n}%") in order to scale the image when drawn
-
getImageHeight
public 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
-
getImageHeightAsPercentage
public 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
-
setImageWidth
public 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 asImg
, in pixels in order to scale the image when drawn
-
setImageWidthAsPercentage
public 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 asImg
, in percentage (format is "{n}%") in order to scale the image when drawn
-
getImageWidth
public 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
-
getImageWidthAsPercentage
public 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
-
setTextAlign
public 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
-
getTextAlign
public 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
-
getColorCallback
public 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
-
setColor
public 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
-
setColor
public 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
-
getContentCallback
public 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
-
setContent
public 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
-
setContent
public 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
-
getImageHeightCallback
public 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
-
setImageHeight
public 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 asImg
, in percentage (format is "{n}%") in order to scale the image when drawn
-
setImageHeight
public 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 asImg
, in percentage (format is "{n}%") in order to scale the image when drawn
-
getImageWidthCallback
public 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
-
setImageWidth
public 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 asImg
, in percentage (format is "{n}%") in order to scale the image when drawn
-
setImageWidth
public 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 asImg
, in percentage (format is "{n}%") in order to scale the image when drawn
-
getTextAlignCallback
public 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
-
setTextAlign
public 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
-
setTextAlign
public 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
-
getPaddingCallback
public default PaddingCallback<AnnotationContext> getPaddingCallback()
Returns the callback called to set the padding of label.- Specified by:
getPaddingCallback
in interfaceIsScriptablePaddingProvider<AnnotationContext>
- Returns:
- the callback called to set the padding of label
-
setPadding
public default void setPadding(PaddingCallback<AnnotationContext> paddingCallback)
Sets the callback to set the padding of label.- Specified by:
setPadding
in interfaceIsScriptablePaddingProvider<AnnotationContext>
- Parameters:
paddingCallback
- to set the padding of label
-
setPadding
public default void setPadding(NativeCallback paddingCallback)
Sets the callback to set the padding of label to add left and right.- Specified by:
setPadding
in interfaceIsScriptablePaddingProvider<AnnotationContext>
- Parameters:
paddingCallback
- to set the padding of label to add left and right
-
getFontCallback
public default FontCallback<AnnotationContext> getFontCallback()
Returns the font callback, if set, otherwisenull
.- Specified by:
getFontCallback
in interfaceIsScriptableFontProvider<AnnotationContext>
- Returns:
- the font callback, if set, otherwise
null
.
-
setFont
public default void setFont(FontCallback<AnnotationContext> fontCallback)
Sets the font callback.- Specified by:
setFont
in interfaceIsScriptableFontProvider<AnnotationContext>
- Parameters:
fontCallback
- the font callback to set
-
setFont
public default void setFont(NativeCallback fontCallback)
Sets the font callback.- Specified by:
setFont
in interfaceIsScriptableFontProvider<AnnotationContext>
- Parameters:
fontCallback
- the font callback to set
-
setBorderRadius
public default void setBorderRadius(int radius)
Sets the border radius.- Parameters:
radius
- the border radius.
-
setBorderRadius
public default void setBorderRadius(BarBorderRadius borderRadius)
Sets the border radius (in pixels).- Parameters:
borderRadius
- the border radius (in pixels).
-
getBorderRadius
public default int getBorderRadius()
Returns the border radius (in pixels).- Returns:
- the border radius (in pixels).
-
getBorderRadiusAsObject
public default BarBorderRadius getBorderRadiusAsObject()
Returns the border radius (in pixels).- Returns:
- the border radius (in pixels).
-
getBorderRadiusCallback
public default BorderRadiusCallback<AnnotationContext> getBorderRadiusCallback()
Returns the callback called to set the border radius.- Returns:
- the callback called to set the border radius
-
setBorderRadius
public default void setBorderRadius(BorderRadiusCallback<AnnotationContext> borderRadiusCallback)
Sets the callback to set the border radius.- Parameters:
borderRadiusCallback
- to set the border radius
-
setBorderRadius
public default void setBorderRadius(NativeCallback borderRadiusCallback)
Sets the callback to set the border radius.- Parameters:
borderRadiusCallback
- to set the border radius
-
setBorderCapStyle
public 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.
-
getBorderCapStyle
public default CapStyle getBorderCapStyle()
Returns how the end points of every line are drawn.- Returns:
- how the end points of every line are drawn.
-
setBorderJoinStyle
public 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
-
getBorderJoinStyle
public 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
-
getBorderCapStyleCallback
public default CapStyleCallback<AnnotationContext> getBorderCapStyleCallback()
Returns the border capstyle callback, if set, otherwisenull
.- Returns:
- the border capstyle callback, if set, otherwise
null
.
-
setBorderCapStyle
public default void setBorderCapStyle(CapStyleCallback<AnnotationContext> borderCapStyleCallback)
Sets the border capstyle callback.- Parameters:
borderCapStyleCallback
- the border capstyle callback.
-
setBorderCapStyle
public default void setBorderCapStyle(NativeCallback borderCapStyleCallback)
Sets the border capstyle callback.- Parameters:
borderCapStyleCallback
- the border capstyle callback.
-
getBorderJoinStyleCallback
public default JoinStyleCallback<AnnotationContext> getBorderJoinStyleCallback()
Returns the border join style callback, if set, otherwisenull
.- Returns:
- the border join style callback, if set, otherwise
null
.
-
setBorderJoinStyle
public default void setBorderJoinStyle(JoinStyleCallback<AnnotationContext> borderJoinStyleCallback)
Sets the border join style callback.- Parameters:
borderJoinStyleCallback
- the border join style callback.
-
setBorderJoinStyle
public default void setBorderJoinStyle(NativeCallback borderJoinStyleCallback)
Sets the border join style callback.- Parameters:
borderJoinStyleCallback
- the border join style callback.
-
setRotation
public default void setRotation(double radius)
Sets the rotation.- Parameters:
radius
- the rotation.
-
getRotation
public default double getRotation()
Returns the rotation (in pixels).- Returns:
- the rotation (in pixels).
-
getRotationCallback
public default RotationCallback<AnnotationContext> getRotationCallback()
Returns the callback called to set the rotation.- Returns:
- the callback called to set the rotation
-
setRotation
public default void setRotation(RotationCallback<AnnotationContext> rotationCallback)
Sets the callback to set the rotation.- Parameters:
rotationCallback
- to set the rotation
-
setRotation
public default void setRotation(NativeCallback rotationCallback)
Sets the callback to set the rotation.- Parameters:
rotationCallback
- to set the rotation
-
setTextStrokeColor
public default void setTextStrokeColor(IsColor textStrokeColor)
Sets the color of the text stroke of annotation.- Parameters:
textStrokeColor
- the color of the text stroke of annotation
-
setTextStrokeColor
public default void setTextStrokeColor(String textStrokeColor)
Sets the color of the text stroke of annotation.- Parameters:
textStrokeColor
- the color of the text stroke of annotation
-
getTextStrokeColorAsString
public default String getTextStrokeColorAsString()
Returns the color of the text stroke of annotation.- Returns:
- the color of the text stroke of annotation
-
getTextStrokeColor
public default IsColor getTextStrokeColor()
Returns the color of the text stroke of annotation.- Returns:
- the color of the text stroke of annotation
-
setTextStrokeWidth
public default void setTextStrokeWidth(int textStrokeWidth)
Sets the width of the text stroke in pixels.- Parameters:
textStrokeWidth
- the width of the text stroke in pixels.
-
getTextStrokeWidth
public default int getTextStrokeWidth()
Returns the width of the text stroke in pixels.- Returns:
- the width of the text stroke in pixels.
-
getTextStrokeColorCallback
public 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
-
setTextStrokeColor
public 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
-
setTextStrokeColor
public 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
-
getTextStrokeWidthCallback
public 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
-
setTextStrokeWidth
public 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
-
setTextStrokeWidth
public 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
-
getBackgroundColorHandler
public final org.pepstock.charba.client.annotation.BackgroundColorHandler getBackgroundColorHandler()
-
getExtendedShadowOptionsHandler
public final org.pepstock.charba.client.annotation.ExtendedShadowOptionsHandler getExtendedShadowOptionsHandler()
-
setXValue
public final void setXValue(String value)
Sets the data X value to draw the annotation at.- Parameters:
value
- the data X value to draw the annotation at
-
setXValue
public final void setXValue(double value)
Sets the data X value to draw the annotation at.- Parameters:
value
- the data X value to draw the annotation at
-
setXValue
public final void setXValue(Date value)
Sets the data X value to draw the annotation at.- Parameters:
value
- the data X value to draw the annotation at
-
getXValueAsString
public final String getXValueAsString()
Returns the data X value to draw the annotation at.- Returns:
- the data X value to draw the annotation at
-
getXValueAsDouble
public final double getXValueAsDouble()
Returns the data X value to draw the annotation at.- Returns:
- the data X value to draw the annotation at
-
getXValueAsDate
public final Date getXValueAsDate()
Returns the data X value to draw the annotation at.- Returns:
- the data X value to draw the annotation at
-
setYValue
public final void setYValue(String value)
Sets the data Y value to draw the annotation at.- Parameters:
value
- the data Y value to draw the annotation at
-
setYValue
public final void setYValue(double value)
Sets the data Y value to draw the annotation at.- Parameters:
value
- the data Y value to draw the annotation at
-
setYValue
public final void setYValue(Date value)
Sets the data Y value to draw the annotation at.- Parameters:
value
- the data Y value to draw the annotation at
-
getYValueAsString
public final String getYValueAsString()
Returns the data Y value to draw the annotation at.- Returns:
- the data Y value to draw the annotation at
-
getYValueAsDouble
public final double getYValueAsDouble()
Returns the data Y value to draw the annotation at.- Returns:
- the data Y value to draw the annotation at
-
getYValueAsDate
public final Date getYValueAsDate()
Returns the data Y value to draw the annotation at.- Returns:
- the data Y value to draw the annotation at
-
setYAdjust
public final void setYAdjust(double yAdjust)
Sets the adjustment along y-axis (top-bottom) of annotation relative to above number (can be negative).- Parameters:
yAdjust
- the adjustment along y-axis (top-bottom) of annotation
-
getYAdjust
public final double getYAdjust()
Returns the adjustment along y-axis (top-bottom) of annotation relative to above number (can be negative).- Returns:
- the adjustment along y-axis (top-bottom) of annotation
-
setXAdjust
public final void setXAdjust(double xAdjust)
Sets the adjustment along x-axis (left-right) of annotation relative to above number (can be negative).- Parameters:
xAdjust
- the adjustment along x-axis (left-right) of annotation
-
getXAdjust
public final double getXAdjust()
Returns the adjustment along x-axis (left-right) of annotation relative to above number (can be negative).- Returns:
- the adjustment along x-axis (left-right) of annotation
-
getXValueCallback
public final ValueCallback getXValueCallback()
Returns the callback called to set the data X value to draw the annotation at.- Returns:
- the callback called to set the data X value to draw the annotation at
-
setXValue
public final void setXValue(ValueCallback valueCallback)
Sets the callback to set the data X value to draw the annotation at.- Parameters:
valueCallback
- to set the data X value to draw the annotation at
-
setXValue
public final void setXValue(NativeCallback valueCallback)
Sets the callback to set the data X value to draw the annotation at.- Parameters:
valueCallback
- to set the data X value to draw the annotation at
-
getYValueCallback
public final ValueCallback getYValueCallback()
Returns the callback called to set the data Y value to draw the annotation at.- Returns:
- the callback called to set the data Y value to draw the annotation at
-
setYValue
public final void setYValue(ValueCallback valueCallback)
Sets the callback to set the data Y value to draw the annotation at.- Parameters:
valueCallback
- to set the data Y value to draw the annotation at
-
setYValue
public final void setYValue(NativeCallback valueCallback)
Sets the callback to set the data Y value to draw the annotation at.- Parameters:
valueCallback
- to set the data Y value to draw the annotation at
-
getYAdjustCallback
public final AdjustSizeCallback getYAdjustCallback()
Returns the callback called to set the adjustment along y-axis (top-bottom) of annotation relative to above number (can be negative).- Returns:
- the callback called to set the adjustment along y-axis (top-bottom) of annotation relative to above number (can be negative)
-
setYAdjust
public final void setYAdjust(AdjustSizeCallback adjustCallback)
Sets the callback to set the adjustment along x-axis (left-right) of annotation relative to above number (can be negative).- Parameters:
adjustCallback
- to set the adjustment along x-axis (left-right) of annotation relative to above number (can be negative)
-
setYAdjust
public final void setYAdjust(NativeCallback adjustCallback)
Sets the callback to set the adjustment along x-axis (left-right) of annotation relative to above number (can be negative).- Parameters:
adjustCallback
- to set the adjustment along x-axis (left-right) of annotation relative to above number (can be negative)
-
getXAdjustCallback
public final AdjustSizeCallback getXAdjustCallback()
Returns the callback called to set the adjustment along x-axis (left-right) of annotation relative to above number (can be negative).- Returns:
- the callback called to set the adjustment along x-axis (left-right) of annotation relative to above number (can be negative)
-
setXAdjust
public final void setXAdjust(AdjustSizeCallback adjustCallback)
Sets the callback to set the adjustment along y-axis (top-bottom) of annotation relative to above number (can be negative).- Parameters:
adjustCallback
- to set the adjustment along y-axis (top-bottom) of annotation relative to above number (can be negative)
-
setXAdjust
public final void setXAdjust(NativeCallback adjustCallback)
Sets the callback to set the adjustment along y-axis (top-bottom) of annotation relative to above number (can be negative).- Parameters:
adjustCallback
- to set the adjustment along y-axis (top-bottom) of annotation relative to above number (can be negative)
-
setBackgroundColor
public default void setBackgroundColor(IsColor backgroundColor)
Sets the color of the background of annotation.- Parameters:
backgroundColor
- the color of the background of annotation
-
setBackgroundColor
public default void setBackgroundColor(String backgroundColor)
Sets the color of the background of annotation.- Parameters:
backgroundColor
- the color of the background of annotation
-
getBackgroundColorAsString
public default String getBackgroundColorAsString()
Returns the color of the background of annotation.- Returns:
- the color of the background of annotation
-
getBackgroundColor
public default IsColor getBackgroundColor()
Returns the color of the background of annotation.- Returns:
- the color of the background of annotation
-
getBackgroundColorCallback
public 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
-
setBackgroundColor
public 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
-
setBackgroundColor
public 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
-
setBackgroundShadowColor
public default void setBackgroundShadowColor(IsColor backgroundColor)
Sets the color of the shadow of annotation.- Parameters:
backgroundColor
- the color of the shadow of annotation
-
setBackgroundShadowColor
public default void setBackgroundShadowColor(String backgroundColor)
Sets the color of the shadow of annotation.- Parameters:
backgroundColor
- the color of the shadow of annotation
-
getBackgroundShadowColorAsString
public default String getBackgroundShadowColorAsString()
Returns the color of the shadow of annotation.- Returns:
- the color of the shadow of annotation
-
getBackgroundShadowColor
public default IsColor getBackgroundShadowColor()
Returns the color of the shadow of annotation.- Returns:
- the color of the shadow of annotation
-
getBackgroundShadowColorCallback
public 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
-
setBackgroundShadowColor
public 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
-
setBackgroundShadowColor
public 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
-
setBorderColor
public default void setBorderColor(IsColor borderColor)
Sets the color of the border of annotation.- Parameters:
borderColor
- the color of the border of annotation
-
setBorderColor
public default void setBorderColor(String borderColor)
Sets the color of the border of annotation.- Parameters:
borderColor
- the color of the border of annotation
-
getBorderColorAsString
public default String getBorderColorAsString()
Returns the color of the border of annotation.- Returns:
- the color of the border of annotation
-
getBorderColor
public default IsColor getBorderColor()
Returns the color of the border of annotation.- Returns:
- the color of the border of annotation
-
setBorderWidth
public default void setBorderWidth(int borderWidth)
Sets the width of the border in pixels.- Parameters:
borderWidth
- the width of the border in pixels.
-
getBorderWidth
public default int getBorderWidth()
Returns the width of the border in pixels.- Returns:
- the width of the border in pixels.
-
setBorderDash
public 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.
-
getBorderDash
public 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.
-
setBorderDashOffset
public default void setBorderDashOffset(double borderDashOffset)
Sets the line dash pattern offset.- Parameters:
borderDashOffset
- the line dash pattern offset.
-
getBorderDashOffset
public default double getBorderDashOffset()
Returns the line dash pattern offset.- Returns:
- the line dash pattern offset.
-
getBorderColorCallback
public 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
-
setBorderColor
public 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
-
setBorderColor
public 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
-
getBorderWidthCallback
public 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
-
setBorderWidth
public 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
-
setBorderWidth
public 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
-
getBorderDashCallback
public 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
-
setBorderDash
public 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
-
setBorderDash
public 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
-
getBorderDashOffsetCallback
public 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
-
setBorderDashOffset
public 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
-
setBorderDashOffset
public default void setBorderDashOffset(NativeCallback borderDashOffsetCallback)
Sets the callback to set the line dash pattern offset.- Parameters:
borderDashOffsetCallback
- to set the line dash pattern offset
-
setBorderShadowColor
public default void setBorderShadowColor(IsColor borderColor)
Sets the color of the border shadow of annotation.- Parameters:
borderColor
- the color of the border shadow of annotation
-
setBorderShadowColor
public default void setBorderShadowColor(String borderColor)
Sets the color of the border shadow of annotation.- Parameters:
borderColor
- the color of the border shadow of annotation
-
getBorderShadowColorAsString
public default String getBorderShadowColorAsString()
Returns the color of the border shadow of annotation.- Returns:
- the color of the border shadow of annotation
-
getBorderShadowColor
public default IsColor getBorderShadowColor()
Returns the color of the border shadow of annotation.- Returns:
- the color of the border shadow of annotation
-
setShadowBlur
public default void setShadowBlur(double shadowBlur)
Sets the amount of blur applied to shadows.- Parameters:
shadowBlur
- the amount of blur applied to shadows
-
getShadowBlur
public default double getShadowBlur()
Returns the amount of blur applied to shadows.- Returns:
- the amount of blur applied to shadows
-
setShadowOffsetX
public default void setShadowOffsetX(int shadowOffset)
Sets the distance that shadows will be offset horizontally.- Parameters:
shadowOffset
- the distance that shadows will be offset horizontally.
-
getShadowOffsetX
public default int getShadowOffsetX()
Returns the distance that shadows will be offset horizontally.- Returns:
- the distance that shadows will be offset horizontally.
-
setShadowOffsetY
public default void setShadowOffsetY(int shadowOffset)
Sets the distance that shadows will be offset vertically.- Parameters:
shadowOffset
- the distance that shadows will be offset vertically.
-
getShadowOffsetY
public default int getShadowOffsetY()
Returns the distance that shadows will be offset vertically.- Returns:
- the distance that shadows will be offset vertically.
-
getBorderShadowColorCallback
public 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
-
setBorderShadowColor
public 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
-
setBorderShadowColor
public 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
-
getShadowBlurCallback
public 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.
-
setShadowBlur
public 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.
-
setShadowBlur
public 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.
-
getShadowOffsetXCallback
public 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.
-
setShadowOffsetX
public 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.
-
setShadowOffsetX
public 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.
-
getShadowOffsetYCallback
public 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.
-
setShadowOffsetY
public 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.
-
setShadowOffsetY
public 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.
-
getEnterCallback
public default EnterCallback getEnterCallback()
Returns the callback called when a "enter" event is occurring.- Returns:
- the callback called when a "enter" event is occurring
-
setEnterCallback
public default void setEnterCallback(EnterCallback enterCallback)
Sets the callback called when a "enter" event is occurring.- Parameters:
enterCallback
- the callback called when a "enter" event is occurring
-
getLeaveCallback
public default LeaveCallback getLeaveCallback()
Returns the callback called when a "leave" event is occurring.- Returns:
- the callback called when a "leave" event is occurring
-
setLeaveCallback
public default void setLeaveCallback(LeaveCallback leaveCallback)
Sets the callback called when a "leave" event is occurring.- Parameters:
leaveCallback
- the callback called when a "leave" event is occurring
-
getClickCallback
public default ClickCallback getClickCallback()
Returns the callback called when a "click" event is occurring.- Returns:
- the callback called when a "click" event is occurring
-
setClickCallback
public default void setClickCallback(ClickCallback clickCallback)
Sets the callback called when a "click" event is occurring.- Parameters:
clickCallback
- the callback called when a "click" event is occurring
-
-