Class PlotLine
- java.lang.Object
-
- com.vaadin.flow.component.charts.model.AbstractConfigurationObject
-
- com.vaadin.flow.component.charts.model.PlotLine
-
- All Implemented Interfaces:
Serializable
public class PlotLine extends AbstractConfigurationObject
An array of lines stretching across the plot area, marking a specific value on one of the axes.
In styled mode, the plot lines are styled by the
.highcharts-plot-lineclass in addition to theclassNameoption.- See Also:
- Serialized Form
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetClassName()ColorgetColor()DashStylegetDashStyle()StringgetId()LabelgetLabel()NumbergetValue()NumbergetWidth()NumbergetZIndex()voidsetClassName(String className)A custom class name, in addition to the defaulthighcharts-plot-line, to apply to each individual line.voidsetColor(Color color)The color of the line.voidsetDashStyle(DashStyle dashStyle)The dashing or dot style for the plot line.voidsetId(String id)An id used for identifying the plot line in Axis.removePlotLine.voidsetLabel(Label label)Text labels for the plot bandsvoidsetValue(Number value)The position of the line in axis units.voidsetWidth(Number width)The width or thickness of the plot line.voidsetZIndex(Number zIndex)The z index of the plot line within the chart.
-
-
-
Method Detail
-
getClassName
public String getClassName()
- See Also:
setClassName(String)
-
setClassName
public void setClassName(String className)
A custom class name, in addition to the defaulthighcharts-plot-line, to apply to each individual line.
-
getColor
public Color getColor()
- See Also:
setColor(Color)
-
setColor
public void setColor(Color color)
The color of the line.
-
getDashStyle
public DashStyle getDashStyle()
- See Also:
setDashStyle(DashStyle)
-
setDashStyle
public void setDashStyle(DashStyle dashStyle)
The dashing or dot style for the plot line. For possible values see this overview.Defaults to: Solid
-
getId
public String getId()
- See Also:
setId(String)
-
setId
public void setId(String id)
An id used for identifying the plot line in Axis.removePlotLine.
-
getLabel
public Label getLabel()
- See Also:
setLabel(Label)
-
setLabel
public void setLabel(Label label)
Text labels for the plot bands
-
getValue
public Number getValue()
- See Also:
setValue(Number)
-
setValue
public void setValue(Number value)
The position of the line in axis units.
-
getWidth
public Number getWidth()
- See Also:
setWidth(Number)
-
setWidth
public void setWidth(Number width)
The width or thickness of the plot line.
-
getZIndex
public Number getZIndex()
- See Also:
setZIndex(Number)
-
setZIndex
public void setZIndex(Number zIndex)
The z index of the plot line within the chart.
-
-