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
Modifier and TypeInterfaceDescriptionstatic class
static class
static class
static class
static class
static class
static class
static class
Describes axis zoom event.static class
Describes chart click event.static class
Describes chart click event.static class
Describes cursor period select event.static class
Describes cursor zoom event.static class
Describes graph click event.static class
Describes graph item click event.static class
Describes graph item click event.static class
Describes legend item click event.static class
Describes legend item click event.static class
Describes legend item hide event.static class
Describes legend item show event.static class
Describes legend marker click event.static class
Describes the graph roll-out event.static class
Describes the data item roll-out event.static class
Describes the graph roll-over event.static class
Describes the data item roll-over event.static class
Describes slice click event.static class
Describes slice pull-in event.static class
Describes slice pull-out event.static class
Describes slice click event.static class
Describes 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.void
repaint()
Resend all items and properties to client and repaint chart.setDataProvider
(DataProvider dataProvider) Sets data provider that contains data set.void
setNativeJson
(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, 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
-
Method Details
-
getDataProvider
DataProvider getDataProvider()- Specified by:
getDataProvider
in interfaceChartModel<T extends Chart>
- Returns:
- the data provider
-
setDataProvider
Description copied from interface:ChartModel
Sets data provider that contains data set.- Specified by:
setDataProvider
in 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.
-