Class TooltipStyle
java.lang.Object
com.vaadin.flow.component.charts.model.AbstractConfigurationObject
com.vaadin.flow.component.charts.model.style.TooltipStyle
- All Implemented Interfaces:
Serializable
Style options for tooltips
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetStyle()voidsetBackgroundColor(Color backgroundColor) Sets the background color of tooltipsvoidsetBorderColor(Color borderColor) Sets the color of the tooltip border.voidsetBorderRadius(Number borderRadius) Sets the border radius of tooltipsvoidsetBorderWidth(Number borderWidth) Sets the width of the border of tooltipsvoidsetFollowPointer(Boolean followPointer) voidSets the style attributes for tooltips
-
Constructor Details
-
TooltipStyle
public TooltipStyle()
-
-
Method Details
-
getBackgroundColor
- Returns:
- The background color of tooltips, null if not defined
-
setBackgroundColor
Sets the background color of tooltips- Parameters:
backgroundColor-
-
getBorderWidth
- Returns:
- The width of the border of tooltips, or null if not defined
-
setBorderWidth
Sets the width of the border of tooltips- Parameters:
borderWidth-
-
getStyle
- Returns:
- The style attributes for tooltips
-
setStyle
Sets the style attributes for tooltips- Parameters:
style- Style attributes
-
getBorderRadius
- Returns:
- The border radius of tooltips
-
setBorderRadius
Sets the border radius of tooltips- Parameters:
borderRadius- the border radius in pixels
-
getFollowPointer
- Returns:
- the followPointer
-
setFollowPointer
- Parameters:
followPointer- the followPointer to set
-
getBorderColor
- Returns:
- The color of the plot border, null if not defined
- See Also:
-
setBorderColor
Sets the color of the tooltip border. When null, the border takes the color of the corresponding series or point. Defaults to null.- Parameters:
borderColor-
-