Package io.jmix.charts.model
Class GaugeArrow
java.lang.Object
io.jmix.charts.model.AbstractChartObject
io.jmix.charts.model.GaugeArrow
- All Implemented Interfaces:
Serializable
Creates an arrow for
See documentation for properties of GaugeArrow JS Object.
http://docs.amcharts.com/3/javascriptcharts/GaugeArrow
AngularGaugeChart
chart, multiple can be assigned.
See documentation for properties of GaugeArrow JS Object.
http://docs.amcharts.com/3/javascriptcharts/GaugeArrow
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetAlpha()
getAxis()
getColor()
getId()
getValue()
@Max(1L) @Min(0L) GaugeArrow
Sets opacity of an arrow.Sets axis of the arrow.@Max(1L) @Min(0L) GaugeArrow
setBorderAlpha
(Double borderAlpha) Sets opacity of arrow border.setClockWiseOnly
(Boolean clockWiseOnly) Set clockWiseOnly to true if you need the arrow to rotate only clock-wise.Sets color of an arrow.Sets unique id of an arrow.setInnerRadius
(String innerRadius) Sets inner radius of an arrow.@Max(1L) @Min(0L) GaugeArrow
setNailAlpha
(Double nailAlpha) Sets opacity of a nail, holding the arrow.@Max(1L) @Min(0L) GaugeArrow
setNailBorderAlpha
(Double nailBorderAlpha) Sets opacity of nail border.setNailBorderThickness
(Integer nailBorderThickness) Sets thickness of nail border.setNailRadius
(Integer nailRadius) Sets radius of a nail, holding the arrow.Sets radius of an arrow.setStartWidth
(Integer startWidth) Sets width of arrow root.Sets value to which the arrow should point at.
-
Constructor Details
-
GaugeArrow
public GaugeArrow()
-
-
Method Details
-
getAlpha
- Returns:
- opacity of an arrow
-
setAlpha
@StudioProperty(defaultValue="1") @Max(1L) @Min(0L) public @Max(1L) @Min(0L) GaugeArrow setAlpha(Double alpha) Sets opacity of an arrow. If not set the default value is 1.- Parameters:
alpha
- opacity- Returns:
- gauge arrow
-
getBorderAlpha
- Returns:
- opacity of arrow border
-
setBorderAlpha
@StudioProperty(defaultValue="1") @Max(1L) @Min(0L) public @Max(1L) @Min(0L) GaugeArrow setBorderAlpha(Double borderAlpha) Sets opacity of arrow border. If not set the default value is 1.- Parameters:
borderAlpha
- border opacity- Returns:
- gauge arrow
-
getClockWiseOnly
- Returns:
- true if clockWiseOnly is enabled
-
setClockWiseOnly
Set clockWiseOnly to true if you need the arrow to rotate only clock-wise. If not set the default value is false.- Parameters:
clockWiseOnly
- clockWiseOnly option- Returns:
- gauge arrow
-
getColor
- Returns:
- color of an arrow
-
setColor
Sets color of an arrow. If not set the default value is #000000.- Parameters:
color
- color- Returns:
- gauge arrow
-
getInnerRadius
- Returns:
- inner radius
-
setInnerRadius
Sets inner radius of an arrow. If not set the default value is 0.- Parameters:
innerRadius
- inner radius- Returns:
- gauge arrow
-
getNailAlpha
- Returns:
- opacity of a nail, holding the arrow
-
setNailAlpha
@StudioProperty(defaultValue="1") @Max(1L) @Min(0L) public @Max(1L) @Min(0L) GaugeArrow setNailAlpha(Double nailAlpha) Sets opacity of a nail, holding the arrow. If not set the default value is 1.- Parameters:
nailAlpha
- opacity- Returns:
- gauge arrow
-
getNailBorderAlpha
- Returns:
- opacity of nail border
-
setNailBorderAlpha
@StudioProperty(defaultValue="0") @Max(1L) @Min(0L) public @Max(1L) @Min(0L) GaugeArrow setNailBorderAlpha(Double nailBorderAlpha) Sets opacity of nail border. If not set the default value is 0.- Parameters:
nailBorderAlpha
- opacity- Returns:
- gauge arrow
-
getNailBorderThickness
- Returns:
- thickness of nail border
-
setNailBorderThickness
@StudioProperty(defaultValue="1") public GaugeArrow setNailBorderThickness(Integer nailBorderThickness) Sets thickness of nail border. If not set the default value is 1.- Parameters:
nailBorderThickness
- thickness- Returns:
- gauge arrow
-
getNailRadius
- Returns:
- radius
-
setNailRadius
Sets radius of a nail, holding the arrow. If not set the default value is 8.- Parameters:
nailRadius
- radius- Returns:
- gauge arrow
-
getRadius
- Returns:
- radius of an arrow
-
setRadius
Sets radius of an arrow. If not set the default value is 90%.- Parameters:
radius
- radius- Returns:
- gauge arrow
-
getStartWidth
- Returns:
- width of arrow root
-
setStartWidth
Sets width of arrow root. If not set the default value is 8.- Parameters:
startWidth
- width- Returns:
- gauge arrow
-
getAxis
- Returns:
- axis id
-
setAxis
Sets axis of the arrow. If you don't set any axis, the first axis of a chart will be used.- Parameters:
axis
- axis id- Returns:
- gauge arrow
-
getId
- Returns:
- unique id of an arrow
-
setId
Sets unique id of an arrow.- Parameters:
id
- unique id of an arrow- Returns:
- gauge arrow
-
getValue
- Returns:
- value to which the arrow is point at
-
setValue
Sets value to which the arrow should point at.- Parameters:
value
- value- Returns:
- gauge arrow
-