Class AngularGaugeChartModelImpl
- All Implemented Interfaces:
HasStartEffect<AngularGaugeChartModelImpl>
,AngularGaugeChartModel<AngularGaugeChartModelImpl>
,ChartModel<AngularGaugeChartModelImpl>
,HasMargins<AngularGaugeChartModelImpl>
,Serializable
http://docs.amcharts.com/3/javascriptcharts/AmAngularGauge
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class io.jmix.charts.model.chart.impl.AbstractChart
AbstractChart.DataProviderChangeListener
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionaddArrows
(GaugeArrow... arrows) Adds GaugeArrows.Adds GaugeAxis.getAxes()
setAdjustSize
(Boolean adjustSize) Sets using the whole space of the canvas to draw the gauge.setArrows
(List<GaugeArrow> arrows) Sets list of GaugeArrow.Sets list of GaugeAxis.setClockWiseOnly
(Boolean clockWiseOnly) Set clockWiseOnly to true if you use gauge to create a clock.setFaceAlpha
(Double faceAlpha) Sets gauge face opacity.setFaceBorderAlpha
(Double faceBorderAlpha) Sets gauge face border opacity.setFaceBorderColor
(Color faceBorderColor) Sets gauge face border color.setFaceBorderWidth
(Integer faceBorderWidth) Sets gauge face border width.setFaceColor
(Color faceColor) Sets gauge face color, requires faceAlpha greater than 0 value.setFacePattern
(Pattern facePattern) Sets gauge face image-pattern.Sets gauge's horizontal position in pixel, origin is the center.Sets gauge's vertical position in pixel, origin is the center.setMarginBottom
(Integer marginBottom) Sets bottom spacing.setMarginLeft
(Integer marginLeft) Sets left-hand spacing.setMarginRight
(Integer marginRight) Sets right-hand spacing.setMarginTop
(Integer marginTop) Sets top spacing.setMinRadius
(Integer minRadius) Sets minimum radius of a gauge.setStartDuration
(Double startDuration) Sets duration of the animation, in seconds.setStartEffect
(AnimationEffect startEffect) Sets animation effect.Methods inherited from class io.jmix.charts.model.chart.impl.AbstractChart
addAdditionalFields, addData, addDataProviderChangeListener, addLabels, addPrefixesOfBigNumbers, addPrefixesOfSmallNumbers, addTitles, fireDataProviderChanged, 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, getType, getUsePrefixes, getWiredFields, removeDataProviderSetListener, 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 class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
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
-
Constructor Details
-
AngularGaugeChartModelImpl
public AngularGaugeChartModelImpl()
-
-
Method Details
-
getAdjustSize
- Specified by:
getAdjustSize
in interfaceAngularGaugeChartModel<AngularGaugeChartModelImpl>
- Returns:
- true if adjust size is enabled
-
setAdjustSize
Description copied from interface:AngularGaugeChartModel
Sets using the whole space of the canvas to draw the gauge. If not set the default value is true.- Specified by:
setAdjustSize
in interfaceAngularGaugeChartModel<AngularGaugeChartModelImpl>
- Parameters:
adjustSize
- adjust size option- Returns:
- chart model
-
getArrows
- Specified by:
getArrows
in interfaceAngularGaugeChartModel<AngularGaugeChartModelImpl>
- Returns:
- list of GaugeArrow
-
setArrows
Description copied from interface:AngularGaugeChartModel
Sets list of GaugeArrow.- Specified by:
setArrows
in interfaceAngularGaugeChartModel<AngularGaugeChartModelImpl>
- Parameters:
arrows
- the arrows- Returns:
- chart model
-
addArrows
Description copied from interface:AngularGaugeChartModel
Adds GaugeArrows.- Specified by:
addArrows
in interfaceAngularGaugeChartModel<AngularGaugeChartModelImpl>
- Parameters:
arrows
- the arrows- Returns:
- chart model
-
getAxes
- Specified by:
getAxes
in interfaceAngularGaugeChartModel<AngularGaugeChartModelImpl>
- Returns:
- list of GaugeAxis
-
setAxes
Description copied from interface:AngularGaugeChartModel
Sets list of GaugeAxis.- Specified by:
setAxes
in interfaceAngularGaugeChartModel<AngularGaugeChartModelImpl>
- Parameters:
axes
- the axes- Returns:
- chart model
-
addAxes
Description copied from interface:AngularGaugeChartModel
Adds GaugeAxis.- Specified by:
addAxes
in interfaceAngularGaugeChartModel<AngularGaugeChartModelImpl>
- Parameters:
axes
- the axes- Returns:
- chart model
-
getClockWiseOnly
- Specified by:
getClockWiseOnly
in interfaceAngularGaugeChartModel<AngularGaugeChartModelImpl>
- Returns:
- true if clock wise only is enabled
-
setClockWiseOnly
Description copied from interface:AngularGaugeChartModel
Set clockWiseOnly to true if you use gauge to create a clock. If not set the default value is false.- Specified by:
setClockWiseOnly
in interfaceAngularGaugeChartModel<AngularGaugeChartModelImpl>
- Parameters:
clockWiseOnly
- clock wise only option- Returns:
- chart model
-
getFaceAlpha
- Specified by:
getFaceAlpha
in interfaceAngularGaugeChartModel<AngularGaugeChartModelImpl>
- Returns:
- gauge face opacity
-
setFaceAlpha
Description copied from interface:AngularGaugeChartModel
Sets gauge face opacity. If not set the default value is 0.- Specified by:
setFaceAlpha
in interfaceAngularGaugeChartModel<AngularGaugeChartModelImpl>
- Parameters:
faceAlpha
- the face alpha- Returns:
- chart model
-
getFaceBorderAlpha
- Specified by:
getFaceBorderAlpha
in interfaceAngularGaugeChartModel<AngularGaugeChartModelImpl>
- Returns:
- gauge face border opacity.
-
setFaceBorderAlpha
Description copied from interface:AngularGaugeChartModel
Sets gauge face border opacity. If not set the default value is 0.- Specified by:
setFaceBorderAlpha
in interfaceAngularGaugeChartModel<AngularGaugeChartModelImpl>
- Parameters:
faceBorderAlpha
- the face border alpha- Returns:
- chart model
-
getFaceBorderColor
- Specified by:
getFaceBorderColor
in interfaceAngularGaugeChartModel<AngularGaugeChartModelImpl>
- Returns:
- gauge face border color.
-
setFaceBorderColor
Description copied from interface:AngularGaugeChartModel
Sets gauge face border color. If not set the default value is #555555.- Specified by:
setFaceBorderColor
in interfaceAngularGaugeChartModel<AngularGaugeChartModelImpl>
- Parameters:
faceBorderColor
- the face border color- Returns:
- chart model
-
getFaceBorderWidth
- Specified by:
getFaceBorderWidth
in interfaceAngularGaugeChartModel<AngularGaugeChartModelImpl>
- Returns:
- gauge face border width.
-
setFaceBorderWidth
Description copied from interface:AngularGaugeChartModel
Sets gauge face border width. If not set the default value is 1.- Specified by:
setFaceBorderWidth
in interfaceAngularGaugeChartModel<AngularGaugeChartModelImpl>
- Parameters:
faceBorderWidth
- the face border width- Returns:
- chart model
-
getFaceColor
- Specified by:
getFaceColor
in interfaceAngularGaugeChartModel<AngularGaugeChartModelImpl>
- Returns:
- gauge face color
-
setFaceColor
Description copied from interface:AngularGaugeChartModel
Sets gauge face color, requires faceAlpha greater than 0 value. If not set the default value is #FAFAFA.- Specified by:
setFaceColor
in interfaceAngularGaugeChartModel<AngularGaugeChartModelImpl>
- Parameters:
faceColor
- the face color- Returns:
- chart model
-
getFacePattern
- Specified by:
getFacePattern
in interfaceAngularGaugeChartModel<AngularGaugeChartModelImpl>
- Returns:
- gauge face image-pattern
-
setFacePattern
Description copied from interface:AngularGaugeChartModel
Sets gauge face image-pattern.- Specified by:
setFacePattern
in interfaceAngularGaugeChartModel<AngularGaugeChartModelImpl>
- Parameters:
facePattern
- the face pattern- Returns:
- chart model
-
getGaugeX
- Specified by:
getGaugeX
in interfaceAngularGaugeChartModel<AngularGaugeChartModelImpl>
- Returns:
- gauge's horizontal position in pixel
-
setGaugeX
Description copied from interface:AngularGaugeChartModel
Sets gauge's horizontal position in pixel, origin is the center. Centered by default.- Specified by:
setGaugeX
in interfaceAngularGaugeChartModel<AngularGaugeChartModelImpl>
- Parameters:
gaugeX
- horizontal position in pixel- Returns:
- chart model
-
getGaugeY
- Specified by:
getGaugeY
in interfaceAngularGaugeChartModel<AngularGaugeChartModelImpl>
- Returns:
- gauge's vertical position in pixel
-
setGaugeY
Description copied from interface:AngularGaugeChartModel
Sets gauge's vertical position in pixel, origin is the center. Centered by default.- Specified by:
setGaugeY
in interfaceAngularGaugeChartModel<AngularGaugeChartModelImpl>
- Parameters:
gaugeY
- vertical position in pixel- Returns:
- chart model
-
getMarginBottom
- Specified by:
getMarginBottom
in interfaceHasMargins<AngularGaugeChartModelImpl>
- Returns:
- bottom spacing
-
setMarginBottom
Description copied from interface:HasMargins
Sets bottom spacing. If not set the default value is 10.If is used for
Legend
default value is 0.If is used for
RadarChartModelImpl
the default value is 0.If is used for chart based on
RectangularChartModelImpl
(GanttChart, SerialChart, XYChart) the default value is 20.If is used for chart based on
SlicedChartModelImpl
(FunnelChart, PieChart) the default value is 10.If is used for
PanelsSettings
the default value is 0.- Specified by:
setMarginBottom
in interfaceHasMargins<AngularGaugeChartModelImpl>
- Parameters:
marginBottom
- bottom spacing- Returns:
- object with set bottom spacing
-
getMarginLeft
- Specified by:
getMarginLeft
in interfaceHasMargins<AngularGaugeChartModelImpl>
- Returns:
- left-hand spacing
-
setMarginLeft
Description copied from interface:HasMargins
Sets left-hand spacing.marginLeft will be ignored if chart is
SerialChart
orXYChartModelImpl
andAbstractLegend.autoMargins
is true.If is used for
Legend
the default value is 20.If is used for
RadarChartModelImpl
the default value is 0.If is used for chart based on
RectangularChartModelImpl
(GanttChart, SerialChart, XYChart) the default value is 20.If is used for chart based on
SlicedChartModelImpl
the default value is 0.If is used for
PanelsSettings
the default value is 0.- Specified by:
setMarginLeft
in interfaceHasMargins<AngularGaugeChartModelImpl>
- Parameters:
marginLeft
- left-hand spacing- Returns:
- object with set left-hand spacing
-
getMarginRight
- Specified by:
getMarginRight
in interfaceHasMargins<AngularGaugeChartModelImpl>
- Returns:
- right-hand spacing
-
setMarginRight
Description copied from interface:HasMargins
Sets right-hand spacing.marginRight will be ignored if chart is
SerialChart
orXYChartModelImpl
andAbstractLegend.autoMargins
is true.If is used for
Legend
the default value is 20.If is used for
RadarChartModelImpl
the default value is 0.If is used for chart based on
RectangularChartModelImpl
(GanttChart, SerialChart, XYChart) the default value is 20.If is used for chart based on
SlicedChartModelImpl
(FunnelChart, PieChart) the default value is 0.If is used for
PanelsSettings
the default value is 0.- Specified by:
setMarginRight
in interfaceHasMargins<AngularGaugeChartModelImpl>
- Parameters:
marginRight
- right-hand spacing- Returns:
- object with set right-hand spacing
-
getMarginTop
- Specified by:
getMarginTop
in interfaceHasMargins<AngularGaugeChartModelImpl>
- Returns:
- top spacing
-
setMarginTop
Description copied from interface:HasMargins
Sets top spacing. If not set the default value is 10.If is used for
Legend
the default value is 0.If is used for
RadarChartModelImpl
the default value is 0.If is used for chart based on
RectangularChartModelImpl
(GanttChart, SerialChart, XYChart) the default value is 20.If is used for chart based on
SlicedChartModelImpl
the default value is 10.If is used for
PanelsSettings
the default value is 0.- Specified by:
setMarginTop
in interfaceHasMargins<AngularGaugeChartModelImpl>
- Parameters:
marginTop
- top spacing- Returns:
- object with set top spacing
-
getMinRadius
- Specified by:
getMinRadius
in interfaceAngularGaugeChartModel<AngularGaugeChartModelImpl>
- Returns:
- minimum radius of a gauge
-
setMinRadius
Description copied from interface:AngularGaugeChartModel
Sets minimum radius of a gauge. If not set the default value is 10.- Specified by:
setMinRadius
in interfaceAngularGaugeChartModel<AngularGaugeChartModelImpl>
- Parameters:
minRadius
- minimum radius- Returns:
- chart model
-
getStartDuration
- Specified by:
getStartDuration
in interfaceHasStartEffect<AngularGaugeChartModelImpl>
- Returns:
- duration of the animation, in seconds
-
setStartDuration
Description copied from interface:HasStartEffect
Sets duration of the animation, in seconds.If you use
AngularGaugeChartModelImpl
default value is 1.If you use charts based on
CoordinateChartModel
(GanttChart, RadarChart, SerialChart, XYChart) default value is 0.If you use chart based on
SlicedChartModelImpl
default value is 1.- Specified by:
setStartDuration
in interfaceHasStartEffect<AngularGaugeChartModelImpl>
- Parameters:
startDuration
- the start duration- Returns:
- object with set duration of the animation
-
getStartEffect
- Specified by:
getStartEffect
in interfaceHasStartEffect<AngularGaugeChartModelImpl>
- Returns:
- animation effect
-
setStartEffect
Description copied from interface:HasStartEffect
Sets animation effect.If you use
AngularGaugeChartModelImpl
animation effect will be applied for the arrow. If not set the default value is EASE_IN_SINE.If you use charts based on
CoordinateChartModel
(GanttChart, RadarChart, SerialChart, XYChart) default value is ELASTIC.If you use chart based on
SlicedChartModelImpl
default value is BOUNCE.- Specified by:
setStartEffect
in interfaceHasStartEffect<AngularGaugeChartModelImpl>
- Parameters:
startEffect
- the start effect- Returns:
- object with set animation effect
-