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 SummaryConstructors
- 
Method SummaryModifier 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.parseDatesis 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) GuidesetFillAlpha(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) GuidesetLineAlpha(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.parseDatesis 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- 
Guidepublic Guide()
 
- 
- 
Method Details- 
getAbove- Returns:
- true if guide displayed above the graphs
 
- 
setAboveSet 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
 
- 
setAngleSets angle at which guide should start. Affects only fills, not lines. Radar chart only.- Parameters:
- angle- angle
- Returns:
- guide
 
- 
getBalloonColor- Returns:
- balloon fill color
 
- 
setBalloonColorSets balloon fill color.- Parameters:
- balloonColor- fill color
- Returns:
- guide
 
- 
getBalloonText- Returns:
- balloon text which is displayed if the user rolls-over the guide
 
- 
setBalloonTextSets the text which will be displayed if the user rolls-over the guide.- Parameters:
- balloonText- balloon text
- Returns:
- guide
 
- 
getCategory- Returns:
- category value
 
- 
setCategorySets category of the guide (in case the guide is for category axis).- Parameters:
- category- category value
- Returns:
- guide
 
- 
getDashLength- Returns:
- dash length.
 
- 
setDashLengthSets dash length.- Parameters:
- dashLength- dash length
- Returns:
- guide
 
- 
getDate- Returns:
- date of the guide
 
- 
setDateSets date of the guide (in case the guide is for category axis andCategoryAxis.parseDatesis set to true).- Parameters:
- date- date
- Returns:
- guide
 
- 
getFillAlpha- Returns:
- fill opacity
 
- 
setFillAlphaSets fill opacity. Value range is 0 - 1.- Parameters:
- fillAlpha- fill opacity
- Returns:
- guide
 
- 
getFillColor- Returns:
- fill color
 
- 
setFillColorSets fill color.- Parameters:
- fillColor- fill color
- Returns:
- guide
 
- 
getFontSize- Returns:
- font size of guide label
 
- 
setFontSizeSets font size of guide label.- Parameters:
- fontSize- font size
- Returns:
- guide
 
- 
getInside- Returns:
- true if if label is placed inside plot area
 
- 
setInsideSet 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
 
- 
setLabelSets the label which will be displayed near the guide.- Parameters:
- label- label string
- Returns:
- guide
 
- 
getLabelRotation- Returns:
- rotation angle of a guide label
 
- 
setLabelRotationSets rotation angle of a guide label.- Parameters:
- labelRotation- rotation angle
- Returns:
- guide
 
- 
getLineAlpha- Returns:
- line opacity
 
- 
setLineAlphaSets line opacity.- Parameters:
- lineAlpha- line opacity
- Returns:
- guide
 
- 
getLineColor- Returns:
- line color
 
- 
setLineColorSets line color.- Parameters:
- lineColor- line color
- Returns:
- guide
 
- 
getLineThickness- Returns:
- line thickness
 
- 
setLineThicknessSets line thickness.- Parameters:
- lineThickness- line thickness
- Returns:
- guide
 
- 
getPosition- Returns:
- position of guide label
 
- 
setPositionSets 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
 
- 
setTickLengthSets tick length.- Parameters:
- tickLength- tick length
- Returns:
- guide
 
- 
getToAngle- Returns:
- angle at which guide ends
 
- 
setToAngleSets 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
 
- 
setToCategorySets "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
 
- 
setToDateSets "to" date of the guide (in case the guide is for category axis andCategoryAxis.parseDatesis 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
 
- 
setToValueSets "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
 
- 
setValueSets value of the guide (in case the guide is for value axis).- Parameters:
- value- value
- Returns:
- guide
 
- 
getBoldLabel- Returns:
- true if label is bold
 
- 
setBoldLabelSet 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
 
- 
setColorSets 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
 
- 
setExpandSet 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 toCategoryAxisand 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
 
- 
setIdSets unique id of a guide.- Parameters:
- id- id
- Returns:
- guide
 
- 
getValueAxis- Returns:
- value axis id
 
- 
setValueAxisSets 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
 
 
-