Class Tooltips
- java.lang.Object
-
- org.pepstock.charba.client.commons.NativeObjectContainer
-
- org.pepstock.charba.client.commons.AbstractNode
-
- org.pepstock.charba.client.options.AbstractModel<P,D>
-
- org.pepstock.charba.client.options.Tooltips
-
- All Implemented Interfaces:
IsDefaultAnimationContainer,IsDefaultAnimationTransition,IsDefaultBoxHandler,IsDefaultEventHandler,IsDefaultTextDirectionHandler,IsDefaultTooltips,HasAnimationOptions,HasEvents
public final class Tooltips extends AbstractModel<P,D> implements IsDefaultTooltips, HasAnimationOptions, HasEvents
Configuration element to set all attributes and features of the default tooltip.- Author:
- Andrea "Stock" Stocchero
-
-
Method Summary
All Methods Instance Methods Concrete Methods Default Methods Modifier and Type Method Description AnimationContainergetAnimationContainer()Returns an animation container instance to use in the default methods of this interface.IsColorgetBackgroundColor()Returns the background color of the tooltip.StringgetBackgroundColorAsString()Returns the background color of the tooltip.TextAligngetBodyAlign()Returns the body alignment.IsColorgetBodyColor()Returns the body font color.StringgetBodyColorAsString()Returns the body font color as string.FontgetBodyFont()Returns the body font element.intgetBodySpacing()Returns the spacing to add to top and bottom of each tooltip item.IsColorgetBorderColor()Returns the color of the border.StringgetBorderColorAsString()Returns the color of the border.intgetBorderWidth()Returns the size of the border.org.pepstock.charba.client.options.BoxHandlergetBoxHandler()default intgetBoxHeight()Returns the height of colored box.intgetBoxPadding()Returns the padding between the color box and the text.default intgetBoxWidth()Returns the width of colored box.TooltipsCallbacksgetCallbacks()Returns the callbacks element.intgetCaretPadding()Returns the extra distance to move the end of the tooltip arrow away from the tooltip point.intgetCaretSize()Returns the size, in pixels, of the tooltip arrow.intgetCornerRadius()Returns the radius of tooltip corner curves.BarBorderRadiusgetCornerRadiusAsObject()Returns the radius of tooltip corner curves.EventsOptionHandlergetEventsOptionHandler()Returns a event handler handler instance to use in the default methods of this interface.TextAligngetFooterAlign()Returns the body alignment.IsColorgetFooterColor()Returns the footer font color.StringgetFooterColorAsString()Returns the footer font color as string.FontgetFooterFont()Returns the footer font element.intgetFooterMarginTop()Returns the margin to add before drawing the footer.intgetFooterSpacing()Returns the spacing to add to top and bottom of each footer line.InteractionModegetMode()Returns which elements appear in the interaction.IsColorgetMultiKeyBackground()Returns the color to draw behind the colored boxes when multiple items are in the tooltip.StringgetMultiKeyBackgroundAsString()Returns the color to draw behind the colored boxes when multiple items are in the tooltip.PaddinggetPadding()Returns the padding element.IsTooltipPositiongetPosition()Returns the mode for positioning the tooltip.default TextDirectiongetTextDirection()Returns the text direction that will force on the canvas for rendering the object, regardless of the CSS specified on the canvas.org.pepstock.charba.client.options.TextDirectionHandlergetTextDirectionHandler()TextAligngetTitleAlign()Returns the title alignment.IsColorgetTitleColor()Returns the title font color.StringgetTitleColorAsString()Returns the title font color as string.FontgetTitleFont()Returns the title font element.intgetTitleMarginBottom()Returns the margin to add on bottom of title section.intgetTitleSpacing()Returns the spacing to add to top and bottom of each title line.TooltipAligngetXAlign()Returns the alignment of the tooltip caret in the X direction.TooltipAligngetYAlign()Returns the alignment of the tooltip caret in the Y direction.booleanisDisplayColors()Iftrue, color boxes are shown in the tooltip.booleanisEnabled()Returnstrueif tooltips are enabled.booleanisIntersect()iftrue, the mode only applies when the mouse position intersects an item on the chart.default booleanisRtl()Returnstruefor rendering the object from right to left.booleanisUsePointStyle()Returns if to use the corresponding point style (from dataset options) instead of color boxes (size is based on the minimum value between boxWidth and boxHeight).voidsetBackgroundColor(String backgroundColor)Sets the background color of the tooltip.voidsetBackgroundColor(IsColor backgroundColor)Sets the background color of the tooltip.voidsetBodyAlign(TextAlign align)Sets the body alignment.voidsetBodyColor(String color)Sets the body font color.voidsetBodyColor(IsColor color)Sets the body font color.voidsetBodySpacing(int bodySpacing)Sets the spacing to add to top and bottom of each tooltip item.voidsetBorderColor(String borderColor)Sets the color of the border.voidsetBorderColor(IsColor borderColor)Sets the color of the border.voidsetBorderWidth(int borderWidth)Sets the size of the border.default voidsetBoxHeight(int boxHeight)Sets the height of colored box.voidsetBoxPadding(int boxPadding)Sets the padding between the color box and the text.default voidsetBoxWidth(int boxWidth)Sets the width of colored box.voidsetCaretPadding(int caretPadding)Sets the extra distance to move the end of the tooltip arrow away from the tooltip point.voidsetCaretSize(int caretSize)Sets the size, in pixels, of the tooltip arrow.voidsetCornerRadius(int cornerRadius)Sets the radius of tooltip corner curves.voidsetCornerRadius(BarBorderRadius cornerRadius)Sets the radius of tooltip corner curves.voidsetDisplayColors(boolean displayColors)Iftrue, color boxes are shown in the tooltip.voidsetEnabled(boolean enabled)Setstrueif tooltips are enabled.voidsetFooterAlign(TextAlign align)Sets the footer alignment.voidsetFooterColor(String color)Sets the footer font color.voidsetFooterColor(IsColor color)Sets the footer font color.voidsetFooterMarginTop(int footerMarginTop)Sets the margin to add before drawing the footer.voidsetFooterSpacing(int footerSpacing)Sets the spacing to add to top and bottom of each footer line.voidsetIntersect(boolean intersect)iftrue, the only applies when the mouse position intersects an item on the chart.voidsetMode(InteractionMode mode)Sets which elements appear in the interaction.voidsetMultiKeyBackground(String multiKeyBackground)Sets the color to draw behind the colored boxes when multiple items are in the tooltip.voidsetMultiKeyBackground(IsColor multiKeyBackground)Sets the color to draw behind the colored boxes when multiple items are in the tooltip.voidsetPosition(IsTooltipPosition position)Sets the mode for positioning the tooltip.default voidsetRtl(boolean rtl)Setstruefor rendering the tooltips from right to left.default voidsetTextDirection(TextDirection textDirection)Sets the text direction of the tooltips that will force the text direction on the canvas for rendering the tooltips, regardless of the CSS specified on the canvas.voidsetTitleAlign(TextAlign align)Sets the title alignment.voidsetTitleColor(String color)Sets the title font color.voidsetTitleColor(IsColor color)Sets the title font color.voidsetTitleMarginBottom(int titleMarginBottom)Sets the margin to add on bottom of title section.voidsetTitleSpacing(int titleSpacing)Sets the spacing to add to top and bottom of each title line.voidsetUsePointStyle(boolean usePointStyle)Sets if to use the corresponding point style (from dataset options) instead of color boxes (size is based on the minimum value between boxWidth and boxHeight).voidsetXAlign(TooltipAlign align)Sets the alignment of the tooltip caret in the X direction.voidsetYAlign(TooltipAlign align)Sets the alignment of the tooltip caret in the Y direction.-
Methods inherited from class org.pepstock.charba.client.options.AbstractModel
getDefaultValues, getParent, loadPadding, setCallbackToModel, setCallbackToModel, setEventToModel
-
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
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.pepstock.charba.client.options.HasAnimationOptions
getAnimation, getAnimations, getTransitions, isAnimationEnabled, setAnimationEnabled
-
Methods inherited from interface org.pepstock.charba.client.options.HasEvents
getEvents, setEvents, setEvents
-
Methods inherited from interface org.pepstock.charba.client.defaults.IsDefaultTooltips
getMode, isIntersect
-
-
-
-
Method Detail
-
getBoxHandler
public org.pepstock.charba.client.options.BoxHandler getBoxHandler()
-
getEventsOptionHandler
public EventsOptionHandler getEventsOptionHandler()
Description copied from interface:HasEventsReturns a event handler handler instance to use in the default methods of this interface.- Specified by:
getEventsOptionHandlerin interfaceHasEvents- Returns:
- a event handler handler instance
-
getTextDirectionHandler
public org.pepstock.charba.client.options.TextDirectionHandler getTextDirectionHandler()
-
getAnimationContainer
public AnimationContainer getAnimationContainer()
Description copied from interface:HasAnimationOptionsReturns an animation container instance to use in the default methods of this interface.- Specified by:
getAnimationContainerin interfaceHasAnimationOptions- Returns:
- an animation container instance
-
getCallbacks
public TooltipsCallbacks getCallbacks()
Returns the callbacks element.- Returns:
- the callbacks
-
getPadding
public Padding getPadding()
Returns the padding element.- Specified by:
getPaddingin interfaceIsDefaultTooltips- Returns:
- the padding
-
setEnabled
public void setEnabled(boolean enabled)
Setstrueif tooltips are enabled.- Parameters:
enabled-trueif tooltips are enabled.
-
isEnabled
public boolean isEnabled()
Returnstrueif tooltips are enabled.- Specified by:
isEnabledin interfaceIsDefaultTooltips- Returns:
trueif tooltips are enabled.
-
setPosition
public void setPosition(IsTooltipPosition position)
Sets the mode for positioning the tooltip.- Parameters:
position- the mode for positioning the tooltip.
-
getPosition
public IsTooltipPosition getPosition()
Returns the mode for positioning the tooltip.- Specified by:
getPositionin interfaceIsDefaultTooltips- Returns:
- mode for positioning the tooltip.
-
setBackgroundColor
public void setBackgroundColor(IsColor backgroundColor)
Sets the background color of the tooltip.- Parameters:
backgroundColor- background color of the tooltip.
-
setBackgroundColor
public void setBackgroundColor(String backgroundColor)
Sets the background color of the tooltip.- Parameters:
backgroundColor- background color of the tooltip.
-
getBackgroundColorAsString
public String getBackgroundColorAsString()
Returns the background color of the tooltip.- Specified by:
getBackgroundColorAsStringin interfaceIsDefaultTooltips- Returns:
- background color of the tooltip.
-
getBackgroundColor
public IsColor getBackgroundColor()
Returns the background color of the tooltip.- Returns:
- background color of the tooltip.
-
setXAlign
public void setXAlign(TooltipAlign align)
Sets the alignment of the tooltip caret in the X direction.- Parameters:
align- the alignment of the tooltip caret in the X direction.
-
getXAlign
public TooltipAlign getXAlign()
Returns the alignment of the tooltip caret in the X direction.- Specified by:
getXAlignin interfaceIsDefaultTooltips- Returns:
- the alignment of the tooltip caret in the X direction
-
setYAlign
public void setYAlign(TooltipAlign align)
Sets the alignment of the tooltip caret in the Y direction.- Parameters:
align- the alignment of the tooltip caret in the Y direction.
-
getYAlign
public TooltipAlign getYAlign()
Returns the alignment of the tooltip caret in the Y direction.- Specified by:
getYAlignin interfaceIsDefaultTooltips- Returns:
- the alignment of the tooltip caret in the Y direction
-
getTitleFont
public Font getTitleFont()
Returns the title font element.- Specified by:
getTitleFontin interfaceIsDefaultTooltips- Returns:
- the font
-
setTitleColor
public void setTitleColor(IsColor color)
Sets the title font color.- Parameters:
color- title font color.
-
setTitleColor
public void setTitleColor(String color)
Sets the title font color.- Parameters:
color- title font color.
-
getTitleColorAsString
public String getTitleColorAsString()
Returns the title font color as string.- Specified by:
getTitleColorAsStringin interfaceIsDefaultTooltips- Returns:
- title font color as string
-
getTitleColor
public IsColor getTitleColor()
Returns the title font color.- Returns:
- title font color
-
setTitleAlign
public void setTitleAlign(TextAlign align)
Sets the title alignment.- Parameters:
align- title alignment.
-
getTitleAlign
public TextAlign getTitleAlign()
Returns the title alignment.- Specified by:
getTitleAlignin interfaceIsDefaultTooltips- Returns:
- title alignment.
-
setTitleSpacing
public void setTitleSpacing(int titleSpacing)
Sets the spacing to add to top and bottom of each title line.- Parameters:
titleSpacing- spacing to add to top and bottom of each title line.
-
getTitleSpacing
public int getTitleSpacing()
Returns the spacing to add to top and bottom of each title line.- Specified by:
getTitleSpacingin interfaceIsDefaultTooltips- Returns:
- spacing to add to top and bottom of each title line.
-
setTitleMarginBottom
public void setTitleMarginBottom(int titleMarginBottom)
Sets the margin to add on bottom of title section.- Parameters:
titleMarginBottom- margin to add on bottom of title section.
-
getTitleMarginBottom
public int getTitleMarginBottom()
Returns the margin to add on bottom of title section.- Specified by:
getTitleMarginBottomin interfaceIsDefaultTooltips- Returns:
- margin to add on bottom of title section.
-
getBodyFont
public Font getBodyFont()
Returns the body font element.- Specified by:
getBodyFontin interfaceIsDefaultTooltips- Returns:
- the font
-
setBodyColor
public void setBodyColor(IsColor color)
Sets the body font color.- Parameters:
color- body font color.
-
setBodyColor
public void setBodyColor(String color)
Sets the body font color.- Parameters:
color- body font color.
-
getBodyColorAsString
public String getBodyColorAsString()
Returns the body font color as string.- Specified by:
getBodyColorAsStringin interfaceIsDefaultTooltips- Returns:
- body font color as string
-
getBodyColor
public IsColor getBodyColor()
Returns the body font color.- Returns:
- body font color
-
setBodyAlign
public void setBodyAlign(TextAlign align)
Sets the body alignment.- Parameters:
align- body alignment.
-
getBodyAlign
public TextAlign getBodyAlign()
Returns the body alignment.- Specified by:
getBodyAlignin interfaceIsDefaultTooltips- Returns:
- body alignment.
-
setBodySpacing
public void setBodySpacing(int bodySpacing)
Sets the spacing to add to top and bottom of each tooltip item.- Parameters:
bodySpacing- spacing to add to top and bottom of each tooltip item.
-
getBodySpacing
public int getBodySpacing()
Returns the spacing to add to top and bottom of each tooltip item.- Specified by:
getBodySpacingin interfaceIsDefaultTooltips- Returns:
- spacing to add to top and bottom of each tooltip item.
-
getFooterFont
public Font getFooterFont()
Returns the footer font element.- Specified by:
getFooterFontin interfaceIsDefaultTooltips- Returns:
- the font
-
setFooterColor
public void setFooterColor(IsColor color)
Sets the footer font color.- Parameters:
color- footer font color.
-
setFooterColor
public void setFooterColor(String color)
Sets the footer font color.- Parameters:
color- footer font color.
-
getFooterColorAsString
public String getFooterColorAsString()
Returns the footer font color as string.- Specified by:
getFooterColorAsStringin interfaceIsDefaultTooltips- Returns:
- footer font color as string
-
getFooterColor
public IsColor getFooterColor()
Returns the footer font color.- Returns:
- footer font color
-
setFooterAlign
public void setFooterAlign(TextAlign align)
Sets the footer alignment.- Parameters:
align- footer alignment.
-
getFooterAlign
public TextAlign getFooterAlign()
Returns the body alignment.- Specified by:
getFooterAlignin interfaceIsDefaultTooltips- Returns:
- footer alignment.
-
setFooterSpacing
public void setFooterSpacing(int footerSpacing)
Sets the spacing to add to top and bottom of each footer line.- Parameters:
footerSpacing- spacing to add to top and bottom of each footer line.
-
getFooterSpacing
public int getFooterSpacing()
Returns the spacing to add to top and bottom of each footer line.- Specified by:
getFooterSpacingin interfaceIsDefaultTooltips- Returns:
- spacing to add to top and bottom of each footer line.
-
setFooterMarginTop
public void setFooterMarginTop(int footerMarginTop)
Sets the margin to add before drawing the footer.- Parameters:
footerMarginTop- margin to add before drawing the footer.
-
getFooterMarginTop
public int getFooterMarginTop()
Returns the margin to add before drawing the footer.- Specified by:
getFooterMarginTopin interfaceIsDefaultTooltips- Returns:
- margin to add before drawing the footer.
-
setCaretPadding
public void setCaretPadding(int caretPadding)
Sets the extra distance to move the end of the tooltip arrow away from the tooltip point.- Parameters:
caretPadding- extra distance to move the end of the tooltip arrow away from the tooltip point.
-
getCaretPadding
public int getCaretPadding()
Returns the extra distance to move the end of the tooltip arrow away from the tooltip point.- Specified by:
getCaretPaddingin interfaceIsDefaultTooltips- Returns:
- extra distance to move the end of the tooltip arrow away from the tooltip point.
-
setCaretSize
public void setCaretSize(int caretSize)
Sets the size, in pixels, of the tooltip arrow.- Parameters:
caretSize- size, in pixels, of the tooltip arrow.
-
getCaretSize
public int getCaretSize()
Returns the size, in pixels, of the tooltip arrow.- Specified by:
getCaretSizein interfaceIsDefaultTooltips- Returns:
- size, in pixels, of the tooltip arrow.
-
setCornerRadius
public void setCornerRadius(int cornerRadius)
Sets the radius of tooltip corner curves.- Parameters:
cornerRadius- radius of tooltip corner curves.
-
setCornerRadius
public void setCornerRadius(BarBorderRadius cornerRadius)
Sets the radius of tooltip corner curves.- Parameters:
cornerRadius- radius of tooltip corner curves.
-
getCornerRadius
public int getCornerRadius()
Returns the radius of tooltip corner curves.- Specified by:
getCornerRadiusin interfaceIsDefaultTooltips- Returns:
- radius of tooltip corner curves.
-
getCornerRadiusAsObject
public BarBorderRadius getCornerRadiusAsObject()
Returns the radius of tooltip corner curves.- Returns:
- radius of tooltip corner curves.
-
setMultiKeyBackground
public void setMultiKeyBackground(IsColor multiKeyBackground)
Sets the color to draw behind the colored boxes when multiple items are in the tooltip.- Parameters:
multiKeyBackground- color to draw behind the colored boxes when multiple items are in the tooltip.
-
setMultiKeyBackground
public void setMultiKeyBackground(String multiKeyBackground)
Sets the color to draw behind the colored boxes when multiple items are in the tooltip.- Parameters:
multiKeyBackground- color to draw behind the colored boxes when multiple items are in the tooltip.
-
getMultiKeyBackgroundAsString
public String getMultiKeyBackgroundAsString()
Returns the color to draw behind the colored boxes when multiple items are in the tooltip.- Specified by:
getMultiKeyBackgroundAsStringin interfaceIsDefaultTooltips- Returns:
- color to draw behind the colored boxes when multiple items are in the tooltip.
-
getMultiKeyBackground
public IsColor getMultiKeyBackground()
Returns the color to draw behind the colored boxes when multiple items are in the tooltip.- Returns:
- color to draw behind the colored boxes when multiple items are in the tooltip.
-
setDisplayColors
public void setDisplayColors(boolean displayColors)
Iftrue, color boxes are shown in the tooltip.- Parameters:
displayColors- iftrue, color boxes are shown in the tooltip.
-
isDisplayColors
public boolean isDisplayColors()
Iftrue, color boxes are shown in the tooltip.- Specified by:
isDisplayColorsin interfaceIsDefaultTooltips- Returns:
- if
true, color boxes are shown in the tooltip.
-
setBorderColor
public void setBorderColor(IsColor borderColor)
Sets the color of the border.- Parameters:
borderColor- color of the border.
-
setBorderColor
public void setBorderColor(String borderColor)
Sets the color of the border.- Parameters:
borderColor- color of the border.
-
getBorderColorAsString
public String getBorderColorAsString()
Returns the color of the border.- Specified by:
getBorderColorAsStringin interfaceIsDefaultTooltips- Returns:
- color of the border.
-
getBorderColor
public IsColor getBorderColor()
Returns the color of the border.- Returns:
- color of the border.
-
setBorderWidth
public void setBorderWidth(int borderWidth)
Sets the size of the border.- Parameters:
borderWidth- size of the border.
-
getBorderWidth
public int getBorderWidth()
Returns the size of the border.- Specified by:
getBorderWidthin interfaceIsDefaultTooltips- Returns:
- size of the border.
-
setUsePointStyle
public void setUsePointStyle(boolean usePointStyle)
Sets if to use the corresponding point style (from dataset options) instead of color boxes (size is based on the minimum value between boxWidth and boxHeight).- Parameters:
usePointStyle-trueif to use the corresponding point style (from dataset options) instead of color boxes (size is based on the minimum value between boxWidth and boxHeight)
-
isUsePointStyle
public boolean isUsePointStyle()
Returns if to use the corresponding point style (from dataset options) instead of color boxes (size is based on the minimum value between boxWidth and boxHeight).- Specified by:
isUsePointStylein interfaceIsDefaultTooltips- Returns:
trueif to use the corresponding point style (from dataset options) instead of color boxes (size is based on the minimum value between boxWidth and boxHeight)
-
setBoxPadding
public void setBoxPadding(int boxPadding)
Sets the padding between the color box and the text.- Parameters:
boxPadding- padding between the color box and the text
-
getBoxPadding
public int getBoxPadding()
Returns the padding between the color box and the text.- Specified by:
getBoxPaddingin interfaceIsDefaultTooltips- Returns:
- padding between the color box and the text
-
setRtl
public default void setRtl(boolean rtl)
Setstruefor rendering the tooltips from right to left.- Parameters:
rtl-truefor rendering the tooltips from right to left
-
isRtl
public default boolean isRtl()
Description copied from interface:IsDefaultTextDirectionHandlerReturnstruefor rendering the object from right to left.- Specified by:
isRtlin interfaceIsDefaultTextDirectionHandler- Returns:
truefor rendering the object from right to left.
-
setTextDirection
public default void setTextDirection(TextDirection textDirection)
Sets the text direction of the tooltips that will force the text direction on the canvas for rendering the tooltips, regardless of the CSS specified on the canvas.- Parameters:
textDirection- the text direction of the tooltips.
-
getTextDirection
public default TextDirection getTextDirection()
Description copied from interface:IsDefaultTextDirectionHandlerReturns the text direction that will force on the canvas for rendering the object, regardless of the CSS specified on the canvas.- Specified by:
getTextDirectionin interfaceIsDefaultTextDirectionHandler- Returns:
- the text direction that will force on the canvas for rendering the object, regardless of the CSS specified on the canvas
-
setBoxWidth
public default void setBoxWidth(int boxWidth)
Sets the width of colored box.- Parameters:
boxWidth- width of colored box.
-
getBoxWidth
public default int getBoxWidth()
Returns the width of colored box.- Specified by:
getBoxWidthin interfaceIsDefaultBoxHandler- Returns:
- width of colored box.
-
setBoxHeight
public default void setBoxHeight(int boxHeight)
Sets the height of colored box.- Parameters:
boxHeight- width of colored box.
-
getBoxHeight
public default int getBoxHeight()
Returns the height of colored box.- Specified by:
getBoxHeightin interfaceIsDefaultBoxHandler- Returns:
- height of colored box.
-
setMode
public final void setMode(InteractionMode mode)
Sets which elements appear in the interaction.- Parameters:
mode- which elements appear in the interaction.
-
getMode
public final InteractionMode getMode()
Returns which elements appear in the interaction.- Returns:
- which elements appear in the interaction.
-
setIntersect
public final void setIntersect(boolean intersect)
iftrue, the only applies when the mouse position intersects an item on the chart.- Parameters:
intersect- iftrue, the mode only applies when the mouse position intersects an item on the chart.
-
isIntersect
public final boolean isIntersect()
iftrue, the mode only applies when the mouse position intersects an item on the chart.- Returns:
- if
true, the mode only applies when the mouse position intersects an item on the chart.
-
-