Package io.jmix.charts.model
Class Title
java.lang.Object
io.jmix.charts.model.AbstractChartObject
io.jmix.charts.model.Title
- All Implemented Interfaces:
Serializable
Creates a title on above the chart, multiple can be assigned.
See documentation for properties of Title JS Object.
http://docs.amcharts.com/3/javascriptcharts/Title
See documentation for properties of Title JS Object.
http://docs.amcharts.com/3/javascriptcharts/Title
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetAlpha()
getBold()
getColor()
getId()
getSize()
getText()
@Max(1L) @Min(0L) Title
Sets opacity of a title.Set bold to false if title shouldn't be bold.Sets text color of a title.Sets unique id of a title.Sets text size of a title.setTabIndex
(Integer tabIndex) In case you set it to some number, the chart will set focus on the title when user clicks tab key.Sets text of a title.
-
Constructor Details
-
Title
public Title()
-
-
Method Details
-
getAlpha
- Returns:
- opacity of a title
-
setAlpha
@StudioProperty(defaultValue="1") @Max(1L) @Min(0L) public @Max(1L) @Min(0L) Title setAlpha(Double alpha) Sets opacity of a title. If not set the default value is 1.- Parameters:
alpha
- opacity- Returns:
- title
-
getBold
- Returns:
- true if title is bold
-
setBold
Set bold to false if title shouldn't be bold. If not set the default value is true.- Parameters:
bold
- bold option- Returns:
- title
-
getColor
- Returns:
- text color of a title
-
setColor
Sets text color of a title.- Parameters:
color
- color- Returns:
- title
-
getSize
- Returns:
- text size of a title
-
setSize
Sets text size of a title.- Parameters:
size
- text size- Returns:
- title
-
getText
- Returns:
- text of a title
-
setText
Sets text of a title.- Parameters:
text
- text- Returns:
- title
-
getId
- Returns:
- unique id of a title
-
setId
Sets unique id of a title.- Parameters:
id
- id- Returns:
- title
-
getTabIndex
- Returns:
- tab index
-
setTabIndex
In case you set it to some number, the chart will set focus on the title when user clicks tab key. When a focus is set, screen readers like NVDA screen reader will read the title. Note, not all browsers and readers support this.- Parameters:
tabIndex
- tab index- Returns:
- title
-