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 Details

    • Title

      public Title()

      Constructor for Title.

    • Title

      public Title(String text)

      Constructor for Title.

      Parameters:
      text - a String object.
  • Method Details

    • getAlign

      public HorizontalAlign getAlign()

      Getter for the field align.

      Returns:
      a HorizontalAlign object.
      See Also:
    • setAlign

      public void setAlign(HorizontalAlign align)
      The horizontal alignment of the title. Can be one of "left", "center" and "right".

      Defaults to: center

      Parameters:
      align - a HorizontalAlign object.
    • getFloating

      public Boolean getFloating()

      Getter for the field floating.

      Returns:
      a Boolean object.
      See Also:
    • setFloating

      public void setFloating(Boolean floating)
      When the title is floating, the plot area will not move to make space for it.

      Defaults to: false

      Parameters:
      floating - a Boolean object.
    • getMargin

      public Number getMargin()

      Getter for the field margin.

      Returns:
      a Number object.
      See Also:
    • setMargin

      public void setMargin(Number margin)
      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 - a Number object.
    • getText

      public String getText()

      Getter for the field text.

      Returns:
      a String object.
      See Also:
    • setText

      public void setText(String text)
      The title of the chart. To disable the title, set the text to null.

      Defaults to: Chart title

      Parameters:
      text - a String object.
    • getUseHTML

      public Boolean getUseHTML()

      Getter for the field useHTML.

      Returns:
      a Boolean object.
      See Also:
    • setUseHTML

      public void setUseHTML(Boolean useHTML)
      Whether to use HTML to render the text.

      Defaults to: false

      Parameters:
      useHTML - a Boolean object.
    • getVerticalAlign

      public VerticalAlign getVerticalAlign()

      Getter for the field verticalAlign.

      Returns:
      a VerticalAlign object.
      See Also:
    • setVerticalAlign

      public void setVerticalAlign(VerticalAlign verticalAlign)
      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 were true.
      Parameters:
      verticalAlign - a VerticalAlign object.
    • getWidthAdjust

      public Number getWidthAdjust()

      Getter for the field widthAdjust.

      Returns:
      a Number object.
      See Also:
    • setWidthAdjust

      public void setWidthAdjust(Number widthAdjust)
      Adjustment made to the title width, normally to reserve space for the exporting burger menu.

      Defaults to: -44

      Parameters:
      widthAdjust - a Number object.
    • getX

      public Number getX()

      Getter for the field x.

      Returns:
      a Number object.
      See Also:
    • setX

      public void setX(Number x)
      The x position of the title relative to the alignment within chart.spacingLeft and chart.spacingRight.

      Defaults to: 0

      Parameters:
      x - a Number object.
    • getY

      public Number getY()

      Getter for the field y.

      Returns:
      a Number object.
      See Also:
    • setY

      public void setY(Number y)
      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 - a Number object.
    • getStyle

      public CSSObject getStyle()

      Getter for the field style.

      Returns:
      a CSSObject object.
    • setStyle

      public void setStyle(CSSObject style)

      Setter for the field style.

      Parameters:
      style - a CSSObject object.