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
-
Method Summary
Modifier and TypeMethodDescriptiongetAlign()
getStyle()
getText()
getX()
getY()
void
setAlign
(HorizontalAlign align) Horizontal alignment of the label.void
setRotation
(Number rotation) Rotation of the text label in degrees.void
CSS styles for the text label.void
The text itself.void
setTextAlign
(TextAlign textAlign) The text alignment for the label.void
setUseHTML
(Boolean useHTML) Whether to use HTML to render the labels.void
setVerticalAlign
(VerticalAlign verticalAlign) Vertical alignment of the label relative to the plot band.void
Horizontal position relative the alignment.void
Vertical 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-label
class. -
getText
- See Also:
-
setText
The text itself. A subset of HTML is supported. -
getTextAlign
- See Also:
-
setTextAlign
The text alignment for the label. Whilealign
determines where the texts anchor point is placed within the plot band,textAlign
determines how the text is aligned against its anchor point. Possible values are "left", "center" and "right". Defaults to the same as thealign
option. -
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.
-