Package io.jmix.charts.model
Class GaugeBand
java.lang.Object
io.jmix.charts.model.AbstractChartObject
io.jmix.charts.model.GaugeBand
- All Implemented Interfaces:
Serializable
Creates a band for a specified value range on the
See documentation for properties of GaugeBand JS Object.
http://docs.amcharts.com/3/javascriptcharts/GaugeBand
GaugeAxis
. Multiple bands can be assigned to a single
GaugeAxis
.
See documentation for properties of GaugeBand JS Object.
http://docs.amcharts.com/3/javascriptcharts/GaugeBand
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetAlpha()
getColor()
getId()
getUrl()
@Max(1L) @Min(0L) GaugeBand
Sets opacity of band fill.setBalloonText
(String balloonText) Sets balloon text.Sets color of a band.setEndValue
(Double endValue) Sets end value of a fill.setGradientRatio
(List<Float> gradientRatio) Sets list of gradient ratio.Sets unique id of a band.setInnerRadius
(String innerRadius) Sets inner radius of a band.Sets band radius.setStartValue
(Double startValue) Sets start value of a fill.Sets URL for band.
-
Constructor Details
-
GaugeBand
public GaugeBand()
-
-
Method Details
-
getAlpha
- Returns:
- opacity of band fill
-
setAlpha
Sets opacity of band fill. Will useGaugeAxis.bandAlpha
if not set any.- Parameters:
alpha
- opacity- Returns:
- gauge band
-
getColor
- Returns:
- color of a band
-
setColor
Sets color of a band.- Parameters:
color
- color- Returns:
- gauge band
-
getEndValue
- Returns:
- end value of a fill
-
setEndValue
Sets end value of a fill.- Parameters:
endValue
- end value- Returns:
- gauge band
-
getInnerRadius
- Returns:
- inner radius of a band
-
setInnerRadius
Sets inner radius of a band. If not set any, the band will end with the end of minor ticks. Set 0 if you want the band to be drawn to the axis center.- Parameters:
innerRadius
- inner radius- Returns:
- gauge band
-
getRadius
- Returns:
- band radius
-
setRadius
Sets band radius. If not set any, the band will start with the axis outline.- Parameters:
radius
- band radius- Returns:
- gauge band
-
getStartValue
- Returns:
- start value of a fill
-
setStartValue
Sets start value of a fill.- Parameters:
startValue
- start value- Returns:
- gauge band
-
getBalloonText
- Returns:
- balloon text
-
setBalloonText
Sets balloon text. When rolled-over, band will display balloon.- Parameters:
balloonText
- balloon text- Returns:
- gauge band
-
getId
- Returns:
- unique id of a band
-
setId
Sets unique id of a band.- Parameters:
id
- id- Returns:
- gauge band
-
getUrl
- Returns:
- the URL
-
setUrl
Sets URL for band. Gauge band can be clickable and can lead to some page.- Parameters:
url
- the URL- Returns:
- gauge band
-
getGradientRatio
- Returns:
- list of gradient ratio
-
setGradientRatio
Sets list of gradient ratio. Will make bands to be filled with color gradients. Negative value means the color will be darker than the original, and positive number means the color will be lighter.- Parameters:
gradientRatio
- list of gradient ratio- Returns:
- gauge band
-