Package io.jmix.charts.model.chart.impl
Class FunnelChartModelImpl
java.lang.Object
io.jmix.charts.model.AbstractChartObject
io.jmix.charts.model.chart.impl.ChartModelImpl
io.jmix.charts.model.chart.impl.AbstractChart<T>
io.jmix.charts.model.chart.impl.SlicedChartModelImpl<FunnelChartModelImpl>
io.jmix.charts.model.chart.impl.FunnelChartModelImpl
- All Implemented Interfaces:
HasStartEffect<FunnelChartModelImpl>,ChartModel<FunnelChartModelImpl>,FunnelChartModel<FunnelChartModelImpl>,SlicedChartModel<FunnelChartModelImpl>,HasColors<FunnelChartModelImpl>,HasMargins<FunnelChartModelImpl>,Serializable
public class FunnelChartModelImpl
extends SlicedChartModelImpl<FunnelChartModelImpl>
implements FunnelChartModel<FunnelChartModelImpl>
See documentation for properties of AmFunnelChart JS object.
http://docs.amcharts.com/3/javascriptcharts/AmFunnelChart
http://docs.amcharts.com/3/javascriptcharts/AmFunnelChart
- 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 TypeMethodDescriptiongetAngle()Sets the angle of the 3D part of the chart.setBalloonText(String balloonText) Sets balloon text.setBaseWidth(String baseWidth) Sets width of a base (first slice) of a chart.setDepth3D(Integer depth3D) Sets the depth of funnel/pyramid.setLabelPosition(LabelPosition labelPosition) Specifies where labels should be placed.setLabelText(String labelText) Sets label text.setNeckHeight(String neckHeight) Sets height of a funnel neck.setNeckWidth(String neckWidth) Sets width of a funnel neck.setPullDistance(String pullDistance) Sets the distance by which slice should be pulled when user clicks on it.If rotate is set to true, the funnel will be rotated and will became a pyramid.Sets initial X coordinate of slices.Sets initial y coordinate of slices.setValueRepresents(FunnelValueRepresentation valueRepresents) Sets the value represents.Methods inherited from class io.jmix.charts.model.chart.impl.SlicedChartModelImpl
addColors, addGradientRatio, getAccessibleLabel, getAlpha, getAlphaField, getBaseColor, getClassNameField, getColorField, getColors, getDescriptionField, getGradientRatio, getGroupedAlpha, getGroupedColor, getGroupedDescription, getGroupedPulled, getGroupedTitle, getGroupPercent, getHideLabelsPercent, getHoverAlpha, getLabelColorField, getLabelFunction, getLabelsEnabled, getLabelTickAlpha, getLabelTickColor, getMarginBottom, getMarginLeft, getMarginRight, getMarginTop, getMaxLabelWidth, getOutlineAlpha, getOutlineColor, getOutlineThickness, getPatternField, getPulledField, getPullOutDuration, getPullOutEffect, getPullOutOnlyOne, getSequencedAnimation, getShowZeroSlices, getStartAlpha, getStartDuration, getStartEffect, getTabIndex, getTitleField, getUrlField, getUrlTarget, getValueField, getVisibleInLegendField, getWiredFields, setAccessibleLabel, setAlpha, setAlphaField, setBaseColor, setClassNameField, setColorField, setColors, setDescriptionField, setGradientRatio, setGroupedAlpha, setGroupedColor, setGroupedDescription, setGroupedPulled, setGroupedTitle, setGroupPercent, setHideLabelsPercent, setHoverAlpha, setLabelColorField, setLabelFunction, setLabelsEnabled, setLabelTickAlpha, setLabelTickColor, setMarginBottom, setMarginLeft, setMarginRight, setMarginTop, setMaxLabelWidth, setOutlineAlpha, setOutlineColor, setOutlineThickness, setPatternField, setPulledField, setPullOutDuration, setPullOutEffect, setPullOutOnlyOne, setSequencedAnimation, setShowZeroSlices, setStartAlpha, setStartDuration, setStartEffect, setTabIndex, setTitleField, setUrlField, setUrlTarget, setValueField, setVisibleInLegendFieldMethods 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, 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, setUsePrefixesMethods inherited from interface io.jmix.charts.model.HasMargins
getMarginBottom, getMarginLeft, getMarginRight, getMarginTop, setMarginBottom, setMarginLeft, setMarginRight, setMarginTopMethods inherited from interface io.jmix.charts.model.animation.HasStartEffect
getStartDuration, getStartEffect, setStartDuration, setStartEffectMethods inherited from interface io.jmix.charts.model.chart.SlicedChartModel
addGradientRatio, getAccessibleLabel, getAlpha, getAlphaField, getBaseColor, getClassNameField, getColorField, getDescriptionField, getGradientRatio, getGroupedAlpha, getGroupedColor, getGroupedDescription, getGroupedPulled, getGroupedTitle, getGroupPercent, getHideLabelsPercent, getHoverAlpha, getLabelColorField, getLabelFunction, getLabelsEnabled, getLabelTickAlpha, getLabelTickColor, getMaxLabelWidth, getOutlineAlpha, getOutlineColor, getOutlineThickness, getPatternField, getPulledField, getPullOutDuration, getPullOutEffect, getPullOutOnlyOne, getSequencedAnimation, getShowZeroSlices, getStartAlpha, getTabIndex, getTitleField, getUrlField, getUrlTarget, getValueField, getVisibleInLegendField, setAccessibleLabel, setAlpha, setAlphaField, setBaseColor, setClassNameField, setColorField, setDescriptionField, setGradientRatio, setGroupedAlpha, setGroupedColor, setGroupedDescription, setGroupedPulled, setGroupedTitle, setGroupPercent, setHideLabelsPercent, setHoverAlpha, setLabelColorField, setLabelFunction, setLabelsEnabled, setLabelTickAlpha, setLabelTickColor, setMaxLabelWidth, setOutlineAlpha, setOutlineColor, setOutlineThickness, setPatternField, setPulledField, setPullOutDuration, setPullOutEffect, setPullOutOnlyOne, setSequencedAnimation, setShowZeroSlices, setStartAlpha, setTabIndex, setTitleField, setUrlField, setUrlTarget, setValueField, setVisibleInLegendField
-
Constructor Details
-
FunnelChartModelImpl
public FunnelChartModelImpl()
-
-
Method Details
-
getBalloonText
- Specified by:
getBalloonTextin interfaceFunnelChartModel<FunnelChartModelImpl>- Returns:
- balloon text
-
setBalloonText
Description copied from interface:FunnelChartModelSets balloon text. The following tags can be used: [[value]], [[title]], [[percents]], [[description]]. Also can be used fields in the chart such as titleField, valueField etc. Fields that not used in the chart can be added by using additionalFields. HTML tags can also be used. If not set the default value is "[[title]]:[[value]]\n[[description]]".- Specified by:
setBalloonTextin interfaceFunnelChartModel<FunnelChartModelImpl>- Parameters:
balloonText- balloon text string- Returns:
- funnel chart model
-
getBaseWidth
- Specified by:
getBaseWidthin interfaceFunnelChartModel<FunnelChartModelImpl>- Returns:
- width of a base (first slice) of a chart
-
setBaseWidth
Description copied from interface:FunnelChartModelSets width of a base (first slice) of a chart. 100% means it will occupy all available space. If not set the default value is 100%.- Specified by:
setBaseWidthin interfaceFunnelChartModel<FunnelChartModelImpl>- Parameters:
baseWidth- the base width- Returns:
- funnel chart model
-
getLabelPosition
- Specified by:
getLabelPositionin interfaceFunnelChartModel<FunnelChartModelImpl>- Returns:
- label position
-
setLabelPosition
Description copied from interface:FunnelChartModelSpecifies where labels should be placed. Allowed values are left, center, right. If you set left or right, you should increase left or right margin in order labels to be visible. If not set the default value is CENTER.- Specified by:
setLabelPositionin interfaceFunnelChartModel<FunnelChartModelImpl>- Parameters:
labelPosition- the label position- Returns:
- funnel chart model
-
getLabelText
- Specified by:
getLabelTextin interfaceFunnelChartModel<FunnelChartModelImpl>- Returns:
- label text
-
setLabelText
Description copied from interface:FunnelChartModelSets label text. The following tags can be used: [[value]], [[title]], [[percents]], [[description]]. Also can be used fields in the chart such as titleField, valueField etc. Fields that not used in the chart can be added by using additionalFields. If not set the default value is "[[title]]: [[value]]".- Specified by:
setLabelTextin interfaceFunnelChartModel<FunnelChartModelImpl>- Parameters:
labelText- label text string- Returns:
- funnel chart model
-
getNeckHeight
- Specified by:
getNeckHeightin interfaceFunnelChartModel<FunnelChartModelImpl>- Returns:
- height of a funnel neck
-
setNeckHeight
Description copied from interface:FunnelChartModelSets height of a funnel neck. If default value, zero is used, the funnel won't have neck at all, which will make it look like pyramid. If not set the default value is "0".- Specified by:
setNeckHeightin interfaceFunnelChartModel<FunnelChartModelImpl>- Parameters:
neckHeight- the neck height- Returns:
- funnel chart model
-
getNeckWidth
- Specified by:
getNeckWidthin interfaceFunnelChartModel<FunnelChartModelImpl>- Returns:
- width of a funnel neck
-
setNeckWidth
Description copied from interface:FunnelChartModelSets width of a funnel neck. If default value, zero is used, the funnel won't have neck at all, which will make it look like pyramid. If not set the default value is "0".- Specified by:
setNeckWidthin interfaceFunnelChartModel<FunnelChartModelImpl>- Parameters:
neckWidth- the neck width- Returns:
- funnel chart model
-
getPullDistance
- Specified by:
getPullDistancein interfaceFunnelChartModel<FunnelChartModelImpl>- Returns:
- pull distance
-
setPullDistance
Description copied from interface:FunnelChartModelSets the distance by which slice should be pulled when user clicks on it. If not set the default value is 30.- Specified by:
setPullDistancein interfaceFunnelChartModel<FunnelChartModelImpl>- Parameters:
pullDistance- the pull distance- Returns:
- funnel chart model
-
getStartX
- Specified by:
getStartXin interfaceFunnelChartModel<FunnelChartModelImpl>- Returns:
- initial X coordinate of slices
-
setStartX
Description copied from interface:FunnelChartModelSets initial X coordinate of slices. They will animate to the final X position from this one. If not set the default value is 0.- Specified by:
setStartXin interfaceFunnelChartModel<FunnelChartModelImpl>- Parameters:
startX- the start X- Returns:
- funnel chart model
-
getStartY
- Specified by:
getStartYin interfaceFunnelChartModel<FunnelChartModelImpl>- Returns:
- initial Y coordinate of slices
-
setStartY
Description copied from interface:FunnelChartModelSets initial y coordinate of slices. They will animate to the final y position from this one. If not set the default value is 0.- Specified by:
setStartYin interfaceFunnelChartModel<FunnelChartModelImpl>- Parameters:
startY- the start Y- Returns:
- funnel chart model
-
getValueRepresents
- Specified by:
getValueRepresentsin interfaceFunnelChartModel<FunnelChartModelImpl>- Returns:
- value represents
-
setValueRepresents
Description copied from interface:FunnelChartModelSets the value represents. By default, the height of a slice represents it's value. Set this property to "area" if you want the area of a slice to represent value. If not set the default value is HEIGHT.- Specified by:
setValueRepresentsin interfaceFunnelChartModel<FunnelChartModelImpl>- Parameters:
valueRepresents- the value represents- Returns:
- funnel chart model
-
getRotate
- Specified by:
getRotatein interfaceFunnelChartModel<FunnelChartModelImpl>- Returns:
- true if rotate is enabled
-
setRotate
Description copied from interface:FunnelChartModelIf rotate is set to true, the funnel will be rotated and will became a pyramid. If not set the default value is false.- Specified by:
setRotatein interfaceFunnelChartModel<FunnelChartModelImpl>- Parameters:
rotate- rotate option- Returns:
- funnel chart model
-
getAngle
- Specified by:
getAnglein interfaceFunnelChartModel<FunnelChartModelImpl>- Returns:
- the angle of the 3D part of the chart
-
setAngle
Description copied from interface:FunnelChartModelSets the angle of the 3D part of the chart. This creates a 3D effect (if the depth3D is greater than 0). If not set the default value is 0.- Specified by:
setAnglein interfaceFunnelChartModel<FunnelChartModelImpl>- Parameters:
angle- the angle- Returns:
- funnel chart model
-
getDepth3D
- Specified by:
getDepth3Din interfaceFunnelChartModel<FunnelChartModelImpl>- Returns:
- the depth of funnel/pyramid
-
setDepth3D
Description copied from interface:FunnelChartModelSets the depth of funnel/pyramid. Set angle to greater than 0 value in order this to work. Note, neckHeight/neckWidth will become 0 if you set these properties to bigger than 0 values.- Specified by:
setDepth3Din interfaceFunnelChartModel<FunnelChartModelImpl>- Parameters:
depth3D- the depth 3D- Returns:
- funnel chart model
-