Class TooltipStyle
- java.lang.Object
-
- com.vaadin.flow.component.charts.model.AbstractConfigurationObject
-
- com.vaadin.flow.component.charts.model.style.TooltipStyle
-
- All Implemented Interfaces:
Serializable
public class TooltipStyle extends AbstractConfigurationObject
Style options for tooltips- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description TooltipStyle()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Color
getBackgroundColor()
Color
getBorderColor()
Number
getBorderRadius()
Number
getBorderWidth()
Boolean
getFollowPointer()
Style
getStyle()
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
setStyle(Style style)
Sets the style attributes for tooltips
-
-
-
Method Detail
-
getBackgroundColor
public Color getBackgroundColor()
- Returns:
- The background color of tooltips, null if not defined
-
setBackgroundColor
public void setBackgroundColor(Color backgroundColor)
Sets the background color of tooltips- Parameters:
backgroundColor
-
-
getBorderWidth
public Number getBorderWidth()
- Returns:
- The width of the border of tooltips, or null if not defined
-
setBorderWidth
public void setBorderWidth(Number borderWidth)
Sets the width of the border of tooltips- Parameters:
borderWidth
-
-
getStyle
public Style getStyle()
- Returns:
- The style attributes for tooltips
-
setStyle
public void setStyle(Style style)
Sets the style attributes for tooltips- Parameters:
style
- Style attributes
-
getBorderRadius
public Number getBorderRadius()
- Returns:
- The border radius of tooltips
-
setBorderRadius
public void setBorderRadius(Number borderRadius)
Sets the border radius of tooltips- Parameters:
borderRadius
- the border radius in pixels
-
getFollowPointer
public Boolean getFollowPointer()
- Returns:
- the followPointer
-
setFollowPointer
public void setFollowPointer(Boolean followPointer)
- Parameters:
followPointer
- the followPointer to set
-
getBorderColor
public Color getBorderColor()
- Returns:
- The color of the plot border, null if not defined
- See Also:
setBorderColor(Color)
-
setBorderColor
public void setBorderColor(Color borderColor)
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
-
-
-