Package io.jmix.charts.component
Interface Chart<T extends Chart>
- Type Parameters:
T- type of builder methods
- All Superinterfaces:
ChartModel<T>,Component,Component.BelongToFrame,Component.HasCaption,Component.HasDescription,Component.HasIcon
- All Known Subinterfaces:
AngularGaugeChart,CoordinateChart<T>,FunnelChart,GanttChart,PieChart,RadarChart,RectangularChart<T>,SerialChart,SeriesBasedChart<T>,SlicedChart<T>,XYChart
- All Known Implementing Classes:
AngularGaugeChartImpl,ChartImpl,CoordinateChartImpl,FunnelChartImpl,GanttChartImpl,PieChartImpl,RadarChartImpl,RectangularChartImpl,SerialChartImpl,SeriesBasedChartImpl,SlicedChartImpl,XYChartImpl
public interface Chart<T extends Chart>
extends Component, ChartModel<T>, Component.BelongToFrame, Component.HasIcon, Component.HasCaption
Base interface for all *Chart components.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classDescribes axis zoom event.static classDescribes chart click event.static classDescribes chart click event.static classDescribes cursor period select event.static classDescribes cursor zoom event.static classDescribes graph click event.static classDescribes graph item click event.static classDescribes graph item click event.static classDescribes legend item click event.static classDescribes legend item click event.static classDescribes legend item hide event.static classDescribes legend item show event.static classDescribes legend marker click event.static classDescribes the graph roll-out event.static classDescribes the data item roll-out event.static classDescribes the graph roll-over event.static classDescribes the data item roll-over event.static classDescribes slice click event.static classDescribes slice pull-in event.static classDescribes slice pull-out event.static classDescribes slice click event.static classDescribes zoom event.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 -
Field Summary
Fields inherited from interface io.jmix.ui.component.Component
AUTO_SIZE, AUTO_SIZE_PX, FULL_SIZE -
Method Summary
Modifier and TypeMethodDescriptionaddClickListener(Consumer<Chart.ChartClickEvent> listener) Adds a listener for a chart.Adds a listener for a chart.Adds a listener for a chart.Adds a listener for a chart.Adds a listener for a chart.Adds a listener for a chart.voidrepaint()Resend all items and properties to client and repaint chart.setDataProvider(DataProvider dataProvider) Sets data provider that contains data set.voidsetNativeJson(String json) Set additional JSON configuration as a string.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, 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
-
Method Details
-
getDataProvider
DataProvider getDataProvider()- Specified by:
getDataProviderin interfaceChartModel<T extends Chart>- Returns:
- the data provider
-
setDataProvider
Description copied from interface:ChartModelSets data provider that contains data set.- Specified by:
setDataProviderin interfaceChartModel<T extends Chart>- Parameters:
dataProvider- the data provider- Returns:
- chart
- See Also:
-
repaint
void repaint()Resend all items and properties to client and repaint chart. Use this method if you change some property of already displayed chart. -
addClickListener
Adds a listener for a chart. Called when user clicks on the chart.- Parameters:
listener- a listener to add- Returns:
- subscription
-
addRightClickListener
Adds a listener for a chart. Called when user clicks on the chart.- Parameters:
listener- a listener to add- Returns:
- subscription
-
addLegendItemHideListener
Adds a listener for a chart. Called when the legend item hided.- Parameters:
listener- a listener to add- Returns:
- subscription
-
addLegendItemShowListener
Adds a listener for a chart. Called when the legend item showed.- Parameters:
listener- a listener to add- Returns:
- subscription
-
addLegendLabelClickListener
Adds a listener for a chart. Called when user clicks on the legend item.- Parameters:
listener- a listener to add- Returns:
- subscription
-
addLegendMarkerClickListener
Adds a listener for a chart. Called when user clicks on the legend marker.- Parameters:
listener- a listener to add- Returns:
- subscription
-
setNativeJson
Set additional JSON configuration as a string. This JSON can override configuration loaded from XML and from Component API.- Parameters:
json- JSON configuration
-
getNativeJson
String getNativeJson()- Returns:
- additional JSON configuration as a string.
-