com.vaadin.flow.component.charts.model.style.
Class TooltipStyle
All Implemented Interfaces:
Style options for tooltips
See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetStyle()
void
setBackgroundColor
(Color backgroundColor) Sets the background color of tooltips
void
setBorderColor
(Color borderColor) Sets the color of the tooltip border.
void
setBorderRadius
(Number borderRadius) Sets the border radius of tooltips
void
setBorderWidth
(Number borderWidth) Sets the width of the border of tooltips
void
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
-
-