Class BoxAnnotation
- 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.BoxAnnotation
-
public final class BoxAnnotation extends AbstractAnnotation
Implements a BOX annotation which draws a box in the a chart.
If one of the axes is not specified, the box will take the entire chart dimension.
The 4 coordinates, xMin, xMax, yMin, yMax are optional. If not specified, the box is expanded out to the edges.- Author:
- Andrea "Stock" Stocchero
-
-
Field Summary
Fields Modifier and Type Field Description static CapStyleDEFAULT_BORDER_CAP_STYLEDefault box annotation border cap style,CapStyle.BUTT.static JoinStyleDEFAULT_BORDER_JOIN_STYLEDefault box annotation border join style,JoinStyle.MITER.static intDEFAULT_BORDER_RADIUSDefault box annotation border radius, 0.static intDEFAULT_BORDER_WIDTHDefault box annotation border width, 1.-
Fields inherited from class org.pepstock.charba.client.annotation.AbstractAnnotation
DEFAULT_ADJUST_SCALE_RANGE, DEFAULT_DISPLAY
-
-
Constructor Summary
Constructors Constructor Description BoxAnnotation()Creates a box annotation to be added to anAnnotationOptionsinstance.
The annotation id is calculated automatically.BoxAnnotation(String id)Creates a box annotation to be added to anAnnotationOptionsinstance, using the ID passed as argument.BoxAnnotation(String id, IsChart chart)Creates a box annotation to be added to anAnnotationOptionsinstance, 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.BoxAnnotation(AnnotationId id)Creates a box annotation to be added to anAnnotationOptionsinstance, using the ID passed as argument.BoxAnnotation(AnnotationId id, IsChart chart)Creates a box annotation to be added to anAnnotationOptionsinstance, 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 AdjustScaleRangeCallbackgetAdjustScaleRangeCallback()Returns the callback called to set whether the scale range should be adjusted if this annotation is out of range.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.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.default ClickCallbackgetClickCallback()Returns the callback called when a "click" event is occurring.default DisplayCallback<AnnotationContext>getDisplayCallback()Returns the callback called to set the display options.default DoubleClickCallbackgetDoubleClickCallback()Returns the callback called when a "dblclick" event is occurring.default DrawTimegetDrawTime()Returns the draw time which defines when the annotations are drawn.default DrawTimeCallbackgetDrawTimeCallback()Returns the callback called to set the draw time which defines when the annotations are drawn.default EnterCallbackgetEnterCallback()Returns the callback called when a "enter" event is occurring.org.pepstock.charba.client.annotation.ExtendedBorderOptionsHandlergetExtendedBorderOptionsHandler()org.pepstock.charba.client.annotation.ExtendedShadowOptionsHandlergetExtendedShadowOptionsHandler()BoxLabelgetLabel()Returns the label on the line.default LeaveCallbackgetLeaveCallback()Returns the callback called when a "leave" event is occurring.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.AnnotationTypegetType()Returns the type of annotation.default DategetXMaxAsDate()Returns the right edge of the box.default doublegetXMaxAsDouble()Returns the right edge of the box.default StringgetXMaxAsString()Returns the right edge of the box.default ValueCallbackgetXMaxCallback()Returns the callback called to set the right edge of the box.default DategetXMinAsDate()Returns the left edge of the box, in units along the x axis.default doublegetXMinAsDouble()Returns the left edge of the box, in units along the x axis.default StringgetXMinAsString()Returns the left edge of the box, in units along the x axis.default ValueCallbackgetXMinCallback()Returns the callback called to set the left edge of the box, in units along the x axis.default ScaleIdgetXScaleID()Returns the ID of the X scale to bind onto.default DategetYMaxAsDate()Returns the top edge of the box in units along the y axis.default doublegetYMaxAsDouble()Returns the top edge of the box in units along the y axis.default StringgetYMaxAsString()Returns the top edge of the box in units along the y axis.default ValueCallbackgetYMaxCallback()Returns the callback called to set the right edge of the box.default DategetYMinAsDate()Returns the bottom edge of the box.default doublegetYMinAsDouble()Returns the bottom edge of the box.default StringgetYMinAsString()Returns the bottom edge of the box.default ValueCallbackgetYMinCallback()Returns the callback called to set the left edge of the box, in units along the x axis.default ScaleIdgetYScaleID()Returns the ID of the Y scale to bind onto.default booleanisAdjustScaleRange()Returnstruewhether the scale range should be adjusted if this annotation is out of range.default booleanisDisplay()Returnstruewhether the annotation should be displayed.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 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.-
Methods inherited from class org.pepstock.charba.client.annotation.AbstractAnnotation
getAdjustScaleRangeCallback, getBorderOptionsHandler, getClickCallback, getDisplayCallback, getDoubleClickCallback, getDrawTime, getDrawTimeCallback, getEnterCallback, getId, getLeaveCallback, getShadowOptionsHandler, getType, getXMaxAsDate, getXMaxAsDouble, getXMaxAsString, getXMaxCallback, getXMinAsDate, getXMinAsDouble, getXMinAsString, getXMinCallback, getXScaleID, getYMaxAsDate, getYMaxAsDouble, getYMaxAsString, getYMaxCallback, getYMinAsDate, getYMinAsDouble, getYMinAsString, getYMinCallback, getYScaleID, isAdjustScaleRange, isDisplay, setAdjustScaleRange, setAdjustScaleRange, setAdjustScaleRange, setClickCallback, setDisplay, setDisplay, setDisplay, setDoubleClickCallback, setDrawTime, setDrawTime, setDrawTime, setEnterCallback, setLeaveCallback, setXMax, setXMax, setXMax, setXMax, setXMax, setXMin, setXMin, setXMin, setXMin, setXMin, setXScaleID, setXScaleID, setYMax, setYMax, setYMax, setYMax, setYMax, setYMin, setYMin, setYMin, setYMin, setYMin, setYScaleID, setYScaleID
-
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, 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, 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 box annotation border width, 1.- See Also:
- Constant Field Values
-
DEFAULT_BORDER_RADIUS
public static final int DEFAULT_BORDER_RADIUS
Default box annotation border radius, 0.- See Also:
- Constant Field Values
-
DEFAULT_BORDER_CAP_STYLE
public static final CapStyle DEFAULT_BORDER_CAP_STYLE
Default box annotation border cap style,CapStyle.BUTT.
-
DEFAULT_BORDER_JOIN_STYLE
public static final JoinStyle DEFAULT_BORDER_JOIN_STYLE
Default box annotation border join style,JoinStyle.MITER.
-
-
Constructor Detail
-
BoxAnnotation
public BoxAnnotation()
Creates a box annotation to be added to anAnnotationOptionsinstance.
The annotation id is calculated automatically.- See Also:
AnnotationType.createId()
-
BoxAnnotation
public BoxAnnotation(String id)
Creates a box annotation to be added to anAnnotationOptionsinstance, using the ID passed as argument.- Parameters:
id- annotation id to apply to the object, as string
-
BoxAnnotation
public BoxAnnotation(AnnotationId id)
Creates a box annotation to be added to anAnnotationOptionsinstance, using the ID passed as argument.- Parameters:
id- annotation id to apply to the object
-
BoxAnnotation
public BoxAnnotation(String id, IsChart chart)
Creates a box annotation to be added to anAnnotationOptionsinstance, 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
-
BoxAnnotation
public BoxAnnotation(AnnotationId id, IsChart chart)
Creates a box annotation to be added to anAnnotationOptionsinstance, 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
-
getBackgroundColorHandler
public org.pepstock.charba.client.annotation.BackgroundColorHandler getBackgroundColorHandler()
-
getBorderRadiusHandler
public org.pepstock.charba.client.annotation.BorderRadiusHandler getBorderRadiusHandler()
-
getExtendedBorderOptionsHandler
public org.pepstock.charba.client.annotation.ExtendedBorderOptionsHandler getExtendedBorderOptionsHandler()
-
getExtendedShadowOptionsHandler
public org.pepstock.charba.client.annotation.ExtendedShadowOptionsHandler getExtendedShadowOptionsHandler()
-
getLabel
public BoxLabel getLabel()
Returns the label on the line.- Returns:
- the label on the line
-
getType
public abstract AnnotationType getType()
Returns the type of annotation.- Returns:
- the type of annotation
-
isDisplay
public default boolean isDisplay()
Returnstruewhether the annotation should be displayed.- Returns:
truewhether the annotation should be displayed
-
isAdjustScaleRange
public default boolean isAdjustScaleRange()
Returnstruewhether the scale range should be adjusted if this annotation is out of range.- Returns:
truewhether the scale range should be adjusted if this annotation is out of range
-
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
-
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
-
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
-
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
-
getDoubleClickCallback
public default DoubleClickCallback getDoubleClickCallback()
Returns the callback called when a "dblclick" event is occurring.- Returns:
- the callback called when a "dblclick" event is occurring
-
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 DisplayCallback<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
-
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
-
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
-
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.
-
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.
-
-