Class CrosshairLabel
- java.lang.Object
-
- com.vaadin.flow.component.charts.model.AbstractConfigurationObject
-
- com.vaadin.flow.component.charts.model.CrosshairLabel
-
- All Implemented Interfaces:
Serializable
public class CrosshairLabel extends AbstractConfigurationObject
A label on the axis next to the crosshair.
In styled mode, the label is styled with the
.highcharts-crosshair-labelclass.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description CrosshairLabel()CrosshairLabel(Boolean enabled)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description HorizontalAligngetAlign()ColorgetBackgroundColor()ColorgetBorderColor()NumbergetBorderRadius()NumbergetBorderWidth()BooleangetEnabled()StringgetFormat()StringgetFormatter()NumbergetPadding()ShapegetShape()voidsetAlign(HorizontalAlign align)Alignment of the label compared to the axis.voidsetBackgroundColor(Color backgroundColor)The background color for the label.voidsetBorderColor(Color borderColor)The border color for the crosshair labelvoidsetBorderRadius(Number borderRadius)The border corner radius of the crosshair label.voidsetBorderWidth(Number borderWidth)The border width for the crosshair label.voidsetEnabled(Boolean enabled)voidsetFormat(String format)A format string for the crosshair label.voidsetFormatter(String _fn_formatter)voidsetPadding(Number padding)Padding inside the crosshair label.voidsetShape(Shape shape)The shape to use for the label box.
-
-
-
Constructor Detail
-
CrosshairLabel
public CrosshairLabel()
-
CrosshairLabel
public CrosshairLabel(Boolean enabled)
-
-
Method Detail
-
getAlign
public HorizontalAlign getAlign()
- See Also:
setAlign(HorizontalAlign)
-
setAlign
public void setAlign(HorizontalAlign align)
Alignment of the label compared to the axis. Defaults toleftfor right-side axes,rightfor left-side axes andcenterfor horizontal axes.
-
getBackgroundColor
public Color getBackgroundColor()
- See Also:
setBackgroundColor(Color)
-
setBackgroundColor
public void setBackgroundColor(Color backgroundColor)
The background color for the label. Defaults to the related series color, or#666666if that is not available.
-
getBorderColor
public Color getBorderColor()
- See Also:
setBorderColor(Color)
-
setBorderColor
public void setBorderColor(Color borderColor)
The border color for the crosshair label
-
getBorderRadius
public Number getBorderRadius()
- See Also:
setBorderRadius(Number)
-
setBorderRadius
public void setBorderRadius(Number borderRadius)
The border corner radius of the crosshair label.Defaults to: 3
-
getBorderWidth
public Number getBorderWidth()
- See Also:
setBorderWidth(Number)
-
setBorderWidth
public void setBorderWidth(Number borderWidth)
The border width for the crosshair label.Defaults to: 0
-
getFormat
public String getFormat()
- See Also:
setFormat(String)
-
setFormat
public void setFormat(String format)
A format string for the crosshair label. Defaults to{value}for numeric axes and{value:%b %d, %Y}for datetime axes.
-
getFormatter
public String getFormatter()
-
setFormatter
public void setFormatter(String _fn_formatter)
-
getPadding
public Number getPadding()
- See Also:
setPadding(Number)
-
setPadding
public void setPadding(Number padding)
Padding inside the crosshair label.Defaults to: 8
-
getShape
public Shape getShape()
- See Also:
setShape(Shape)
-
setShape
public void setShape(Shape shape)
The shape to use for the label box.Defaults to: callout
-
getEnabled
public Boolean getEnabled()
- See Also:
setEnabled(Boolean)
-
setEnabled
public void setEnabled(Boolean enabled)
-
-