Package io.jmix.charts.model.label
Class Label
java.lang.Object
io.jmix.charts.model.AbstractChartObject
io.jmix.charts.model.label.Label
- All Implemented Interfaces:
Serializable
Creates a label on the chart which can be placed anywhere, multiple can be assigned.
See documentation for properties of Label JS Object.
http://docs.amcharts.com/3/javascriptcharts/Label
See documentation for properties of Label JS Object.
http://docs.amcharts.com/3/javascriptcharts/Label
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidcheckCorrectInputFormat(String value) getAlign()getAlpha()getBold()getColor()getId()getSize()getText()getUrl()getX()Gets the X position of the label.getY()Gets the Y position of the label.Sets align to the label.@Max(1L) @Min(0L) LabelSets opacity of the label.Set bold to true if label should be bold.Sets color of a label.Sets unique id of the label.setRotation(Integer rotation) Sets rotation angle.Sets text size.setTabIndex(Integer tabIndex) Sets tab index.Sets text of the label.Sets the URL which will be access if user clicks on a label.Sets the X position of the label.Sets the Y position of the label.
-
Constructor Details
-
Label
public Label()
-
-
Method Details
-
getAlign
- Returns:
- align
-
setAlign
Sets align to the label. If not set the default value is LEFT.- Parameters:
align- align- Returns:
- label
-
getAlpha
- Returns:
- opacity of the label
-
setAlpha
@StudioProperty(defaultValue="1") @Max(1L) @Min(0L) public @Max(1L) @Min(0L) Label setAlpha(Double alpha) Sets opacity of the label. If not set the default value is 1.- Parameters:
alpha- opacity- Returns:
- label
-
getBold
- Returns:
- true if label is bold
-
setBold
Set bold to true if label should be bold. If not set the default value is false.- Parameters:
bold- bold option- Returns:
- label
-
getColor
- Returns:
- color of a label
-
setColor
Sets color of a label.- Parameters:
color- color- Returns:
- label
-
getRotation
- Returns:
- rotation angle
-
setRotation
Sets rotation angle. If not set the default value is 0.- Parameters:
rotation- angle- Returns:
- label
-
getSize
- Returns:
- text size
-
setSize
Sets text size.- Parameters:
size- size- Returns:
- label
-
getText
- Returns:
- text of the label
-
setText
Sets text of the label.- Parameters:
text- text- Returns:
- label
-
getUrl
- Returns:
- the URL
-
setUrl
Sets the URL which will be access if user clicks on a label.- Parameters:
url- the URL- Returns:
- label
-
getX
Gets the X position of the label.- Returns:
- string with double or double with "%"
-
setX
Sets the X position of the label. You can set x coordinate in percentage or in pixels format. For instance, 50% - position with percentage, 50 - position in pixels.- Parameters:
x- double or double with "%"- Returns:
- label
-
getY
Gets the Y position of the label.- Returns:
- string with double or double with "%"
-
setY
Sets the Y position of the label. You can set x coordinate in percentage or in pixels format. For instance, 50% - position with percentage, 50 - position in pixels.- Parameters:
y- double or double with "%"- Returns:
- label
-
getId
- Returns:
- unique id of the label
-
setId
Sets unique id of the label.- Parameters:
id- id- Returns:
- label
-
getTabIndex
- Returns:
- tab index
-
setTabIndex
Sets tab index. In case you set it to some number, the chart will set focus on the label 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:
- label
-
checkCorrectInputFormat
-