Package io.jmix.charts.model.chart
Interface RectangularChartModel<T extends RectangularChartModel>
- All Superinterfaces:
ChartModel<T>
,CoordinateChartModel<T>
,HasColors<T>
,HasMargins<T>
,HasStartEffect<T>
- All Known Subinterfaces:
GanttChart
,GanttChartModel<T>
,RectangularChart<T>
,SerialChart
,SeriesBasedChart<T>
,SeriesBasedChartModel<T>
,XYChart
,XYChartModel<T>
- All Known Implementing Classes:
AbstractSerialChart
,GanttChartImpl
,GanttChartModelImpl
,RectangularChartImpl
,RectangularChartModelImpl
,SerialChartImpl
,SerialChartModelImpl
,SeriesBasedChartImpl
,StockPanel
,XYChartImpl
,XYChartModelImpl
public interface RectangularChartModel<T extends RectangularChartModel>
extends CoordinateChartModel<T>, HasMargins<T>
-
Method Summary
Modifier and TypeMethodDescriptionaddTrendLines
(TrendLine... trendLines) Adds trend lines.getAngle()
Sets the angle of the 3D part of plot area.setAutoMarginOffset
(Integer autoMarginOffset) Sets space left from axis labels/title to the chart's outside border, if autoMargins set to true.setAutoMargins
(Boolean autoMargins) Specifies if margins of a chart should be calculated automatically so that labels of axes would fit.setChartCursor
(Cursor chartCursor) Sets cursor of a chart.setChartScrollbar
(Scrollbar chartScrollbar) Sets chart scrollbar.setDepth3D
(Integer depth3D) Sets the depth of the 3D part of plot area.setMarginsUpdated
(Boolean marginsUpdated) Set to false if you need margins to be recalculated on next validateNow() call.setMaxZoomFactor
(Integer maxZoomFactor) Sets the maximum zoom factor value axes.setMinMarginBottom
(Integer minMarginBottom) Sets the minimum margin bottom.setMinMarginLeft
(Integer minMarginLeft) Sets the minimum margin left.setMinMarginRight
(Integer minMarginRight) Sets the minimum margin right.setMinMarginTop
(Integer minMarginTop) Sets the minimum margin top.setPlotAreaBorderAlpha
(Double plotAreaBorderAlpha) Sets the opacity of plot area's border.setPlotAreaBorderColor
(Color plotAreaBorderColor) Sets the color of the plot area's border.setPlotAreaFillAlphas
(Double plotAreaFillAlphas) Sets opacity of plot area.setPlotAreaFillColors
(List<Color> plotAreaFillColors) Sets the list of plot area colors.setPlotAreaGradientAngle
(Integer plotAreaGradientAngle) Sets the gradient angle, if you are using gradients to fill the plot area.setTrendLines
(List<TrendLine> trendLines) Sets the list of trend lines.setZoomOutButtonAlpha
(Double zoomOutButtonAlpha) Sets opacity of zoom-out button background.setZoomOutButtonColor
(Color zoomOutButtonColor) Sets zoom-out button background color.setZoomOutButtonImage
(String zoomOutButtonImage) Sets the name of zoom-out button image.setZoomOutButtonImageSize
(Integer zoomOutButtonImageSize) Sets the size of zoom-out button image.setZoomOutButtonPadding
(Integer zoomOutButtonPadding) Sets padding around the text and image.setZoomOutButtonRollOverAlpha
(Double zoomOutButtonRollOverAlpha) Sets opacity of zoom-out button background when mouse is over it.setZoomOutButtonTabIndex
(Integer zoomOutButtonTabIndex) In case you set it to some number, the chart will set focus on zoom-out button when user clicks tab key.setZoomOutText
(String zoomOutText) Sets text in the zoom-out button.Methods inherited from interface io.jmix.charts.model.chart.ChartModel
addAdditionalFields, addData, addLabels, addPrefixesOfBigNumbers, addPrefixesOfSmallNumbers, addTitles, getAccessible, getAccessibleDescription, getAccessibleTitle, getAddClassNames, getAdditionalFields, getAllLabels, getAutoDisplay, getAutoResize, getAutoTransform, getBackgroundAlpha, getBackgroundColor, getBalloon, getBorderAlpha, getBorderColor, getClassNamePrefix, getColor, getCreditsPosition, getDataProvider, getDecimalSeparator, getDefs, getExport, getFontFamily, getFontSize, getHandDrawn, getHandDrawScatter, getHandDrawThickness, getHideBalloonTime, getLanguage, getLegend, getPanEventsEnabled, getPath, getPathToImages, getPercentPrecision, getPrecision, getPrefixesOfBigNumbers, getPrefixesOfSmallNumbers, getProcessCount, getProcessTimeout, getResponsive, getSvgIcons, getTapToActivate, getTheme, getThousandsSeparator, getTitles, getTouchClickDuration, getUsePrefixes, setAccessible, setAccessibleDescription, setAccessibleTitle, setAddClassNames, setAdditionalFields, setAllLabels, setAutoDisplay, setAutoResize, setAutoTransform, setBackgroundAlpha, setBackgroundColor, setBalloon, setBorderAlpha, setBorderColor, setClassNamePrefix, setColor, setCreditsPosition, setDataProvider, setDecimalSeparator, setDefs, setExport, setFontFamily, setFontSize, setHandDrawn, setHandDrawScatter, setHandDrawThickness, setHideBalloonTime, setLanguage, setLegend, setPanEventsEnabled, setPath, setPathToImages, setPercentPrecision, setPrecision, setPrefixesOfBigNumbers, setPrefixesOfSmallNumbers, setProcessCount, setProcessTimeout, setResponsive, setSvgIcons, setTapToActivate, setTheme, setThousandsSeparator, setTitles, setTouchClickDuration, setUsePrefixes
Methods inherited from interface io.jmix.charts.model.chart.CoordinateChartModel
addGraphs, addGuides, addValueAxes, getGraphs, getGridAboveGraphs, getGuides, getSequencedAnimation, getStartAlpha, getUrlTarget, getValueAxes, setGraphs, setGridAboveGraphs, setGuides, setSequencedAnimation, setStartAlpha, setUrlTarget, setValueAxes
Methods inherited from interface io.jmix.charts.model.HasMargins
getMarginBottom, getMarginLeft, getMarginRight, getMarginTop, setMarginBottom, setMarginLeft, setMarginRight, setMarginTop
Methods inherited from interface io.jmix.charts.model.animation.HasStartEffect
getStartDuration, getStartEffect, setStartDuration, setStartEffect
-
Method Details
-
getChartCursor
Cursor getChartCursor()- Returns:
- chart cursor
-
setChartCursor
Sets cursor of a chart.- Parameters:
chartCursor
- the chart cursor- Returns:
- rectangular chart model
-
getChartScrollbar
Scrollbar getChartScrollbar()- Returns:
- chart scrollbar
-
setChartScrollbar
Sets chart scrollbar.- Parameters:
chartScrollbar
- the chart scrollbar- Returns:
- rectangular chart model
-
getTrendLines
- Returns:
- list of trend lines
-
setTrendLines
@StudioElementsGroup(caption="Trend Lines", xmlElement="trendLines") T setTrendLines(List<TrendLine> trendLines) Sets the list of trend lines.- Parameters:
trendLines
- list of trend lines- Returns:
- rectangular chart model
-
addTrendLines
Adds trend lines.- Parameters:
trendLines
- the trend lines- Returns:
- rectangular chart model
-
getAngle
Integer getAngle()- Returns:
- angle of the 3D part of plot area
-
setAngle
Sets the angle of the 3D part of plot area. This creates a 3D effect (if the depth3D is greater than 0). If not set the default value is 0.- Parameters:
angle
- the angle- Returns:
- rectangular chart model
-
getAutoMarginOffset
Integer getAutoMarginOffset()- Returns:
- auto margin offset
-
setAutoMarginOffset
Sets space left from axis labels/title to the chart's outside border, if autoMargins set to true. If not set the default value is 10.- Parameters:
autoMarginOffset
- the auto margin offset- Returns:
- rectangular chart model
-
getAutoMargins
Boolean getAutoMargins()- Returns:
- true if auto margins is enabled
-
setAutoMargins
Specifies if margins of a chart should be calculated automatically so that labels of axes would fit. The chart will adjust only margins with axes. Other margins will use values set with marginRight, marginTop, marginLeft and marginBottom properties. If not set the default value is true.- Parameters:
autoMargins
- auto margins option- Returns:
- rectangular chart model
-
getDepth3D
Integer getDepth3D()- Returns:
- depth of the 3D part of plot area
-
setDepth3D
Sets the depth of the 3D part of plot area. This creates a 3D effect (if the angle is greater than 0). If not set the default value is 0.- Parameters:
depth3D
- the depth 3D- Returns:
- rectangular chart model
-
getMarginsUpdated
Boolean getMarginsUpdated()- Returns:
- true if margins update is enabled
-
setMarginsUpdated
Set to false if you need margins to be recalculated on next validateNow() call. If not set the default value is false.- Parameters:
marginsUpdated
- the margin update option- Returns:
- rectangular chart model
-
getPlotAreaBorderAlpha
Double getPlotAreaBorderAlpha()- Returns:
- opacity of plot area's border
-
setPlotAreaBorderAlpha
@StudioProperty(defaultValue="0") @Max(1L) @Min(0L) T setPlotAreaBorderAlpha(Double plotAreaBorderAlpha) Sets the opacity of plot area's border. Value range is 0 - 1. If not set the default value is 0.- Parameters:
plotAreaBorderAlpha
- opacity of plot area's border- Returns:
- rectangular chart model
-
getPlotAreaBorderColor
Color getPlotAreaBorderColor()- Returns:
- plot area border color
-
setPlotAreaBorderColor
@StudioProperty(type=OPTIONS, defaultValue="#000000") T setPlotAreaBorderColor(Color plotAreaBorderColor) Sets the color of the plot area's border. Set it to a value higher than 0 to make it visible. If not set the default value is #000000.- Parameters:
plotAreaBorderColor
- the plot area border color- Returns:
- rectangular chart model
-
getPlotAreaFillAlphas
Double getPlotAreaFillAlphas()- Returns:
- opacity of plot area
-
setPlotAreaFillAlphas
@StudioProperty(defaultValue="0") @Max(1L) @Min(0L) T setPlotAreaFillAlphas(Double plotAreaFillAlphas) Sets opacity of plot area. If not set the default value is 0.- Parameters:
plotAreaFillAlphas
- opacity- Returns:
- rectangular chart model
-
getPlotAreaFillColors
- Returns:
- list of plot area colors
-
setPlotAreaFillColors
Sets the list of plot area colors. Create several colors if you need to generate gradients or create one if you need to get a solid color. If not set the default value is #FFFFFF.- Parameters:
plotAreaFillColors
- list of plot area colors- Returns:
- rectangular chart model
-
getPlotAreaGradientAngle
Integer getPlotAreaGradientAngle()- Returns:
- plot area gradient angle
-
setPlotAreaGradientAngle
@StudioProperty(type=ENUMERATION, options={"0","90","180","270"}, defaultValue="0") T setPlotAreaGradientAngle(Integer plotAreaGradientAngle) Sets the gradient angle, if you are using gradients to fill the plot area. The only allowed values are horizontal and vertical: 0, 90, 180, 270. If not set the default value is 0.- Parameters:
plotAreaGradientAngle
- the plot area gradient angle- Returns:
- rectangular chart model
-
getZoomOutButtonAlpha
Double getZoomOutButtonAlpha()- Returns:
- opacity of zoom-out button background
-
setZoomOutButtonAlpha
@StudioProperty(defaultValue="0") @Max(1L) @Min(0L) T setZoomOutButtonAlpha(Double zoomOutButtonAlpha) Sets opacity of zoom-out button background. If not set the default value is 0.- Parameters:
zoomOutButtonAlpha
- opacity of zoom-out button background- Returns:
- rectangular chart model
-
getZoomOutButtonColor
Color getZoomOutButtonColor()- Returns:
- zoom-out button background color
-
setZoomOutButtonColor
@StudioProperty(type=OPTIONS, defaultValue="#E5E5E5") T setZoomOutButtonColor(Color zoomOutButtonColor) Sets zoom-out button background color. If not set the default value is #e5e5e5.- Parameters:
zoomOutButtonColor
- zoom-out button background color- Returns:
- rectangular chart model
-
getZoomOutButtonImage
String getZoomOutButtonImage()- Returns:
- zoom out button image name
-
setZoomOutButtonImage
Sets the name of zoom-out button image. Note, you don't have to set image extension. If svgIcons is set to true, ".svg" will be added to the file name if SVG is supported by the browser, otherwise – ".png". If not set the default value is "lens".- Parameters:
zoomOutButtonImage
- zoom out button image name string- Returns:
- rectangular chart model
-
getZoomOutButtonImageSize
Integer getZoomOutButtonImageSize()- Returns:
- zoom out button image size
-
setZoomOutButtonImageSize
Sets the size of zoom-out button image. If not set the default value is 17.- Parameters:
zoomOutButtonImageSize
- the zoom out button image size- Returns:
- rectangular chart model
-
getZoomOutButtonPadding
Integer getZoomOutButtonPadding()- Returns:
- zoom out button padding
-
setZoomOutButtonPadding
Sets padding around the text and image. If not set the default value is 8.- Parameters:
zoomOutButtonPadding
- the zoom out button padding- Returns:
- rectangular chart model
-
getZoomOutButtonRollOverAlpha
Double getZoomOutButtonRollOverAlpha()- Returns:
- opacity of zoom-out button background
-
setZoomOutButtonRollOverAlpha
@StudioProperty(defaultValue="1") @Max(1L) @Min(0L) T setZoomOutButtonRollOverAlpha(Double zoomOutButtonRollOverAlpha) Sets opacity of zoom-out button background when mouse is over it. If not set the default value is 1.- Parameters:
zoomOutButtonRollOverAlpha
- opacity of zoom-out button background- Returns:
- rectangular chart model
-
getZoomOutText
String getZoomOutText()- Returns:
- zoom out text
-
setZoomOutText
Sets text in the zoom-out button. If not set the default value is "Show all".- Parameters:
zoomOutText
- zoom out text string- Returns:
- rectangular chart model
-
getMaxZoomFactor
Integer getMaxZoomFactor()- Returns:
- maximum zoom factor
-
setMaxZoomFactor
Sets the maximum zoom factor value axes. If not set the default value is 20.- Parameters:
maxZoomFactor
- maximum zoom factor- Returns:
- rectangular chart model
-
getMinMarginBottom
Integer getMinMarginBottom()- Returns:
- minimum margin bottom
-
setMinMarginBottom
Sets the minimum margin bottom. If bottom side has a value axis and autoMargins is set to true, the margin of this side will be not less than set on minMarginBottom property.- Parameters:
minMarginBottom
- the minimum margin bottom- Returns:
- rectangular chart model
-
getMinMarginLeft
Integer getMinMarginLeft()- Returns:
- minimum margin left
-
setMinMarginLeft
Sets the minimum margin left. If left side has a value axis and autoMargins is set to true, the margin of this side will be not less than set on minMarginLeft property.- Parameters:
minMarginLeft
- the minimum margin left- Returns:
- rectangular chart model
-
getMinMarginRight
Integer getMinMarginRight()- Returns:
- minimum margin right
-
setMinMarginRight
Sets the minimum margin right. If right side has a value axis and autoMargins is set to true, the margin of this side will be not less than set on minMarginRight property.- Parameters:
minMarginRight
- the minimum margin right- Returns:
- rectangular chart model
-
getMinMarginTop
Integer getMinMarginTop()- Returns:
- minimum margin top
-
setMinMarginTop
Sets the minimum margin top. If top side has a value axis and autoMargins is set to true, the margin of this side will be not less than set on minMarginTop property.- Parameters:
minMarginTop
- the minimum margin top- Returns:
- rectangular chart model
-
getZoomOutButtonTabIndex
Integer getZoomOutButtonTabIndex()- Returns:
- zoom out button tab index
-
setZoomOutButtonTabIndex
In case you set it to some number, the chart will set focus on zoom-out button when user clicks tab key. When a focus is set, screen readers like NVDA Screen reader will read zoomOutText. If user clicks Enter when a focus is set, the chart will zoom-out. Note, not all browsers and readers support this.- Parameters:
zoomOutButtonTabIndex
- the zoom out button tab index- Returns:
- rectangular chart model
-