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 SummaryAll 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.AbstractModelgetDefaultValues, getParent, loadPadding, setCallbackToModel, setCallbackToModel, setEventToModel
 - 
Methods inherited from class org.pepstock.charba.client.commons.AbstractNodecheckAndAddToParent, getChildKey, getParentNode, getRootNode, retrieveRoot, setArrayValueAndAddToParent, setArrayValueAndAddToParent, setArrayValueAndAddToParent, setElementAndAddToParent, setInternalCallbackToModel, setInternalCallbackToModel, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueOrArrayAndAddToParent, setValueOrArrayAndAddToParent, setValueOrArrayAndAddToParent, setValueOrArrayAndAddToParent, setValueOrArrayAndAddToParent, setValueOrArrayAndAddToParent, setValueOrArrayAndAddToParent, setValueOrArrayAndAddToParent, setValueOrArrayAndAddToParent, setValueOrArrayAndAddToParent
 - 
Methods inherited from class org.pepstock.charba.client.commons.NativeObjectContainercheckDefaultValuesArgument, empty, getArrayValue, getElement, getIncrementalId, getNativeChart, getNativeEvent, getNativeObject, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValueForMultipleKeyTypes, getValueForMultipleKeyTypes, getValueForMultipleKeyTypes, getValueOrArray, getValueOrArray, getValueOrArray, getValueOrArray, getValueOrArray, getValueOrArray, getValueOrArray, getValueOrArray, has, has, isType, keys, loadNativeObject, remove, remove, setArrayValue, setArrayValue, setArrayValue, setElement, setEmptyValue, setNewIncrementalId, setNewIncrementalId, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, toJSON, type
 - 
Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 - 
Methods inherited from interface org.pepstock.charba.client.options.HasAnimationOptionsgetAnimation, getAnimations, getTransitions, isAnimationEnabled, setAnimationEnabled
 - 
Methods inherited from interface org.pepstock.charba.client.options.HasEventsgetEvents, setEvents, setEvents
 - 
Methods inherited from interface org.pepstock.charba.client.defaults.IsDefaultTooltipsgetMode, isIntersect
 
- 
 
- 
- 
- 
Method Detail- 
getBoxHandlerpublic org.pepstock.charba.client.options.BoxHandler getBoxHandler() 
 - 
getEventsOptionHandlerpublic EventsOptionHandler getEventsOptionHandler() Description copied from interface:HasEventsReturns a event handler handler instance to use in the default methods of this interface.- Specified by:
- getEventsOptionHandlerin interface- HasEvents
- Returns:
- a event handler handler instance
 
 - 
getTextDirectionHandlerpublic org.pepstock.charba.client.options.TextDirectionHandler getTextDirectionHandler() 
 - 
getAnimationContainerpublic AnimationContainer getAnimationContainer() Description copied from interface:HasAnimationOptionsReturns an animation container instance to use in the default methods of this interface.- Specified by:
- getAnimationContainerin interface- HasAnimationOptions
- Returns:
- an animation container instance
 
 - 
getCallbackspublic TooltipsCallbacks getCallbacks() Returns the callbacks element.- Returns:
- the callbacks
 
 - 
getPaddingpublic Padding getPadding() Returns the padding element.- Specified by:
- getPaddingin interface- IsDefaultTooltips
- Returns:
- the padding
 
 - 
setEnabledpublic void setEnabled(boolean enabled) Setstrueif tooltips are enabled.- Parameters:
- enabled-- trueif tooltips are enabled.
 
 - 
isEnabledpublic boolean isEnabled() Returnstrueif tooltips are enabled.- Specified by:
- isEnabledin interface- IsDefaultTooltips
- Returns:
- trueif tooltips are enabled.
 
 - 
setPositionpublic void setPosition(IsTooltipPosition position) Sets the mode for positioning the tooltip.- Parameters:
- position- the mode for positioning the tooltip.
 
 - 
getPositionpublic IsTooltipPosition getPosition() Returns the mode for positioning the tooltip.- Specified by:
- getPositionin interface- IsDefaultTooltips
- Returns:
- mode for positioning the tooltip.
 
 - 
setBackgroundColorpublic void setBackgroundColor(IsColor backgroundColor) Sets the background color of the tooltip.- Parameters:
- backgroundColor- background color of the tooltip.
 
 - 
