Class CoordinateChartImpl<T extends CoordinateChart,M extends CoordinateChartModelImpl>
- All Implemented Interfaces:
Chart<T>,CoordinateChart<T>,HasStartEffect<T>,ChartModel<T>,CoordinateChartModel<T>,HasColors<T>,AttachNotifier,Component,Component.BelongToFrame,Component.HasCaption,Component.HasDescription,Component.HasIcon,Component.HasXmlDescriptor,Component.Wrapper,HasContextHelp,HasDebugId,HasHtmlCaption,HasHtmlDescription,HasHtmlSanitizer,org.springframework.beans.factory.InitializingBean
- Direct Known Subclasses:
RadarChartImpl,RectangularChartImpl
-
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.ZoomEventNested 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.WrapperNested classes/interfaces inherited from interface io.jmix.ui.component.HasContextHelp
HasContextHelp.ContextHelpIconClickEvent -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected AxisZoomListenerprotected GraphClickListenerprotected GraphItemClickListenerprotected GraphItemRightClickListenerprotected RollOutGraphItemListenerprotected RollOutGraphListenerprotected RollOverGraphItemListenerprotected RollOverGraphListenerFields inherited from class io.jmix.charts.component.impl.ChartImpl
chartLocaleHelper, clickHandler, currentAuthentication, formatStringsRegistry, legendItemHideHandler, legendItemShowHandler, legendLabelClickHandler, legendMarkerClickHandler, messages, rightClickHandlerFields inherited from class io.jmix.ui.component.impl.AbstractComponent
alignment, applicationContext, component, contextHelpIconClickHandler, contextHelpIconClickListener, descriptionAsHtml, element, frame, htmlSanitizerEnabled, icon, ICON_STYLE, id, parentFields inherited from interface io.jmix.ui.component.Component
AUTO_SIZE, AUTO_SIZE_PX, FULL_SIZE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddAxisZoomListener(Consumer<Chart.AxisZoomEvent> listener) Adds a listener to axis.Adds colors.addGraphClickListener(Consumer<Chart.GraphClickEvent> listener) Adds a listener for graph.Adds a listener for graph item.Adds a listener for graph item.Adds graphs to the chart.Adds guides.Adds a listener for graph item.Adds a listener for graph.Adds a listener for graph item.Adds a listener for graph.addValueAxes(ValueAxis... valueAxes) Adds ValueAxes.protected GraphgetGraphById(String id) protected voidprotected voidprotected voidprotected voidprotected voidprotected voidprotected voidprotected voidSets the list of colors.Sets the list of graphs belonging to this chart.setGridAboveGraphs(Boolean gridAboveGraphs) Set grid above graphs to true if grid should be drawn above the graphs or below.Sets list of guides.setSequencedAnimation(Boolean sequencedAnimation) Specifies whether the animation should be sequenced or all objects should appear at once.setStartAlpha(Double startAlpha) Sets the initial opacity of the column/line.setStartDuration(Double startDuration) Sets duration of the animation, in seconds.setStartEffect(AnimationEffect startEffect) Sets animation effect.setUrlTarget(String urlTarget) Sets target of URL.setValueAxes(List valueAxes) Sets list of ValueAxis.voidZooms out value axes, value axes shows all available data.voidzoomOutValueAxis(int index) Zooms out value axis, value axis shows all available data.voidZooms out value axis, value axis shows all available data.voidzoomValueAxisToValues(int index, Object startValue, Object endValue) Zooms-in an axis to the provided values.voidzoomValueAxisToValues(String id, Object startValue, Object endValue) Zooms-in an axis to the provided values.Methods inherited from class io.jmix.charts.component.impl.ChartImpl
addAdditionalFields, addClickListener, addData, addLabels, addLegendItemHideListener, addLegendItemShowListener, addLegendLabelClickListener, addLegendMarkerClickListener, addPrefixesOfBigNumbers, addPrefixesOfSmallNumbers, addRightClickListener, addTitles, afterPropertiesSet, createChartConfiguration, 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, setUsePrefixesMethods 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, withUnwrappedCompositionMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.jmix.charts.component.Chart
addClickListener, addLegendItemHideListener, addLegendItemShowListener, addLegendLabelClickListener, addLegendMarkerClickListener, addRightClickListener, getDataProvider, getNativeJson, repaint, setDataProvider, setNativeJsonMethods 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, setUsePrefixesMethods 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, withUnwrappedCompositionMethods inherited from interface io.jmix.ui.component.Component.BelongToFrame
getFrame, setFrameMethods inherited from interface io.jmix.ui.component.Component.HasCaption
getCaption, setCaptionMethods inherited from interface io.jmix.ui.component.Component.HasDescription
getDescription, setDescriptionMethods inherited from interface io.jmix.ui.component.Component.HasIcon
getIcon, setIcon, setIconFromSet
-
Field Details
-
axisZoomHandler
-
graphClickHandler
-
graphItemClickHandler
-
graphItemRightClickHandler
-
rollOutGraphListener
-
rollOutGraphItemListener
-
rollOverGraphListener
-
rollOverGraphItemListener
-
-
Constructor Details
-
CoordinateChartImpl
public CoordinateChartImpl()
-
-
Method Details
-
getColors
- Specified by:
getColorsin interfaceHasColors<T extends CoordinateChart>- Returns:
- List of colors
-
setColors
Description copied from interface:HasColorsSets the list of colors.If you use charts based on
SlicedChartModelImplit specifies the colors of the slices, if the slice color is not set. If there are more slices than colors in this array, the chart picks random color.If you use charts based on
CoordinateChartModelImplorStockChartModelit specifies the colors of the graphs if the lineColor of a graph is not set. If there are more graphs then colors in this array, the chart picks a random color. If not set the default value is["#FF6600", "#FCD202", "#B0DE09", "#0D8ECF", "#2A0CD0", "#CD0D74", "#CC0000", "#00CC00", "#0000CC", "#DDDDDD", "#999999", "#333333", "#990000"]If you use chart based on
SlicedChartModelImpl(PieChart, FunnelChart). Specifies the colors of the slices, if the slice color is not set. If there are more slices than colors in this array, the chart picks random color. If not set default value is["#FF0F00", "#FF6600", "#FF9E01", "#FCD202", "#F8FF01", "#B0DE09", "#04D215", "#0D8ECF", "#0D52D1", "#2A0CD0", "#8A0CCF", "#CD0D74", "#754DEB", "#DDDDDD", "#999999", "#333333", "#000000", "#57032A", "#CA9726", "#990000", "#4B0C25"]- Specified by:
setColorsin interfaceHasColors<T extends CoordinateChart>- Parameters:
list- list of colors- Returns:
- chart
-
addColors
Description copied from interface:HasColorsAdds colors.- Specified by:
addColorsin interfaceHasColors<T extends CoordinateChart>- Parameters:
colors- list of colors- Returns:
- chart
-
getGraphs
- Specified by:
getGraphsin interfaceCoordinateChartModel<T extends CoordinateChart>- Returns:
- list of graphs
-
setGraphs
Description copied from interface:CoordinateChartModelSets the list of graphs belonging to this chart.- Specified by:
setGraphsin interfaceCoordinateChartModel<T extends CoordinateChart>- Parameters:
list- list of graphs- Returns:
- coordinate chart model
-
addGraphs
Description copied from interface:CoordinateChartModelAdds graphs to the chart.- Specified by:
addGraphsin interfaceCoordinateChartModel<T extends CoordinateChart>- Parameters:
graphs- graphs- Returns:
- coordinate chart model
-
getStartEffect
- Specified by:
getStartEffectin interfaceHasStartEffect<T extends CoordinateChart>- 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<T extends CoordinateChart>- Parameters:
startEffect- the start effect- Returns:
- object with set animation effect
-
getStartDuration
- Specified by:
getStartDurationin interfaceHasStartEffect<T extends CoordinateChart>- 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<T extends CoordinateChart>- Parameters:
startDuration- the start duration- Returns:
- object with set duration of the animation
-
getValueAxes
- Specified by:
getValueAxesin interfaceCoordinateChartModel<T extends CoordinateChart>- Returns:
- list of ValueAxis
-
setValueAxes
Description copied from interface:CoordinateChartModelSets list of ValueAxis. Chart creates one value axis automatically.- Specified by:
setValueAxesin interfaceCoordinateChartModel<T extends CoordinateChart>- Parameters:
valueAxes- list of ValueAxis- Returns:
- coordinate chart model
-
addValueAxes
Description copied from interface:CoordinateChartModelAdds ValueAxes.- Specified by:
addValueAxesin interfaceCoordinateChartModel<T extends CoordinateChart>- Parameters:
valueAxes- the value axes- Returns:
- coordinate chart model
-
getGuides
- Specified by:
getGuidesin interfaceCoordinateChartModel<T extends CoordinateChart>- Returns:
- list of guides
-
setGuides
Description copied from interface:CoordinateChartModelSets list of guides. Instead of adding guides to the axes, you can push all of them to this list. In case guide has category or date defined, it will automatically will be assigned to the category axis. Otherwise to first value axis, unless you specify a different valueAxis for the guide.- Specified by:
setGuidesin interfaceCoordinateChartModel<T extends CoordinateChart>- Parameters:
list- list of guides- Returns:
- coordinate chart model
-
addGuides
Description copied from interface:CoordinateChartModelAdds guides.- Specified by:
addGuidesin interfaceCoordinateChartModel<T extends CoordinateChart>- Parameters:
guides- the guides- Returns:
- coordinate chart model
-
getGridAboveGraphs
- Specified by:
getGridAboveGraphsin interfaceCoordinateChartModel<T extends CoordinateChart>- Returns:
- true if grid should be drawn above the graphs or below
-
setGridAboveGraphs
Description copied from interface:CoordinateChartModelSet grid above graphs to true if grid should be drawn above the graphs or below. Will not work properly with 3D charts. If not set the default value is false.- Specified by:
setGridAboveGraphsin interfaceCoordinateChartModel<T extends CoordinateChart>- Parameters:
gridAboveGraphs- grid above graphs option- Returns:
- coordinate chart model
-
getSequencedAnimation
- Specified by:
getSequencedAnimationin interfaceCoordinateChartModel<T extends CoordinateChart>- Returns:
- true if the animation should be sequenced, false if all objects should appear at once
-
setSequencedAnimation
Description copied from interface:CoordinateChartModelSpecifies whether the animation should be sequenced or all objects should appear at once. If not set the default value is true.- Specified by:
setSequencedAnimationin interfaceCoordinateChartModel<T extends CoordinateChart>- Parameters:
sequencedAnimation- sequenced animation option- Returns:
- coordinate chart model
-
getStartAlpha
- Specified by:
getStartAlphain interfaceCoordinateChartModel<T extends CoordinateChart>- Returns:
- initial opacity of the column/line
-
setStartAlpha
Description copied from interface:CoordinateChartModelSets the initial opacity of the column/line. If you set startDuration to a value higher than 0, the columns/lines will fade in from startAlpha. Value range is 0 - 1. If not set the default value is 1.- Specified by:
setStartAlphain interfaceCoordinateChartModel<T extends CoordinateChart>- Parameters:
startAlpha- - the start alpha- Returns:
- coordinate chart model
-
getUrlTarget
- Specified by:
getUrlTargetin interfaceCoordinateChartModel<T extends CoordinateChart>- Returns:
- target of URL
-
setUrlTarget
Description copied from interface:CoordinateChartModelSets target of URL. If not set the default value is "_self".- Specified by:
setUrlTargetin interfaceCoordinateChartModel<T extends CoordinateChart>- Parameters:
urlTarget- the URL target string- Returns:
- coordinate chart model
-
zoomOutValueAxes
public void zoomOutValueAxes()Description copied from interface:CoordinateChartZooms out value axes, value axes shows all available data.- Specified by:
zoomOutValueAxesin interfaceCoordinateChart<T extends CoordinateChart>
-
zoomOutValueAxis
Description copied from interface:CoordinateChartZooms out value axis, value axis shows all available data.- Specified by:
zoomOutValueAxisin interfaceCoordinateChart<T extends CoordinateChart>- Parameters:
id- id of value axis
-
zoomOutValueAxis
public void zoomOutValueAxis(int index) Description copied from interface:CoordinateChartZooms out value axis, value axis shows all available data.- Specified by:
zoomOutValueAxisin interfaceCoordinateChart<T extends CoordinateChart>- Parameters:
index- index of value axis
-
zoomValueAxisToValues
Description copied from interface:CoordinateChartZooms-in an axis to the provided values.- Specified by:
zoomValueAxisToValuesin interfaceCoordinateChart<T extends CoordinateChart>- Parameters:
id- id of value axisstartValue- start valueendValue- end value
-
zoomValueAxisToValues
Description copied from interface:CoordinateChartZooms-in an axis to the provided values.- Specified by:
zoomValueAxisToValuesin interfaceCoordinateChart<T extends CoordinateChart>- Parameters:
index- index of value axisstartValue- start valueendValue- end value
-
addAxisZoomListener
Description copied from interface:CoordinateChartAdds a listener to axis. Called when value of the axis zoom changed.- Specified by:
addAxisZoomListenerin interfaceCoordinateChart<T extends CoordinateChart>- Parameters:
listener- a listener to add- Returns:
- subscription
-
onAxisZoomListener
-
addGraphClickListener
Description copied from interface:CoordinateChartAdds a listener for graph. Called when user clicks on the graph item.- Specified by:
addGraphClickListenerin interfaceCoordinateChart<T extends CoordinateChart>- Parameters:
listener- a listener to add- Returns:
- subscription
-
onGraphClick
-
addGraphItemClickListener
Description copied from interface:CoordinateChartAdds a listener for graph item. Called when user clicks on the graph item.- Specified by:
addGraphItemClickListenerin interfaceCoordinateChart<T extends CoordinateChart>- Parameters:
listener- a listener to add- Returns:
- subscription
-
onGraphItemClick
-
addGraphItemRightClickListener
public Subscription addGraphItemRightClickListener(Consumer<Chart.GraphItemRightClickEvent> listener) Description copied from interface:CoordinateChartAdds a listener for graph item. Called when user clicks on the graph item.- Specified by:
addGraphItemRightClickListenerin interfaceCoordinateChart<T extends CoordinateChart>- Parameters:
listener- a listener to add- Returns:
- subscription
-
onGraphItemRightClick
-
addRollOutGraphListener
Description copied from interface:CoordinateChartAdds a listener for graph. Called when user rolls-out of a graph.- Specified by:
addRollOutGraphListenerin interfaceCoordinateChart<T extends CoordinateChart>- Parameters:
listener- a listener to add- Returns:
- subscription
-
onRollOutGraphClick
-
addRollOutGraphItemListener
Description copied from interface:CoordinateChartAdds a listener for graph item. Called when user rolls-out of the data item.- Specified by:
addRollOutGraphItemListenerin interfaceCoordinateChart<T extends CoordinateChart>- Parameters:
listener- a listener to add- Returns:
- subscription
-
onRollOutGraphItemClick
-
addRollOverGraphListener
Description copied from interface:CoordinateChartAdds a listener for graph. Called when user rolls-over a graph.- Specified by:
addRollOverGraphListenerin interfaceCoordinateChart<T extends CoordinateChart>- Parameters:
listener- a listener to add- Returns:
- subscription
-
onRollOverGraphClick
-
addRollOverGraphItemListener
Description copied from interface:CoordinateChartAdds a listener for graph item. Called when user rolls-over data item.- Specified by:
addRollOverGraphItemListenerin interfaceCoordinateChart<T extends CoordinateChart>- Parameters:
listener- a listener to add- Returns:
- subscription
-
onRollOverGraphItemClick
-
getGraphById
-