Package io.jmix.charts.model.stock
Class StockEventsSettings
java.lang.Object
io.jmix.charts.model.AbstractChartObject
io.jmix.charts.model.stock.StockEventsSettings
- All Implemented Interfaces:
Serializable
Defines set of properties for all StockEvents.
See documentation for properties of StockEventsSettings JS object.
http://docs.amcharts.com/3/javascriptstockchart/StockEventsSettings
See documentation for properties of StockEventsSettings JS object.
http://docs.amcharts.com/3/javascriptstockchart/StockEventsSettings
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetType()
@Max(1L) @Min(0L) StockEventsSettings
setBackgroundAlpha
(Double backgroundAlpha) Sets opacity of bullet background.setBackgroundColor
(Color backgroundColor) Sets color of bullet background.setBalloonColor
(Color balloonColor) Sets color for a roll-over balloon.@Max(1L) @Min(0L) StockEventsSettings
setBorderAlpha
(Double borderAlpha) Sets opacity of bullet border.setBorderColor
(Color borderColor) Sets bullet border color.setRollOverColor
(Color rollOverColor) Sets roll-over background color.Allows placing event bullets at "open", "close", "low", "high" values.setType
(StockEventType type) Sets type of bullet.
-
Constructor Details
-
StockEventsSettings
public StockEventsSettings()
-
-
Method Details
-
getBackgroundAlpha
- Returns:
- opacity of bullet background
-
setBackgroundAlpha
@StudioProperty(defaultValue="1") @Max(1L) @Min(0L) public @Max(1L) @Min(0L) StockEventsSettings setBackgroundAlpha(Double backgroundAlpha) Sets opacity of bullet background. If not set the default value is 1.- Parameters:
backgroundAlpha
- opacity- Returns:
- stock event settings
-
getBackgroundColor
- Returns:
- color of bullet background
-
setBackgroundColor
@StudioProperty(type=OPTIONS, defaultValue="#DADADA") public StockEventsSettings setBackgroundColor(Color backgroundColor) Sets color of bullet background. If not set the default value is #DADADA.- Parameters:
backgroundColor
- color- Returns:
- stock event settings
-
getBalloonColor
- Returns:
- color for a roll-over balloon
-
setBalloonColor
@StudioProperty(type=OPTIONS, defaultValue="#CC0000") public StockEventsSettings setBalloonColor(Color balloonColor) Sets color for a roll-over balloon. If not set the default value is #CC0000.- Parameters:
balloonColor
- balloon color- Returns:
- stock event settings
-
getBorderAlpha
- Returns:
- opacity of bullet border
-
setBorderAlpha
@StudioProperty(defaultValue="1") @Max(1L) @Min(0L) public @Max(1L) @Min(0L) StockEventsSettings setBorderAlpha(Double borderAlpha) Sets opacity of bullet border. If not set the default value is 1.- Parameters:
borderAlpha
- opacity- Returns:
- stock event settings
-
getBorderColor
- Returns:
- bullet border color
-
setBorderColor
@StudioProperty(type=OPTIONS, defaultValue="#888888") public StockEventsSettings setBorderColor(Color borderColor) Sets bullet border color. If not set the default value is #888888.- Parameters:
borderColor
- color- Returns:
- stock event settings
-
getRollOverColor
- Returns:
- roll-over background color
-
setRollOverColor
@StudioProperty(type=OPTIONS, defaultValue="#CC0000") public StockEventsSettings setRollOverColor(Color rollOverColor) Sets roll-over background color. If not set the default value is #CC0000.- Parameters:
rollOverColor
- color- Returns:
- stock event settings
-
getShowAt
- Returns:
- showAt string
-
setShowAt
@StudioProperty(type=OPTIONS, options={"open","close","low","high"}, defaultValue="close") public StockEventsSettings setShowAt(String showAt) Allows placing event bullets at "open", "close", "low", "high" values. If not set the default value is "close".- Parameters:
showAt
- showAt string- Returns:
- stock event settings
-
getType
- Returns:
- type of bullet
-
setType
@StudioProperty(type=ENUMERATION, defaultValue="SIGN") public StockEventsSettings setType(StockEventType type) Sets type of bullet. If not set the default value is SIGN.- Parameters:
type
- type- Returns:
- stock event settings
-