setBackgroundColorpublic void setBackgroundColor(String backgroundColor) Sets the background color of the tooltip.- Parameters:
- backgroundColor- background color of the tooltip.
 
 - 
getBackgroundColorAsStringpublic String getBackgroundColorAsString() Returns the background color of the tooltip.- Specified by:
- getBackgroundColorAsStringin interface- IsDefaultTooltips
- Returns:
- background color of the tooltip.
 
 - 
getBackgroundColorpublic IsColor getBackgroundColor() Returns the background color of the tooltip.- Returns:
- background color of the tooltip.
 
 - 
setXAlignpublic 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.
 
 - 
getXAlignpublic TooltipAlign getXAlign() Returns the alignment of the tooltip caret in the X direction.- Specified by:
- getXAlignin interface- IsDefaultTooltips
- Returns:
- the alignment of the tooltip caret in the X direction
 
 - 
setYAlignpublic 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.
 
 - 
getYAlignpublic TooltipAlign getYAlign() Returns the alignment of the tooltip caret in the Y direction.- Specified by:
- getYAlignin interface- IsDefaultTooltips
- Returns:
- the alignment of the tooltip caret in the Y direction
 
 - 
getTitleFontpublic Font getTitleFont() Returns the title font element.- Specified by:
- getTitleFontin interface- IsDefaultTooltips
- Returns:
- the font
 
 - 
setTitleColorpublic void setTitleColor(IsColor color) Sets the title font color.- Parameters:
- color- title font color.
 
 - 
setTitleColorpublic void setTitleColor(String color) Sets the title font color.- Parameters:
- color- title font color.
 
 - 
getTitleColorAsStringpublic String getTitleColorAsString() Returns the title font color as string.- Specified by:
- getTitleColorAsStringin interface- IsDefaultTooltips
- Returns:
- title font color as string
 
 - 
getTitleColorpublic IsColor getTitleColor() Returns the title font color.- Returns:
- title font color
 
 - 
setTitleAlignpublic void setTitleAlign(TextAlign align) Sets the title alignment.- Parameters:
- align- title alignment.
 
 - 
getTitleAlignpublic TextAlign getTitleAlign() Returns the title alignment.- Specified by:
- getTitleAlignin interface- IsDefaultTooltips
- Returns:
- title alignment.
 
 - 
setTitleSpacingpublic 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.
 
 - 
getTitleSpacingpublic int getTitleSpacing() Returns the spacing to add to top and bottom of each title line.- Specified by:
- getTitleSpacingin interface- IsDefaultTooltips
- Returns:
- spacing to add to top and bottom of each title line.
 
 - 
setTitleMarginBottompublic void setTitleMarginBottom(int titleMarginBottom) Sets the margin to add on bottom of title section.- Parameters:
- titleMarginBottom- margin to add on bottom of title section.
 
 - 
getTitleMarginBottompublic int getTitleMarginBottom() Returns the margin to add on bottom of title section.- Specified by:
- getTitleMarginBottomin interface- IsDefaultTooltips
- Returns:
- margin to add on bottom of title section.
 
 - 
getBodyFontpublic Font getBodyFont() Returns the body font element.- Specified by:
- getBodyFontin interface- IsDefaultTooltips
- Returns:
- the font
 
 - 
setBodyColorpublic void setBodyColor(IsColor color) Sets the body font color.- Parameters:
- color- body font color.
 
 - 
setBodyColorpublic void setBodyColor(String color) Sets the body font color.- Parameters:
- color- body font color.
 
 - 
getBodyColorAsStringpublic String getBodyColorAsString() Returns the body font color as string.- Specified by:
- getBodyColorAsStringin interface- IsDefaultTooltips
- Returns:
- body font color as string
 
 - 
getBodyColorpublic IsColor getBodyColor() Returns the body font color.- Returns:
- body font color
 
 - 
setBodyAlignpublic void setBodyAlign(TextAlign align) Sets the body alignment.- Parameters:
- align- body alignment.
 
 - 
getBodyAlignpublic TextAlign getBodyAlign() Returns the body alignment.- Specified by:
- getBodyAlignin interface- IsDefaultTooltips
- Returns:
- body alignment.
 
 - 
