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
-
Method Summary
Modifier and TypeMethodDescriptiongetStyle()
void
setBackgroundColor
(Color backgroundColor) Sets the background color of tooltipsvoid
setBorderColor
(Color borderColor) Sets the color of the tooltip border.void
setBorderRadius
(Number borderRadius) Sets the border radius of tooltipsvoid
setBorderWidth
(Number borderWidth) Sets the width of the border of tooltipsvoid
setFollowPointer
(Boolean followPointer) void
Sets 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
-
-