public class Subtitle extends AbstractConfigurationObject
Modifier and Type | Method and Description |
---|---|
HorizontalAlign |
getAlign() |
Boolean |
getFloating() |
String |
getText() |
Boolean |
getUseHTML() |
VerticalAlign |
getVerticalAlign() |
Number |
getWidthAdjust() |
Number |
getX() |
Number |
getY() |
void |
setAlign(HorizontalAlign align)
The horizontal alignment of the subtitle.
|
void |
setFloating(Boolean floating)
When the subtitle is floating, the plot area will not move to make space
for it.
|
void |
setText(String text)
The subtitle of the chart.
|
void |
setUseHTML(Boolean useHTML)
Whether to use HTML to render the text.
|
void |
setVerticalAlign(VerticalAlign verticalAlign)
The vertical alignment of the title.
|
void |
setWidthAdjust(Number widthAdjust)
Adjustment made to the subtitle width, normally to reserve space for the
exporting burger menu.
|
void |
setX(Number x)
The x position of the subtitle relative to the alignment within
chart.spacingLeft and chart.spacingRight.
|
void |
setY(Number y)
The y position of the subtitle relative to the alignment within
chart.spacingTop and chart.spacingBottom.
|
public Subtitle()
public Subtitle(String text)
public HorizontalAlign getAlign()
setAlign(HorizontalAlign)
public void setAlign(HorizontalAlign align)
Defaults to: center
public Boolean getFloating()
setFloating(Boolean)
public void setFloating(Boolean floating)
Defaults to: false
public String getText()
setText(String)
public void setText(String text)
public Boolean getUseHTML()
setUseHTML(Boolean)
public void setUseHTML(Boolean useHTML)
Defaults to: false
public VerticalAlign getVerticalAlign()
setVerticalAlign(VerticalAlign)
public void setVerticalAlign(VerticalAlign verticalAlign)
Defaults to:
public Number getWidthAdjust()
setWidthAdjust(Number)
public void setWidthAdjust(Number widthAdjust)
Defaults to: -44
public Number getX()
setX(Number)
public void setX(Number x)
Defaults to: 0
public Number getY()
setY(Number)
public void setY(Number y)
Defaults to: null
Copyright © 2023. All rights reserved.