setBodySpacingpublic 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.
 
 - 
getBodySpacingpublic int getBodySpacing() Returns the spacing to add to top and bottom of each tooltip item.- Specified by:
- getBodySpacingin interface- IsDefaultTooltips
- Returns:
- spacing to add to top and bottom of each tooltip item.
 
 - 
getFooterFontpublic Font getFooterFont() Returns the footer font element.- Specified by:
- getFooterFontin interface- IsDefaultTooltips
- Returns:
- the font
 
 - 
setFooterColorpublic void setFooterColor(IsColor color) Sets the footer font color.- Parameters:
- color- footer font color.
 
 - 
setFooterColorpublic void setFooterColor(String color) Sets the footer font color.- Parameters:
- color- footer font color.
 
 - 
getFooterColorAsStringpublic String getFooterColorAsString() Returns the footer font color as string.- Specified by:
- getFooterColorAsStringin interface- IsDefaultTooltips
- Returns:
- footer font color as string
 
 - 
getFooterColorpublic IsColor getFooterColor() Returns the footer font color.- Returns:
- footer font color
 
 - 
setFooterAlignpublic void setFooterAlign(TextAlign align) Sets the footer alignment.- Parameters:
- align- footer alignment.
 
 - 
getFooterAlignpublic TextAlign getFooterAlign() Returns the body alignment.- Specified by:
- getFooterAlignin interface- IsDefaultTooltips
- Returns:
- footer alignment.
 
 - 
setFooterSpacingpublic 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.
 
 - 
getFooterSpacingpublic int getFooterSpacing() Returns the spacing to add to top and bottom of each footer line.- Specified by:
- getFooterSpacingin interface- IsDefaultTooltips
- Returns:
- spacing to add to top and bottom of each footer line.
 
 - 
setFooterMarginToppublic void setFooterMarginTop(int footerMarginTop) Sets the margin to add before drawing the footer.- Parameters:
- footerMarginTop- margin to add before drawing the footer.
 
 - 
getFooterMarginToppublic int getFooterMarginTop() Returns the margin to add before drawing the footer.- Specified by:
- getFooterMarginTopin interface- IsDefaultTooltips
- Returns:
- margin to add before drawing the footer.
 
 - 
setCaretPaddingpublic 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.
 
 - 
getCaretPaddingpublic int getCaretPadding() Returns the extra distance to move the end of the tooltip arrow away from the tooltip point.- Specified by:
- getCaretPaddingin interface- IsDefaultTooltips
- Returns:
- extra distance to move the end of the tooltip arrow away from the tooltip point.
 
 - 
setCaretSizepublic void setCaretSize(int caretSize) Sets the size, in pixels, of the tooltip arrow.- Parameters:
- caretSize- size, in pixels, of the tooltip arrow.
 
 - 
getCaretSizepublic int getCaretSize() Returns the size, in pixels, of the tooltip arrow.- Specified by:
- getCaretSizein interface- IsDefaultTooltips
- Returns:
- size, in pixels, of the tooltip arrow.
 
 - 
setCornerRadiuspublic void setCornerRadius(int cornerRadius) Sets the radius of tooltip corner curves.- Parameters:
- cornerRadius- radius of tooltip corner curves.
 
 - 
setCornerRadiuspublic void setCornerRadius(BarBorderRadius cornerRadius) Sets the radius of tooltip corner curves.- Parameters:
- cornerRadius- radius of tooltip corner curves.
 
 - 
getCornerRadiuspublic int getCornerRadius() Returns the radius of tooltip corner curves.- Specified by:
- getCornerRadiusin interface- IsDefaultTooltips
- Returns:
- radius of tooltip corner curves.
 
 - 
getCornerRadiusAsObjectpublic BarBorderRadius getCornerRadiusAsObject() Returns the radius of tooltip corner curves.- Returns:
- radius of tooltip corner curves.
 
 - 
setMultiKeyBackgroundpublic 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.
 
 - 
setMultiKeyBackgroundpublic 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.
 
 - 
getMultiKeyBackgroundAsStringpublic String getMultiKeyBackgroundAsString() Returns the color to draw behind the colored boxes when multiple items are in the tooltip.- Specified by:
- getMultiKeyBackgroundAsStringin interface- IsDefaultTooltips
- Returns:
- color to draw behind the colored boxes when multiple items are in the tooltip.
 
 - 
