Package io.jmix.charts.component.impl
Class FunnelChartImpl
java.lang.Object
io.jmix.ui.component.impl.AbstractComponent<JmixAmchartsScene>
io.jmix.charts.component.impl.ChartImpl<T,M>
io.jmix.charts.component.impl.SlicedChartImpl<FunnelChart,FunnelChartModelImpl>
io.jmix.charts.component.impl.FunnelChartImpl
- All Implemented Interfaces:
Chart<FunnelChart>
,FunnelChart
,SlicedChart<FunnelChart>
,HasStartEffect<FunnelChart>
,ChartModel<FunnelChart>
,FunnelChartModel<FunnelChart>
,SlicedChartModel<FunnelChart>
,HasColors<FunnelChart>
,HasMargins<FunnelChart>
,AttachNotifier
,Component
,Component.BelongToFrame
,Component.HasCaption
,Component.HasDescription
,Component.HasIcon
,Component.HasXmlDescriptor
,Component.Wrapper
,HasContextHelp
,HasDebugId
,HasHtmlCaption
,HasHtmlDescription
,HasHtmlSanitizer
,org.springframework.beans.factory.InitializingBean
public class FunnelChartImpl
extends SlicedChartImpl<FunnelChart,FunnelChartModelImpl>
implements FunnelChart
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.jmix.charts.component.Chart
Chart.AbstractChartClickEvent, Chart.AbstractChartEvent, Chart.AbstractClickEvent, Chart.AbstractCursorEvent, Chart.AbstractGraphItemClickEvent, Chart.AbstractItemEvent, Chart.AbstractSliceClickEvent, Chart.AxisZoomEvent, Chart.ChartClickEvent, Chart.ChartRightClickEvent, Chart.CursorPeriodSelectEvent, Chart.CursorZoomEvent, Chart.GraphClickEvent, Chart.GraphItemClickEvent, Chart.GraphItemRightClickEvent, Chart.LegendItemClickEvent, Chart.LegendItemEvent, Chart.LegendItemHideEvent, Chart.LegendItemShowEvent, Chart.LegendMarkerClickEvent, Chart.RollOutGraphEvent, Chart.RollOutGraphItemEvent, Chart.RollOverGraphEvent, Chart.RollOverGraphItemEvent, Chart.SliceClickEvent, Chart.SlicePullInEvent, Chart.SlicePullOutEvent, Chart.SliceRightClickEvent, Chart.ZoomEvent
Nested classes/interfaces inherited from interface io.jmix.ui.component.Component
Component.Alignment, Component.BelongToFrame, Component.Disposable, Component.Editable, Component.Focusable, Component.HasCaption, Component.HasDescription, Component.HasIcon, Component.HasXmlDescriptor, Component.Wrapper
Nested classes/interfaces inherited from interface io.jmix.ui.component.HasContextHelp
HasContextHelp.ContextHelpIconClickEvent
-
Field Summary
Fields inherited from class io.jmix.charts.component.impl.SlicedChartImpl
sliceClickHandler, slicePullInHandler, slicePullOutHandler, sliceRightClickHandler
Fields inherited from class io.jmix.charts.component.impl.ChartImpl
chartLocaleHelper, clickHandler, currentAuthentication, formatStringsRegistry, legendItemHideHandler, legendItemShowHandler, legendLabelClickHandler, legendMarkerClickHandler, messages, rightClickHandler
Fields inherited from class io.jmix.ui.component.impl.AbstractComponent
alignment, applicationContext, component, contextHelpIconClickHandler, contextHelpIconClickListener, descriptionAsHtml, element, frame, htmlSanitizerEnabled, icon, ICON_STYLE, id, parent
Fields inherited from interface io.jmix.ui.component.Component
AUTO_SIZE, AUTO_SIZE_PX, FULL_SIZE
Fields inherited from interface io.jmix.charts.component.FunnelChart
NAME
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected FunnelChartModelImpl
getAngle()
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.component.impl.SlicedChartImpl
addColors, addGradientRatio, addSliceClickListener, addSlicePullInListener, addSlicePullOutListener, addSliceRightClickListener, 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, onSliceClick, onSlicePullIn, onSlicePullOut, onSliceRightClick, 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, setVisibleInLegendField
Methods inherited from class io.jmix.charts.component.impl.ChartImpl
addAdditionalFields, addClickListener, addData, addLabels, addLegendItemHideListener, addLegendItemShowListener, addLegendLabelClickListener, addLegendMarkerClickListener, addPrefixesOfBigNumbers, addPrefixesOfSmallNumbers, addRightClickListener, addTitles, afterPropertiesSet, createChartSerializer, createComponent, 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, getModel, getNativeJson, getPanEventsEnabled, getPath, getPathToImages, getPercentPrecision, getPrecision, getPrefixesOfBigNumbers, getPrefixesOfSmallNumbers, getProcessCount, getProcessTimeout, getResponsive, getSvgIcons, getTapToActivate, getTheme, getThousandsSeparator, getTitles, getTouchClickDuration, getUsePrefixes, initLocale, onChartClick, onChartRightClick, onLegendItemHide, onLegendItemShow, onLegendLabelClick, onLegendMarkerClick, repaint, setAccessible, setAccessibleDescription, setAccessibleTitle, setAddClassNames, setAdditionalFields, setAllLabels, setAutoDisplay, setAutoResize, setAutoTransform, setBackgroundAlpha, setBackgroundColor, setBalloon, setBorderAlpha, setBorderColor, setChartLocaleHelper, setClassNamePrefix, setColor, setCreditsPosition, setCurrentAuthentication, setDataProvider, setDecimalSeparator, setDefs, setExport, setFontFamily, setFontSize, setFormatStringsRegistry, setHandDrawn, setHandDrawScatter, setHandDrawThickness, setHideBalloonTime, setLanguage, setLegend, setMessages, setNativeJson, setPanEventsEnabled, setPath, setPathToImages, setPercentPrecision, setPrecision, setPrefixesOfBigNumbers, setPrefixesOfSmallNumbers, setProcessCount, setProcessTimeout, setResponsive, setSvgIcons, setTapToActivate, setTheme, setThousandsSeparator, setTitles, setTouchClickDuration, setupChartLocale, setupDefaults, setUsePrefixes
Methods inherited from class io.jmix.ui.component.impl.AbstractComponent
addAttachListener, addDetachListener, addStyleName, assignDebugId, attached, detached, getAlignment, getCaption, getComponent, getComposition, getContextHelpIconClickHandler, getContextHelpText, getDebugId, getDescription, getEventHub, getFrame, getHeight, getHeightSizeUnit, getHtmlSanitizer, getIcon, getIconName, getIconResource, getId, getParent, getStyleName, getUiComponentProperties, getUiProperties, getWidth, getWidthSizeUnit, getXmlDescriptor, hasSubscriptions, hasValidationError, isAttached, isCaptionAsHtml, isContextHelpTextHtmlEnabled, isDescriptionAsHtml, isEnabled, isEnabledRecursive, isHtmlSanitizerEnabled, isResponsive, isVisible, isVisibleRecursive, onContextHelpIconClick, publish, removeStyleName, sanitize, setAlignment, setApplicationContext, setCaption, setCaptionAsHtml, setContextHelpIconClickHandler, setContextHelpText, setContextHelpTextHtmlEnabled, setDebugId, setDescription, setDescriptionAsHtml, setEnabled, setFrame, setHeight, setHtmlSanitizerEnabled, setIcon, setIconFromSet, setId, setParent, setResponsive, setStyleName, setValidationError, setVisible, setWidth, setXmlDescriptor, unsubscribe, unwrap, unwrapComposition, unwrapCompositionOrNull, unwrapOrNull, withUnwrapped, withUnwrappedComposition
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.component.Chart
addClickListener, addLegendItemHideListener, addLegendItemShowListener, addLegendLabelClickListener, addLegendMarkerClickListener, addRightClickListener, getDataProvider, getNativeJson, repaint, setDataProvider, setNativeJson
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, 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, 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.ui.component.Component
addStyleName, getAlignment, getHeight, getHeightSizeUnit, getId, getParent, getStyleName, getWidth, getWidthSizeUnit, isEnabled, isEnabledRecursive, isResponsive, isVisible, isVisibleRecursive, removeStyleName, setAlignment, setEnabled, setHeight, setHeightAuto, setHeightFull, setId, setParent, setResponsive, setSizeAuto, setSizeFull, setStyleName, setVisible, setWidth, setWidthAuto, setWidthFull, unwrap, unwrapComposition, unwrapCompositionOrNull, unwrapOrNull, withUnwrapped, withUnwrappedComposition
Methods inherited from interface io.jmix.ui.component.Component.BelongToFrame
getFrame, setFrame
Methods inherited from interface io.jmix.ui.component.Component.HasCaption
getCaption, setCaption
Methods inherited from interface io.jmix.ui.component.Component.HasDescription
getDescription, setDescription
Methods inherited from interface io.jmix.ui.component.Component.HasIcon
getIcon, setIcon, setIconFromSet
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
Methods inherited from interface io.jmix.charts.component.SlicedChart
addSliceClickListener, addSlicePullInListener, addSlicePullOutListener, addSliceRightClickListener
Methods 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
-
FunnelChartImpl
public FunnelChartImpl()
-
-
Method Details
-
createChartConfiguration
- Specified by:
createChartConfiguration
in classChartImpl<FunnelChart,
FunnelChartModelImpl>
-
getBalloonText
- Specified by:
getBalloonText
in interfaceFunnelChartModel<FunnelChart>
- Returns:
- balloon text
-
setBalloonText
Description copied from interface:FunnelChartModel
Sets 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:
setBalloonText
in interfaceFunnelChartModel<FunnelChart>
- Parameters:
balloonText
- balloon text string- Returns:
- funnel chart model
-
getBaseWidth
- Specified by:
getBaseWidth
in interfaceFunnelChartModel<FunnelChart>
- Returns:
- width of a base (first slice) of a chart
-
setBaseWidth
Description copied from interface:FunnelChartModel
Sets 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:
setBaseWidth
in interfaceFunnelChartModel<FunnelChart>
- Parameters:
baseWidth
- the base width- Returns:
- funnel chart model
-
getLabelPosition
- Specified by:
getLabelPosition
in interfaceFunnelChartModel<FunnelChart>
- Returns:
- label position
-
setLabelPosition
Description copied from interface:FunnelChartModel
Specifies 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:
setLabelPosition
in interfaceFunnelChartModel<FunnelChart>
- Parameters:
labelPosition
- the label position- Returns:
- funnel chart model
-
getLabelText
- Specified by:
getLabelText
in interfaceFunnelChartModel<FunnelChart>
- Returns:
- label text
-
setLabelText
Description copied from interface:FunnelChartModel
Sets 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:
setLabelText
in interfaceFunnelChartModel<FunnelChart>
- Parameters:
labelText
- label text string- Returns:
- funnel chart model
-
getNeckHeight
- Specified by:
getNeckHeight
in interfaceFunnelChartModel<FunnelChart>
- Returns:
- height of a funnel neck
-
setNeckHeight
Description copied from interface:FunnelChartModel
Sets 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:
setNeckHeight
in interfaceFunnelChartModel<FunnelChart>
- Parameters:
neckHeight
- the neck height- Returns:
- funnel chart model
-
getNeckWidth
- Specified by:
getNeckWidth
in interfaceFunnelChartModel<FunnelChart>
- Returns:
- width of a funnel neck
-
setNeckWidth
Description copied from interface:FunnelChartModel
Sets 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:
setNeckWidth
in interfaceFunnelChartModel<FunnelChart>
- Parameters:
neckWidth
- the neck width- Returns:
- funnel chart model
-
getPullDistance
- Specified by:
getPullDistance
in interfaceFunnelChartModel<FunnelChart>
- Returns:
- pull distance
-
setPullDistance
Description copied from interface:FunnelChartModel
Sets the distance by which slice should be pulled when user clicks on it. If not set the default value is 30.- Specified by:
setPullDistance
in interfaceFunnelChartModel<FunnelChart>
- Parameters:
pullDistance
- the pull distance- Returns:
- funnel chart model
-
getStartX
- Specified by:
getStartX
in interfaceFunnelChartModel<FunnelChart>
- Returns:
- initial X coordinate of slices
-
setStartX
Description copied from interface:FunnelChartModel
Sets 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:
setStartX
in interfaceFunnelChartModel<FunnelChart>
- Parameters:
startX
- the start X- Returns:
- funnel chart model
-
getStartY
- Specified by:
getStartY
in interfaceFunnelChartModel<FunnelChart>
- Returns:
- initial Y coordinate of slices
-
setStartY
Description copied from interface:FunnelChartModel
Sets 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:
setStartY
in interfaceFunnelChartModel<FunnelChart>
- Parameters:
startY
- the start Y- Returns:
- funnel chart model
-
getValueRepresents
- Specified by:
getValueRepresents
in interfaceFunnelChartModel<FunnelChart>
- Returns:
- value represents
-
setValueRepresents
Description copied from interface:FunnelChartModel
Sets 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:
setValueRepresents
in interfaceFunnelChartModel<FunnelChart>
- Parameters:
valueRepresents
- the value represents- Returns:
- funnel chart model
-
getRotate
- Specified by:
getRotate
in interfaceFunnelChartModel<FunnelChart>
- Returns:
- true if rotate is enabled
-
setRotate
Description copied from interface:FunnelChartModel
If 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:
setRotate
in interfaceFunnelChartModel<FunnelChart>
- Parameters:
rotate
- rotate option- Returns:
- funnel chart model
-
getAngle
- Specified by:
getAngle
in interfaceFunnelChartModel<FunnelChart>
- Returns:
- the angle of the 3D part of the chart
-
setAngle
Description copied from interface:FunnelChartModel
Sets 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:
setAngle
in interfaceFunnelChartModel<FunnelChart>
- Parameters:
angle
- the angle- Returns:
- funnel chart model
-
getDepth3D
- Specified by:
getDepth3D
in interfaceFunnelChartModel<FunnelChart>
- Returns:
- the depth of funnel/pyramid
-
setDepth3D
Description copied from interface:FunnelChartModel
Sets 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:
setDepth3D
in interfaceFunnelChartModel<FunnelChart>
- Parameters:
depth3D
- the depth 3D- Returns:
- funnel chart model
-