Class Hover
- java.lang.Object
-
- com.vaadin.flow.component.charts.model.AbstractConfigurationObject
-
- com.vaadin.flow.component.charts.model.Hover
-
- All Implemented Interfaces:
Serializable
public class Hover extends AbstractConfigurationObject
Options for the hovered series- See Also:
- Serialized Form
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BooleangetAnimation()ColorgetBorderColor()NumbergetBrightness()ColorgetColor()BooleangetEnabled()ColorgetFillColor()HalogetHalo()ColorgetLineColor()NumbergetLineWidth()NumbergetLineWidthPlus()MarkergetMarker()NumbergetOpacity()NumbergetRadius()NumbergetRadiusPlus()voidsetAnimation(Boolean animation)Animation setting for hovering the graph in line-type series.voidsetBorderColor(Color borderColor)A specific border color for the hovered point.voidsetBrightness(Number brightness)How much to brighten the point on interaction.voidsetColor(Color color)A specific color for the hovered point.voidsetEnabled(Boolean enabled)Enable separate styles for the hovered series to visualize that the user hovers either the series itself or the legend.voidsetFillColor(Color fillColor)The fill color of the marker in hover state.voidsetHalo(Halo halo)Options for the halo appearing around the hovered point in line-type series as well as outside the hovered slice in pie charts.voidsetLineColor(Color lineColor)The color of the point marker's outline.voidsetLineWidth(Number lineWidth)Pixel with of the graph line.voidsetLineWidthPlus(Number lineWidthPlus)The additional line width for the graph of a hovered series.voidsetMarker(Marker marker)voidsetOpacity(Number opacity)The opacity of a point in treemap.voidsetRadius(Number radius)The radius of the point marker.voidsetRadiusPlus(Number radiusPlus)The number of pixels to increase the radius of the hovered point.
-
-
-
Constructor Detail
-
Hover
public Hover()
-
Hover
public Hover(Boolean enabled)
-
-
Method Detail
-
getAnimation
public Boolean getAnimation()
- See Also:
setAnimation(Boolean)
-
setAnimation
public void setAnimation(Boolean animation)
Animation setting for hovering the graph in line-type series.Defaults to: { "duration": 50 }
-
getEnabled
public Boolean getEnabled()
- See Also:
setEnabled(Boolean)
-
setEnabled
public void setEnabled(Boolean enabled)
Enable separate styles for the hovered series to visualize that the user hovers either the series itself or the legend. .Defaults to: true
-
getHalo
public Halo getHalo()
- See Also:
setHalo(Halo)
-
setHalo
public void setHalo(Halo halo)
Options for the halo appearing around the hovered point in line-type series as well as outside the hovered slice in pie charts. By default the halo is filled by the current point or series color with an opacity of 0.25. The halo can be disabled by setting the
halooption tofalse.In styled mode, the halo is styled with the
.highcharts-haloclass, with colors inherited from.highcharts-color-{n}.
-
getLineWidth
public Number getLineWidth()
- See Also:
setLineWidth(Number)
-
setLineWidth
public void setLineWidth(Number lineWidth)
Pixel with of the graph line.Defaults to: 2
-
getLineWidthPlus
public Number getLineWidthPlus()
- See Also:
setLineWidthPlus(Number)
-
setLineWidthPlus
public void setLineWidthPlus(Number lineWidthPlus)
The additional line width for the graph of a hovered series.Defaults to: 1
-
getFillColor
public Color getFillColor()
- See Also:
setFillColor(Color)
-
setFillColor
public void setFillColor(Color fillColor)
The fill color of the marker in hover state.
-
getLineColor
public Color getLineColor()
- See Also:
setLineColor(Color)
-
setLineColor
public void setLineColor(Color lineColor)
The color of the point marker's outline. Whennull, the series' or point's color is used.Defaults to: #ffffff
-
getRadius
public Number getRadius()
- See Also:
setRadius(Number)
-
setRadius
public void setRadius(Number radius)
The radius of the point marker. In hover state, it defaults to the normal state's radius + 2 as per the radiusPlus option.
-
getRadiusPlus
public Number getRadiusPlus()
- See Also:
setRadiusPlus(Number)
-
setRadiusPlus
public void setRadiusPlus(Number radiusPlus)
The number of pixels to increase the radius of the hovered point.Defaults to: 2
-
getBorderColor
public Color getBorderColor()
- See Also:
setBorderColor(Color)
-
setBorderColor
public void setBorderColor(Color borderColor)
A specific border color for the hovered point. Defaults to inherit the normal state border color.
-
getBrightness
public Number getBrightness()
- See Also:
setBrightness(Number)
-
setBrightness
public void setBrightness(Number brightness)
How much to brighten the point on interaction. Requires the main color to be defined in hex or rgb(a) format.
In styled mode, the hover brightening is by default replaced with a fill-opacity set in the
.highcharts-point:hoverrule.Defaults to: 0.1
-
getColor
public Color getColor()
- See Also:
setColor(Color)
-
setColor
public void setColor(Color color)
A specific color for the hovered point.Defaults to: undefined
-
getOpacity
public Number getOpacity()
- See Also:
setOpacity(Number)
-
setOpacity
public void setOpacity(Number opacity)
The opacity of a point in treemap. When a point has children, the visibility of the children is determined by the opacity.Defaults to: 0.75
-
getMarker
public Marker getMarker()
- See Also:
setMarker(Marker)
-
setMarker
public void setMarker(Marker marker)
-
-