getMultiKeyBackgroundpublic 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.
 
 - 
setDisplayColorspublic void setDisplayColors(boolean displayColors) Iftrue, color boxes are shown in the tooltip.- Parameters:
- displayColors- if- true, color boxes are shown in the tooltip.
 
 - 
isDisplayColorspublic boolean isDisplayColors() Iftrue, color boxes are shown in the tooltip.- Specified by:
- isDisplayColorsin interface- IsDefaultTooltips
- Returns:
- if true, color boxes are shown in the tooltip.
 
 - 
setBorderColorpublic void setBorderColor(IsColor borderColor) Sets the color of the border.- Parameters:
- borderColor- color of the border.
 
 - 
setBorderColorpublic void setBorderColor(String borderColor) Sets the color of the border.- Parameters:
- borderColor- color of the border.
 
 - 
getBorderColorAsStringpublic String getBorderColorAsString() Returns the color of the border.- Specified by:
- getBorderColorAsStringin interface- IsDefaultTooltips
- Returns:
- color of the border.
 
 - 
getBorderColorpublic IsColor getBorderColor() Returns the color of the border.- Returns:
- color of the border.
 
 - 
setBorderWidthpublic void setBorderWidth(int borderWidth) Sets the size of the border.- Parameters:
- borderWidth- size of the border.
 
 - 
getBorderWidthpublic int getBorderWidth() Returns the size of the border.- Specified by:
- getBorderWidthin interface- IsDefaultTooltips
- Returns:
- size of the border.
 
 - 
setUsePointStylepublic 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)
 
 - 
isUsePointStylepublic 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 interface- IsDefaultTooltips
- 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)
 
 - 
setBoxPaddingpublic void setBoxPadding(int boxPadding) Sets the padding between the color box and the text.- Parameters:
- boxPadding- padding between the color box and the text
 
 - 
getBoxPaddingpublic int getBoxPadding() Returns the padding between the color box and the text.- Specified by:
- getBoxPaddingin interface- IsDefaultTooltips
- Returns:
- padding between the color box and the text
 
 - 
setRtlpublic default void setRtl(boolean rtl) Setstruefor rendering the tooltips from right to left.- Parameters:
- rtl-- truefor rendering the tooltips from right to left
 
 - 
isRtlpublic default boolean isRtl() Description copied from interface:IsDefaultTextDirectionHandlerReturnstruefor rendering the object from right to left.- Specified by:
- isRtlin interface- IsDefaultTextDirectionHandler
- Returns:
- truefor rendering the object from right to left.
 
 - 
setTextDirectionpublic 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.
 
 - 
getTextDirectionpublic 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 interface- IsDefaultTextDirectionHandler
- Returns:
- the text direction that will force on the canvas for rendering the object, regardless of the CSS specified on the canvas
 
 - 
setBoxWidthpublic default void setBoxWidth(int boxWidth) Sets the width of colored box.- Parameters:
- boxWidth- width of colored box.
 
 - 
getBoxWidthpublic default int getBoxWidth() Returns the width of colored box.- Specified by:
- getBoxWidthin interface- IsDefaultBoxHandler
- Returns:
- width of colored box.
 
 - 
setBoxHeightpublic default void setBoxHeight(int boxHeight) Sets the height of colored box.- Parameters:
- boxHeight- width of colored box.
 
 - 
getBoxHeightpublic default int getBoxHeight() Returns the height of colored box.- Specified by:
- getBoxHeightin interface- IsDefaultBoxHandler
- Returns:
- height of colored box.
 
 - 
setModepublic final void setMode(InteractionMode mode) Sets which elements appear in the interaction.- Parameters:
- mode- which elements appear in the interaction.
 
 - 
getModepublic final InteractionMode getMode() Returns which elements appear in the interaction.- Returns:
- which elements appear in the interaction.
 
 - 
setIntersectpublic final void setIntersect(boolean intersect) iftrue, the only applies when the mouse position intersects an item on the chart.- Parameters:
- intersect- if- true, the mode only applies when the mouse position intersects an item on the chart.
 
 - 
isIntersectpublic 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.
 
 
- 
 
-