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.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
Modifier and TypeFieldDescriptionprotected AxisZoomListener
protected GraphClickListener
protected GraphItemClickListener
protected GraphItemRightClickListener
protected RollOutGraphItemListener
protected RollOutGraphListener
protected RollOverGraphItemListener
protected RollOverGraphListener
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
-
Constructor Summary
-
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 Graph
getGraphById
(String id) protected void
protected void
protected void
protected void
protected void
protected void
protected void
protected void
Sets 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.void
Zooms out value axes, value axes shows all available data.void
zoomOutValueAxis
(int index) Zooms out value axis, value axis shows all available data.void
Zooms out value axis, value axis shows all available data.void
zoomValueAxisToValues
(int index, Object startValue, Object endValue) Zooms-in an axis to the provided values.void
zoomValueAxisToValues
(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, 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
-
Field Details
-
axisZoomHandler
-
graphClickHandler
-
graphItemClickHandler
-
graphItemRightClickHandler
-
rollOutGraphListener
-
rollOutGraphItemListener
-
rollOverGraphListener
-
rollOverGraphItemListener
-
-
Constructor Details
-
CoordinateChartImpl
public CoordinateChartImpl()
-
-
Method Details
-
getColors
- Specified by:
getColors
in interfaceHasColors<T extends CoordinateChart>
- Returns:
- List of colors
-
setColors
Description copied from interface:HasColors
Sets the list of colors.If you use charts based on
SlicedChartModelImpl
it 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
CoordinateChartModelImpl
orStockChartModel
it 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:
setColors
in interfaceHasColors<T extends CoordinateChart>
- Parameters:
list
- list of colors- Returns:
- chart
-
addColors
Description copied from interface:HasColors
Adds colors.- Specified by:
addColors
in interfaceHasColors<T extends CoordinateChart>
- Parameters:
colors
- list of colors- Returns:
- chart
-
getGraphs
- Specified by:
getGraphs
in interfaceCoordinateChartModel<T extends CoordinateChart>
- Returns:
- list of graphs
-
setGraphs
Description copied from interface:CoordinateChartModel
Sets the list of graphs belonging to this chart.- Specified by:
setGraphs
in interfaceCoordinateChartModel<T extends CoordinateChart>
- Parameters:
list
- list of graphs- Returns:
- coordinate chart model
-
addGraphs
Description copied from interface:CoordinateChartModel
Adds graphs to the chart.- Specified by:
addGraphs
in interfaceCoordinateChartModel<T extends CoordinateChart>
- Parameters:
graphs
- graphs- Returns:
- coordinate chart model
-
getStartEffect
- Specified by:
getStartEffect
in interfaceHasStartEffect<T extends CoordinateChart>
- 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<T extends CoordinateChart>
- Parameters:
startEffect
- the start effect- Returns:
- object with set animation effect
-
getStartDuration
- Specified by:
getStartDuration
in interfaceHasStartEffect<T extends CoordinateChart>
- 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<T extends CoordinateChart>
- Parameters:
startDuration
- the start duration- Returns:
- object with set duration of the animation
-
getValueAxes
- Specified by:
getValueAxes
in interfaceCoordinateChartModel<T extends CoordinateChart>
- Returns:
- list of ValueAxis
-
setValueAxes
Description copied from interface:CoordinateChartModel
Sets list of ValueAxis. Chart creates one value axis automatically.- Specified by:
setValueAxes
in interfaceCoordinateChartModel<T extends CoordinateChart>
- Parameters:
valueAxes
- list of ValueAxis- Returns:
- coordinate chart model
-
addValueAxes
Description copied from interface:CoordinateChartModel
Adds ValueAxes.- Specified by:
addValueAxes
in interfaceCoordinateChartModel<T extends CoordinateChart>
- Parameters:
valueAxes
- the value axes- Returns:
- coordinate chart model
-
getGuides
- Specified by:
getGuides
in interfaceCoordinateChartModel<T extends CoordinateChart>
- Returns:
- list of guides
-
setGuides
Description copied from interface:CoordinateChartModel
Sets 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:
setGuides
in interfaceCoordinateChartModel<T extends CoordinateChart>
- Parameters:
list
- list of guides- Returns:
- coordinate chart model
-
addGuides
Description copied from interface:CoordinateChartModel
Adds guides.- Specified by:
addGuides
in interfaceCoordinateChartModel<T extends CoordinateChart>
- Parameters:
guides
- the guides- Returns:
- coordinate chart model
-
getGridAboveGraphs
- Specified by:
getGridAboveGraphs
in interfaceCoordinateChartModel<T extends CoordinateChart>
- Returns:
- true if grid should be drawn above the graphs or below
-
setGridAboveGraphs
Description copied from interface:CoordinateChartModel
Set 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:
setGridAboveGraphs
in interfaceCoordinateChartModel<T extends CoordinateChart>
- Parameters:
gridAboveGraphs
- grid above graphs option- Returns:
- coordinate chart model
-
getSequencedAnimation
- Specified by:
getSequencedAnimation
in 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:CoordinateChartModel
Specifies whether the animation should be sequenced or all objects should appear at once. If not set the default value is true.- Specified by:
setSequencedAnimation
in interfaceCoordinateChartModel<T extends CoordinateChart>
- Parameters:
sequencedAnimation
- sequenced animation option- Returns:
- coordinate chart model
-
getStartAlpha
- Specified by:
getStartAlpha
in interfaceCoordinateChartModel<T extends CoordinateChart>
- Returns:
- initial opacity of the column/line
-
setStartAlpha
Description copied from interface:CoordinateChartModel
Sets 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:
setStartAlpha
in interfaceCoordinateChartModel<T extends CoordinateChart>
- Parameters:
startAlpha
- - the start alpha- Returns:
- coordinate chart model
-
getUrlTarget
- Specified by:
getUrlTarget
in interfaceCoordinateChartModel<T extends CoordinateChart>
- Returns:
- target of URL
-
setUrlTarget
Description copied from interface:CoordinateChartModel
Sets target of URL. If not set the default value is "_self".- Specified by:
setUrlTarget
in interfaceCoordinateChartModel<T extends CoordinateChart>
- Parameters:
urlTarget
- the URL target string- Returns:
- coordinate chart model
-
zoomOutValueAxes
public void zoomOutValueAxes()Description copied from interface:CoordinateChart
Zooms out value axes, value axes shows all available data.- Specified by:
zoomOutValueAxes
in interfaceCoordinateChart<T extends CoordinateChart>
-
zoomOutValueAxis
Description copied from interface:CoordinateChart
Zooms out value axis, value axis shows all available data.- Specified by:
zoomOutValueAxis
in interfaceCoordinateChart<T extends CoordinateChart>
- Parameters:
id
- id of value axis
-
zoomOutValueAxis
public void zoomOutValueAxis(int index) Description copied from interface:CoordinateChart
Zooms out value axis, value axis shows all available data.- Specified by:
zoomOutValueAxis
in interfaceCoordinateChart<T extends CoordinateChart>
- Parameters:
index
- index of value axis
-
zoomValueAxisToValues
Description copied from interface:CoordinateChart
Zooms-in an axis to the provided values.- Specified by:
zoomValueAxisToValues
in interfaceCoordinateChart<T extends CoordinateChart>
- Parameters:
id
- id of value axisstartValue
- start valueendValue
- end value
-
zoomValueAxisToValues
Description copied from interface:CoordinateChart
Zooms-in an axis to the provided values.- Specified by:
zoomValueAxisToValues
in interfaceCoordinateChart<T extends CoordinateChart>
- Parameters:
index
- index of value axisstartValue
- start valueendValue
- end value
-
addAxisZoomListener
Description copied from interface:CoordinateChart
Adds a listener to axis. Called when value of the axis zoom changed.- Specified by:
addAxisZoomListener
in interfaceCoordinateChart<T extends CoordinateChart>
- Parameters:
listener
- a listener to add- Returns:
- subscription
-
onAxisZoomListener
-
addGraphClickListener
Description copied from interface:CoordinateChart
Adds a listener for graph. Called when user clicks on the graph item.- Specified by:
addGraphClickListener
in interfaceCoordinateChart<T extends CoordinateChart>
- Parameters:
listener
- a listener to add- Returns:
- subscription
-
onGraphClick
-
addGraphItemClickListener
Description copied from interface:CoordinateChart
Adds a listener for graph item. Called when user clicks on the graph item.- Specified by:
addGraphItemClickListener
in 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:CoordinateChart
Adds a listener for graph item. Called when user clicks on the graph item.- Specified by:
addGraphItemRightClickListener
in interfaceCoordinateChart<T extends CoordinateChart>
- Parameters:
listener
- a listener to add- Returns:
- subscription
-
onGraphItemRightClick
-
addRollOutGraphListener
Description copied from interface:CoordinateChart
Adds a listener for graph. Called when user rolls-out of a graph.- Specified by:
addRollOutGraphListener
in interfaceCoordinateChart<T extends CoordinateChart>
- Parameters:
listener
- a listener to add- Returns:
- subscription
-
onRollOutGraphClick
-
addRollOutGraphItemListener
Description copied from interface:CoordinateChart
Adds a listener for graph item. Called when user rolls-out of the data item.- Specified by:
addRollOutGraphItemListener
in interfaceCoordinateChart<T extends CoordinateChart>
- Parameters:
listener
- a listener to add- Returns:
- subscription
-
onRollOutGraphItemClick
-
addRollOverGraphListener
Description copied from interface:CoordinateChart
Adds a listener for graph. Called when user rolls-over a graph.- Specified by:
addRollOverGraphListener
in interfaceCoordinateChart<T extends CoordinateChart>
- Parameters:
listener
- a listener to add- Returns:
- subscription
-
onRollOverGraphClick
-
addRollOverGraphItemListener
Description copied from interface:CoordinateChart
Adds a listener for graph item. Called when user rolls-over data item.- Specified by:
addRollOverGraphItemListener
in interfaceCoordinateChart<T extends CoordinateChart>
- Parameters:
listener
- a listener to add- Returns:
- subscription
-
onRollOverGraphItemClick
-
getGraphById
-