Package io.jmix.charts.model.dataset
Class DataSetSelector
java.lang.Object
io.jmix.charts.model.AbstractChartObject
io.jmix.charts.model.dataset.DataSetSelector
- All Implemented Interfaces:
Serializable
DataSetSelector is a tool for selecting data set's as main and for comparing with main data set
See documentation for properties of DataSetSelector JS object.
http://docs.amcharts.com/3/javascriptstockchart/DataSetSelector
See documentation for properties of DataSetSelector JS object.
http://docs.amcharts.com/3/javascriptstockchart/DataSetSelector
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetWidth()
setComboBoxSelectText
(String comboBoxSelectText) Sets text displayed in the "compare to" combobox (when position is "top" or "bottom").setCompareText
(String compareText) Sets text displayed near "compare to" list.setListHeight
(Integer listHeight) Sets the maximum height of the "compare to" field in pixels.setPosition
(Position position) Sets position.setSelectText
(String selectText) Sets text displayed near "Select" drop down.Sets width of a data set selector, when position is "left" or "right".
-
Constructor Details
-
DataSetSelector
public DataSetSelector()
-
-
Method Details
-
getComboBoxSelectText
- Returns:
- text displayed in the "compare to" combobox
-
setComboBoxSelectText
@StudioProperty(defaultValue="Select...") public DataSetSelector setComboBoxSelectText(String comboBoxSelectText) Sets text displayed in the "compare to" combobox (when position is "top" or "bottom"). If not set the default value is "Select..."- Parameters:
comboBoxSelectText
- text- Returns:
- data set selector
-
getCompareText
- Returns:
- text displayed near "compare to" list
-
setCompareText
@StudioProperty(defaultValue="Compare to:") public DataSetSelector setCompareText(String compareText) Sets text displayed near "compare to" list. If not set the default value is "Compare to:".- Parameters:
compareText
- compare text- Returns:
- data set selector
-
getListHeight
- Returns:
- maximum height, in pixels
-
setListHeight
Sets the maximum height of the "compare to" field in pixels. If not set the default value is 150.- Parameters:
listHeight
- list height- Returns:
- data set selector
-
getPosition
- Returns:
- position
-
setPosition
Sets position. Possible values: "right", "left", "top", "bottom". "top" and "bottom" positions has a limitation - only one data set can be selected for comparing. If not set the default value is "right, left, top, bottom".- Parameters:
position
- position- Returns:
- data set selector
-
getSelectText
- Returns:
- select text
-
setSelectText
Sets text displayed near "Select" drop down. If not set the default value is "Select:".- Parameters:
selectText
- select text- Returns:
- data set selector
-
getWidth
- Returns:
- width of a data set selector
-
setWidth
Sets width of a data set selector, when position is "left" or "right". If not set the default value is 180.- Parameters:
width
- width- Returns:
- data set selector
-