Package io.jmix.charts.model
Class Guide
java.lang.Object
io.jmix.charts.model.AbstractChartObject
io.jmix.charts.model.Guide
- All Implemented Interfaces:
Serializable
Creates a horizontal/vertical guideline-/area for
SerialChartModelImpl
, XYChartModelImpl
and RadarChartModelImpl
charts, automatically adapts it's settings from the axes if none has been specified.
See documentation for properties of Guide JS Object.
http://docs.amcharts.com/3/javascriptcharts/Guide
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetAbove()
getAngle()
getColor()
getDate()
getId()
getLabel()
getValue()
Set above to true if the guide should be displayed above the graphs.Sets angle at which guide should start.setBalloonColor
(Color balloonColor) Sets balloon fill color.setBalloonText
(String balloonText) Sets the text which will be displayed if the user rolls-over the guide.setBoldLabel
(Boolean boldLabel) Set boldLabel to true if label should be bold.setCategory
(String category) Sets category of the guide (in case the guide is for category axis).Sets color of a guide label.setDashLength
(Integer dashLength) Sets dash length.Sets date of the guide (in case the guide is for category axis andCategoryAxis.parseDates
is set to true).Set expand to true if the guide should start (or be placed, if it's not a fill) on the beginning of the category cell and should end at the end of "toCategory" cell.@Max(1L) @Min(0L) Guide
setFillAlpha
(Double fillAlpha) Sets fill opacity.setFillColor
(Color fillColor) Sets fill color.setFontSize
(Integer fontSize) Sets font size of guide label.Sets unique id of a guide.Set inside to true if label should be placed inside plot area.Sets the label which will be displayed near the guide.setLabelRotation
(Integer labelRotation) Sets rotation angle of a guide label.@Max(1L) @Min(0L) Guide
setLineAlpha
(Double lineAlpha) Sets line opacity.setLineColor
(Color lineColor) Sets line color.setLineThickness
(Integer lineThickness) Sets line thickness.setPosition
(Position position) Sets position of guide label.setTickLength
(Integer tickLength) Sets tick length.setToAngle
(Integer toAngle) Sets the angle at which guide should end.setToCategory
(String toCategory) Sets "to" category of the guide (in case the guide is for category axis).Sets "to" date of the guide (in case the guide is for category axis andCategoryAxis.parseDates
is set to true) If you have both date and toDate, the space between these two dates can be filled with color.setToValue
(Object toValue) Sets "to" value of the guide (in case the guide is for value axis).Sets value of the guide (in case the guide is for value axis).setValueAxis
(String valueAxis) Sets value axis of a guide.
-
Constructor Details
-
Guide
public Guide()
-
-
Method Details
-
getAbove
- Returns:
- true if guide displayed above the graphs
-
setAbove
Set above to true if the guide should be displayed above the graphs. If not set the default value is false.- Parameters:
above
- above option- Returns:
- guide
-
getAngle
- Returns:
- angle at which guide starts
-
setAngle
Sets angle at which guide should start. Affects only fills, not lines. Radar chart only.- Parameters:
angle
- angle- Returns:
- guide
-
getBalloonColor
- Returns:
- balloon fill color
-
setBalloonColor
Sets balloon fill color.- Parameters:
balloonColor
- fill color- Returns:
- guide
-
getBalloonText
- Returns:
- balloon text which is displayed if the user rolls-over the guide
-
setBalloonText
Sets the text which will be displayed if the user rolls-over the guide.- Parameters:
balloonText
- balloon text- Returns:
- guide
-
getCategory
- Returns:
- category value
-
setCategory
Sets category of the guide (in case the guide is for category axis).- Parameters:
category
- category value- Returns:
- guide
-
getDashLength
- Returns:
- dash length.
-
setDashLength
Sets dash length.- Parameters:
dashLength
- dash length- Returns:
- guide
-
getDate
- Returns:
- date of the guide
-
setDate
Sets date of the guide (in case the guide is for category axis andCategoryAxis.parseDates
is set to true).- Parameters:
date
- date- Returns:
- guide
-
getFillAlpha
- Returns:
- fill opacity
-
setFillAlpha
Sets fill opacity. Value range is 0 - 1.- Parameters:
fillAlpha
- fill opacity- Returns:
- guide
-
getFillColor
- Returns:
- fill color
-
setFillColor
Sets fill color.- Parameters:
fillColor
- fill color- Returns:
- guide
-
getFontSize
- Returns:
- font size of guide label
-
setFontSize
Sets font size of guide label.- Parameters:
fontSize
- font size- Returns:
- guide
-
getInside
- Returns:
- true if if label is placed inside plot area
-
setInside
Set inside to true if label should be placed inside plot area.- Parameters:
inside
- inside option- Returns:
- guide
-
getLabel
- Returns:
- label which is displayed near the guide
-
setLabel
Sets the label which will be displayed near the guide.- Parameters:
label
- label string- Returns:
- guide
-
getLabelRotation
- Returns:
- rotation angle of a guide label
-
setLabelRotation
Sets rotation angle of a guide label.- Parameters:
labelRotation
- rotation angle- Returns:
- guide
-
getLineAlpha
- Returns:
- line opacity
-
setLineAlpha
Sets line opacity.- Parameters:
lineAlpha
- line opacity- Returns:
- guide
-
getLineColor
- Returns:
- line color
-
setLineColor
Sets line color.- Parameters:
lineColor
- line color- Returns:
- guide
-
getLineThickness
- Returns:
- line thickness
-
setLineThickness
Sets line thickness.- Parameters:
lineThickness
- line thickness- Returns:
- guide
-
getPosition
- Returns:
- position of guide label
-
setPosition
Sets position of guide label. Possible values are "left" or "right" for horizontal axis and "top" or "bottom" for vertical axis.- Parameters:
position
- position of guide label- Returns:
- guide
-
getTickLength
- Returns:
- tick length
-
setTickLength
Sets tick length.- Parameters:
tickLength
- tick length- Returns:
- guide
-
getToAngle
- Returns:
- angle at which guide ends
-
setToAngle
Sets the angle at which guide should end. Affects only fills, not lines. Radar chart only.- Parameters:
toAngle
- angle- Returns:
- guide
-
getToCategory
- Returns:
- "to" category of the guide
-
setToCategory
Sets "to" category of the guide (in case the guide is for category axis).- Parameters:
toCategory
- to category- Returns:
- guide
-
getToDate
- Returns:
- "to" date of the guide
-
setToDate
Sets "to" date of the guide (in case the guide is for category axis andCategoryAxis.parseDates
is set to true) If you have both date and toDate, the space between these two dates can be filled with color.- Parameters:
toDate
- date- Returns:
- guide
-
getToValue
- Returns:
- "to" value of the guide
-
setToValue
Sets "to" value of the guide (in case the guide is for value axis).- Parameters:
toValue
- to value- Returns:
- guide
-
getValue
- Returns:
- value of the guide
-
setValue
Sets value of the guide (in case the guide is for value axis).- Parameters:
value
- value- Returns:
- guide
-
getBoldLabel
- Returns:
- true if label is bold
-
setBoldLabel
Set boldLabel to true if label should be bold. If not set the default value is false.- Parameters:
boldLabel
- boldLabel option- Returns:
- guide
-
getColor
- Returns:
- color of a guide label
-
setColor
Sets color of a guide label.- Parameters:
color
- color- Returns:
- guide
-
getExpand
- Returns:
- true if the guide starts on the beginning of the category cell and ends at the end of "toCategory" cell
-
setExpand
Set expand to true if the guide should start (or be placed, if it's not a fill) on the beginning of the category cell and should end at the end of "toCategory" cell. Works if a guide is added toCategoryAxis
and this axis is non-date-based. If not set the default value is false.- Parameters:
expand
- expand option- Returns:
- guide
-
getId
- Returns:
- unique id of a guide
-
setId
Sets unique id of a guide.- Parameters:
id
- id- Returns:
- guide
-
getValueAxis
- Returns:
- value axis id
-
setValueAxis
Sets value axis of a guide. As you can add guides directly to the chart, you might need to specify which value axis should be used.- Parameters:
valueAxis
- value axis id- Returns:
- guide
-