Class Title
java.lang.Object
com.vaadin.componentfactory.maps.model.AbstractConfigurationObject
com.vaadin.componentfactory.maps.model.Title
- All Implemented Interfaces:
Serializable
@Generated(value="This class is generated and shouldn\'t be modified",
comments="Incorrect and missing API should be reported to https://github.com/vaadin/vaadin-charts-flow/issues/new")
public class Title
extends AbstractConfigurationObject
The chart's main title.
- Version:
- $Id: $Id
- Author:
- Vaadin
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetAlign()Getter for the fieldalign.Getter for the fieldfloating.Getter for the fieldmargin.getStyle()Getter for the fieldstyle.getText()Getter for the fieldtext.Getter for the fielduseHTML.Getter for the fieldverticalAlign.Getter for the fieldwidthAdjust.getX()Getter for the fieldx.getY()Getter for the fieldy.voidsetAlign(HorizontalAlign align) The horizontal alignment of the title.voidsetFloating(Boolean floating) When the title is floating, the plot area will not move to make space for it.voidThe margin between the title and the plot area, or if a subtitle is present, the margin between the subtitle and the plot area.voidSetter for the fieldstyle.voidThe title of the chart.voidsetUseHTML(Boolean useHTML) Whether to use HTML to render the text.voidsetVerticalAlign(VerticalAlign verticalAlign) The vertical alignment of the title.voidsetWidthAdjust(Number widthAdjust) Adjustment made to the title width, normally to reserve space for the exporting burger menu.voidThe x position of the title relative to the alignment within chart.spacingLeft and chart.spacingRight.voidThe y position of the title relative to the alignment within chart.spacingTop and chart.spacingBottom.
-
Constructor Details
-
Title
public Title()Constructor for Title.
-
Title
Constructor for Title.
- Parameters:
text- aStringobject.
-
-
Method Details
-
getAlign
Getter for the field
align.- Returns:
- a
HorizontalAlignobject. - See Also:
-
setAlign
The horizontal alignment of the title. Can be one of "left", "center" and "right".Defaults to: center
- Parameters:
align- aHorizontalAlignobject.
-
getFloating
Getter for the field
floating.- Returns:
- a
Booleanobject. - See Also:
-
setFloating
When the title is floating, the plot area will not move to make space for it.Defaults to: false
- Parameters:
floating- aBooleanobject.
-
getMargin
Getter for the field
margin.- Returns:
- a
Numberobject. - See Also:
-
setMargin
The margin between the title and the plot area, or if a subtitle is present, the margin between the subtitle and the plot area.Defaults to: 15
- Parameters:
margin- aNumberobject.
-
getText
Getter for the field
text.- Returns:
- a
Stringobject. - See Also:
-
setText
The title of the chart. To disable the title, set thetexttonull.Defaults to: Chart title
- Parameters:
text- aStringobject.
-
getUseHTML
Getter for the field
useHTML.- Returns:
- a
Booleanobject. - See Also:
-
setUseHTML
Whether to use HTML to render the text.Defaults to: false
- Parameters:
useHTML- aBooleanobject.
-
getVerticalAlign
Getter for the field
verticalAlign.- Returns:
- a
VerticalAlignobject. - See Also:
-
setVerticalAlign
The vertical alignment of the title. Can be one of"top","middle"and"bottom". When a value is given, the title behaves as if floating weretrue.- Parameters:
verticalAlign- aVerticalAlignobject.
-
getWidthAdjust
Getter for the field
widthAdjust.- Returns:
- a
Numberobject. - See Also:
-
setWidthAdjust
Adjustment made to the title width, normally to reserve space for the exporting burger menu.Defaults to: -44
- Parameters:
widthAdjust- aNumberobject.
-
getX
Getter for the field
x.- Returns:
- a
Numberobject. - See Also:
-
setX
The x position of the title relative to the alignment within chart.spacingLeft and chart.spacingRight.Defaults to: 0
- Parameters:
x- aNumberobject.
-
getY
Getter for the field
y.- Returns:
- a
Numberobject. - See Also:
-
setY
The y position of the title relative to the alignment within chart.spacingTop and chart.spacingBottom. By default it depends on the font size.- Parameters:
y- aNumberobject.
-
getStyle
Getter for the field
style.- Returns:
- a
CSSObjectobject.
-
setStyle
Setter for the field
style.- Parameters:
style- aCSSObjectobject.
-