Class Label
- java.lang.Object
-
- com.vaadin.flow.component.charts.model.AbstractConfigurationObject
-
- com.vaadin.flow.component.charts.model.Label
-
- All Implemented Interfaces:
Serializable
public class Label extends AbstractConfigurationObject
Text labels for the plot bands- See Also:
- Serialized Form
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description HorizontalAligngetAlign()NumbergetRotation()StylegetStyle()StringgetText()TextAligngetTextAlign()BooleangetUseHTML()VerticalAligngetVerticalAlign()NumbergetX()NumbergetY()voidsetAlign(HorizontalAlign align)Horizontal alignment of the label.voidsetRotation(Number rotation)Rotation of the text label in degrees.voidsetStyle(Style style)CSS styles for the text label.voidsetText(String text)The text itself.voidsetTextAlign(TextAlign textAlign)The text alignment for the label.voidsetUseHTML(Boolean useHTML)Whether to use HTML to render the labels.voidsetVerticalAlign(VerticalAlign verticalAlign)Vertical alignment of the label relative to the plot band.voidsetX(Number x)Horizontal position relative the alignment.voidsetY(Number y)Vertical position of the text baseline relative to the alignment.
-
-
-
Constructor Detail
-
Label
public Label()
-
Label
public Label(String text)
-
-
Method Detail
-
getAlign
public HorizontalAlign getAlign()
- See Also:
setAlign(HorizontalAlign)
-
setAlign
public void setAlign(HorizontalAlign align)
Horizontal alignment of the label. Can be one of "left", "center" or "right".Defaults to: left
-
getRotation
public Number getRotation()
- See Also:
setRotation(Number)
-
setRotation
public void setRotation(Number rotation)
Rotation of the text label in degrees. Defaults to 0 for horizontal plot lines and 90 for vertical lines.
-
getStyle
public Style getStyle()
- See Also:
setStyle(Style)
-
setStyle
public void setStyle(Style style)
CSS styles for the text label.
In styled mode, the labels are styled by the
.highcharts-plot-band-labelclass.
-
getText
public String getText()
- See Also:
setText(String)
-
setText
public void setText(String text)
The text itself. A subset of HTML is supported.
-
getTextAlign
public TextAlign getTextAlign()
- See Also:
setTextAlign(TextAlign)
-
setTextAlign
public void setTextAlign(TextAlign textAlign)
The text alignment for the label. Whilealigndetermines where the texts anchor point is placed within the plot band,textAligndetermines how the text is aligned against its anchor point. Possible values are "left", "center" and "right". Defaults to the same as thealignoption.
-
getUseHTML
public Boolean getUseHTML()
- See Also:
setUseHTML(Boolean)
-
setUseHTML
public void setUseHTML(Boolean useHTML)
Whether to use HTML to render the labels.
Defaults to: false
-
getVerticalAlign
public VerticalAlign getVerticalAlign()
- See Also:
setVerticalAlign(VerticalAlign)
-
setVerticalAlign
public void setVerticalAlign(VerticalAlign verticalAlign)
Vertical alignment of the label relative to the plot band. Can be one of "top", "middle" or "bottom".Defaults to: top
-
getX
public Number getX()
- See Also:
setX(Number)
-
setX
public void setX(Number x)
Horizontal position relative the alignment. Default varies by orientation.
-
getY
public Number getY()
- See Also:
setY(Number)
-
setY
public void setY(Number y)
Vertical position of the text baseline relative to the alignment. Default varies by orientation.
-
-