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
Constructors -
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, setUsePrefixesMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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:
getAdjustSizein interfaceAngularGaugeChartModel<AngularGaugeChartModelImpl>- Returns:
- true if adjust size is enabled
-
setAdjustSize
Description copied from interface:AngularGaugeChartModelSets using the whole space of the canvas to draw the gauge. If not set the default value is true.- Specified by:
setAdjustSizein interfaceAngularGaugeChartModel<AngularGaugeChartModelImpl>- Parameters:
adjustSize- adjust size option- Returns:
- chart model
-
getArrows
- Specified by:
getArrowsin interfaceAngularGaugeChartModel<AngularGaugeChartModelImpl>- Returns:
- list of GaugeArrow
-
setArrows
Description copied from interface:AngularGaugeChartModelSets list of GaugeArrow.- Specified by:
setArrowsin interfaceAngularGaugeChartModel<AngularGaugeChartModelImpl>- Parameters:
arrows- the arrows- Returns:
- chart model
-
addArrows
Description copied from interface:AngularGaugeChartModelAdds GaugeArrows.- Specified by:
addArrowsin interfaceAngularGaugeChartModel<AngularGaugeChartModelImpl>- Parameters:
arrows- the arrows- Returns:
- chart model
-
getAxes
- Specified by:
getAxesin interfaceAngularGaugeChartModel<AngularGaugeChartModelImpl>- Returns:
- list of GaugeAxis
-
setAxes
Description copied from interface:AngularGaugeChartModelSets list of GaugeAxis.- Specified by:
setAxesin interfaceAngularGaugeChartModel<AngularGaugeChartModelImpl>- Parameters:
axes- the axes- Returns:
- chart model
-
addAxes
Description copied from interface:AngularGaugeChartModelAdds GaugeAxis.- Specified by:
addAxesin interfaceAngularGaugeChartModel<AngularGaugeChartModelImpl>- Parameters:
axes- the axes- Returns:
- chart model
-
getClockWiseOnly
- Specified by:
getClockWiseOnlyin interfaceAngularGaugeChartModel<AngularGaugeChartModelImpl>- Returns:
- true if clock wise only is enabled
-
setClockWiseOnly
Description copied from interface:AngularGaugeChartModelSet clockWiseOnly to true if you use gauge to create a clock. If not set the default value is false.- Specified by:
setClockWiseOnlyin interfaceAngularGaugeChartModel<AngularGaugeChartModelImpl>- Parameters:
clockWiseOnly- clock wise only option- Returns:
- chart model
-
getFaceAlpha
- Specified by:
getFaceAlphain interfaceAngularGaugeChartModel<AngularGaugeChartModelImpl>- Returns:
- gauge face opacity
-
setFaceAlpha
Description copied from interface:AngularGaugeChartModelSets gauge face opacity. If not set the default value is 0.- Specified by:
setFaceAlphain interfaceAngularGaugeChartModel<AngularGaugeChartModelImpl>- Parameters:
faceAlpha- the face alpha- Returns:
- chart model
-
getFaceBorderAlpha
- Specified by:
getFaceBorderAlphain interfaceAngularGaugeChartModel<AngularGaugeChartModelImpl>- Returns:
- gauge face border opacity.
-
setFaceBorderAlpha
Description copied from interface:AngularGaugeChartModelSets gauge face border opacity. If not set the default value is 0.- Specified by:
setFaceBorderAlphain interfaceAngularGaugeChartModel<AngularGaugeChartModelImpl>- Parameters:
faceBorderAlpha- the face border alpha- Returns:
- chart model
-
getFaceBorderColor
- Specified by:
getFaceBorderColorin interfaceAngularGaugeChartModel<AngularGaugeChartModelImpl>- Returns:
- gauge face border color.
-
setFaceBorderColor
Description copied from interface:AngularGaugeChartModelSets gauge face border color. If not set the default value is #555555.- Specified by:
setFaceBorderColorin interfaceAngularGaugeChartModel<AngularGaugeChartModelImpl>- Parameters:
faceBorderColor- the face border color- Returns:
- chart model
-
getFaceBorderWidth
- Specified by:
getFaceBorderWidthin interfaceAngularGaugeChartModel<AngularGaugeChartModelImpl>- Returns:
- gauge face border width.
-
setFaceBorderWidth
Description copied from interface:AngularGaugeChartModelSets gauge face border width. If not set the default value is 1.- Specified by:
setFaceBorderWidthin interfaceAngularGaugeChartModel<AngularGaugeChartModelImpl>- Parameters:
faceBorderWidth- the face border width- Returns:
- chart model
-
getFaceColor
- Specified by:
getFaceColorin interfaceAngularGaugeChartModel<AngularGaugeChartModelImpl>- Returns:
- gauge face color
-
setFaceColor
Description copied from interface:AngularGaugeChartModelSets gauge face color, requires faceAlpha greater than 0 value. If not set the default value is #FAFAFA.- Specified by:
setFaceColorin interfaceAngularGaugeChartModel<AngularGaugeChartModelImpl>- Parameters:
faceColor- the face color- Returns:
- chart model
-
getFacePattern
- Specified by:
getFacePatternin interfaceAngularGaugeChartModel<AngularGaugeChartModelImpl>- Returns:
- gauge face image-pattern
-
setFacePattern
Description copied from interface:AngularGaugeChartModelSets gauge face image-pattern.- Specified by:
setFacePatternin interfaceAngularGaugeChartModel<AngularGaugeChartModelImpl>- Parameters:
facePattern- the face pattern- Returns:
- chart model
-
getGaugeX
- Specified by:
getGaugeXin interfaceAngularGaugeChartModel<AngularGaugeChartModelImpl>- Returns:
- gauge's horizontal position in pixel
-
setGaugeX
Description copied from interface:AngularGaugeChartModelSets gauge's horizontal position in pixel, origin is the center. Centered by default.- Specified by:
setGaugeXin interfaceAngularGaugeChartModel<AngularGaugeChartModelImpl>- Parameters:
gaugeX- horizontal position in pixel- Returns:
- chart model
-
getGaugeY
- Specified by:
getGaugeYin interfaceAngularGaugeChartModel<AngularGaugeChartModelImpl>- Returns:
- gauge's vertical position in pixel
-
setGaugeY
Description copied from interface:AngularGaugeChartModelSets gauge's vertical position in pixel, origin is the center. Centered by default.- Specified by:
setGaugeYin interfaceAngularGaugeChartModel<AngularGaugeChartModelImpl>- Parameters:
gaugeY- vertical position in pixel- Returns:
- chart model
-
getMarginBottom
- Specified by:
getMarginBottomin interfaceHasMargins<AngularGaugeChartModelImpl>- Returns:
- bottom spacing
-
setMarginBottom
Description copied from interface:HasMarginsSets bottom spacing. If not set the default value is 10.If is used for
Legenddefault value is 0.If is used for
RadarChartModelImplthe 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
PanelsSettingsthe default value is 0.- Specified by:
setMarginBottomin interfaceHasMargins<AngularGaugeChartModelImpl>- Parameters:
marginBottom- bottom spacing- Returns:
- object with set bottom spacing
-
getMarginLeft
- Specified by:
getMarginLeftin interfaceHasMargins<AngularGaugeChartModelImpl>- Returns:
- left-hand spacing
-
setMarginLeft
Description copied from interface:HasMarginsSets left-hand spacing.marginLeft will be ignored if chart is
SerialChartorXYChartModelImplandAbstractLegend.autoMarginsis true.If is used for
Legendthe default value is 20.If is used for
RadarChartModelImplthe 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
SlicedChartModelImplthe default value is 0.If is used for
PanelsSettingsthe default value is 0.- Specified by:
setMarginLeftin interfaceHasMargins<AngularGaugeChartModelImpl>- Parameters:
marginLeft- left-hand spacing- Returns:
- object with set left-hand spacing
-
getMarginRight
- Specified by:
getMarginRightin interfaceHasMargins<AngularGaugeChartModelImpl>- Returns:
- right-hand spacing
-
setMarginRight
Description copied from interface:HasMarginsSets right-hand spacing.marginRight will be ignored if chart is
SerialChartorXYChartModelImplandAbstractLegend.autoMarginsis true.If is used for
Legendthe default value is 20.If is used for
RadarChartModelImplthe 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
PanelsSettingsthe default value is 0.- Specified by:
setMarginRightin interfaceHasMargins<AngularGaugeChartModelImpl>- Parameters:
marginRight- right-hand spacing- Returns:
- object with set right-hand spacing
-
getMarginTop
- Specified by:
getMarginTopin interfaceHasMargins<AngularGaugeChartModelImpl>- Returns:
- top spacing
-
setMarginTop
Description copied from interface:HasMarginsSets top spacing. If not set the default value is 10.If is used for
Legendthe default value is 0.If is used for
RadarChartModelImplthe 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
SlicedChartModelImplthe default value is 10.If is used for
PanelsSettingsthe default value is 0.- Specified by:
setMarginTopin interfaceHasMargins<AngularGaugeChartModelImpl>- Parameters:
marginTop- top spacing- Returns:
- object with set top spacing
-
getMinRadius
- Specified by:
getMinRadiusin interfaceAngularGaugeChartModel<AngularGaugeChartModelImpl>- Returns:
- minimum radius of a gauge
-
setMinRadius
Description copied from interface:AngularGaugeChartModelSets minimum radius of a gauge. If not set the default value is 10.- Specified by:
setMinRadiusin interfaceAngularGaugeChartModel<AngularGaugeChartModelImpl>- Parameters:
minRadius- minimum radius- Returns:
- chart model
-
getStartDuration
- Specified by:
getStartDurationin interfaceHasStartEffect<AngularGaugeChartModelImpl>- Returns:
- duration of the animation, in seconds
-
setStartDuration
Description copied from interface:HasStartEffectSets duration of the animation, in seconds.If you use
AngularGaugeChartModelImpldefault value is 1.If you use charts based on
CoordinateChartModel(GanttChart, RadarChart, SerialChart, XYChart) default value is 0.If you use chart based on
SlicedChartModelImpldefault value is 1.- Specified by:
setStartDurationin interfaceHasStartEffect<AngularGaugeChartModelImpl>- Parameters:
startDuration- the start duration- Returns:
- object with set duration of the animation
-
getStartEffect
- Specified by:
getStartEffectin interfaceHasStartEffect<AngularGaugeChartModelImpl>- Returns:
- animation effect
-
setStartEffect
Description copied from interface:HasStartEffectSets animation effect.If you use
AngularGaugeChartModelImplanimation 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
SlicedChartModelImpldefault value is BOUNCE.- Specified by:
setStartEffectin interfaceHasStartEffect<AngularGaugeChartModelImpl>- Parameters:
startEffect- the start effect- Returns:
- object with set animation effect
-