Class Label
java.lang.Object
com.vaadin.flow.component.charts.model.AbstractConfigurationObject
com.vaadin.flow.component.charts.model.Label
- All Implemented Interfaces:
Serializable
Text labels for the plot bands
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetAlign()getStyle()getText()getX()getY()voidsetAlign(HorizontalAlign align) Horizontal alignment of the label.voidsetRotation(Number rotation) Rotation of the text label in degrees.voidCSS styles for the text label.voidThe 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.voidHorizontal position relative the alignment.voidVertical position of the text baseline relative to the alignment.
-
Constructor Details
-
Label
public Label() -
Label
-
-
Method Details
-
getAlign
- See Also:
-
setAlign
Horizontal alignment of the label. Can be one of "left", "center" or "right".Defaults to: left
-
getRotation
- See Also:
-
setRotation
Rotation of the text label in degrees. Defaults to 0 for horizontal plot lines and 90 for vertical lines. -
getStyle
- See Also:
-
setStyle
CSS styles for the text label.
In styled mode, the labels are styled by the
.highcharts-plot-band-labelclass. -
getText
- See Also:
-
setText
The text itself. A subset of HTML is supported. -
getTextAlign
- See Also:
-
setTextAlign
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
- See Also:
-
setUseHTML
Whether to use HTML to render the labels.
Defaults to: false
-
getVerticalAlign
- See Also:
-
setVerticalAlign
Vertical alignment of the label relative to the plot band. Can be one of "top", "middle" or "bottom".Defaults to: top
-
getX
- See Also:
-
setX
Horizontal position relative the alignment. Default varies by orientation. -
getY
- See Also:
-
setY
Vertical position of the text baseline relative to the alignment. Default varies by orientation.
-