Package io.jmix.charts.component
Interface SeriesBasedChart<T extends SeriesBasedChart>
- All Superinterfaces:
Chart<T>
,ChartModel<T>
,Component
,Component.BelongToFrame
,Component.HasCaption
,Component.HasDescription
,Component.HasIcon
,CoordinateChart<T>
,CoordinateChartModel<T>
,HasColors<T>
,HasMargins<T>
,HasStartEffect<T>
,RectangularChart<T>
,RectangularChartModel<T>
,SeriesBasedChartModel<T>
- All Known Subinterfaces:
GanttChart
,SerialChart
- All Known Implementing Classes:
GanttChartImpl
,SerialChartImpl
,SeriesBasedChartImpl
public interface SeriesBasedChart<T extends SeriesBasedChart>
extends RectangularChart<T>, SeriesBasedChartModel<T>
Base interface for
SerialChart
and GanttChart
.-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic class
Describes clickItem event on categories in the CategoryAxis.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
-
Field Summary
Fields inherited from interface io.jmix.ui.component.Component
AUTO_SIZE, AUTO_SIZE_PX, FULL_SIZE
-
Method Summary
Modifier and TypeMethodDescriptionAdds a listener for category item click.addZoomListener
(Consumer<Chart.ZoomEvent> listener) Adds a listener for zoom.void
zoomOut()
Zooms out, charts shows all available data.void
zoomToDates
(Date start, Date end) Zooms the chart from one date to another.void
zoomToIndexes
(int start, int end) Zooms the chart by the index of the category.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.component.CoordinateChart
addAxisZoomListener, addGraphClickListener, addGraphItemClickListener, addGraphItemRightClickListener, addRollOutGraphItemListener, addRollOutGraphListener, addRollOverGraphItemListener, addRollOverGraphListener, zoomOutValueAxes, zoomOutValueAxis, zoomOutValueAxis, zoomValueAxisToValues, zoomValueAxisToValues
Methods inherited from interface io.jmix.charts.model.chart.CoordinateChartModel
addGraphs, addGuides, addValueAxes, getGraphs, getGridAboveGraphs, getGuides, getSequencedAnimation, getStartAlpha, getUrlTarget, getValueAxes, setGraphs, setGridAboveGraphs, setGuides, setSequencedAnimation, setStartAlpha, setUrlTarget, setValueAxes
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.RectangularChart
addCursorPeriodSelectListener, addCursorZoomListener
Methods inherited from interface io.jmix.charts.model.chart.RectangularChartModel
addTrendLines, getAngle, getAutoMarginOffset, getAutoMargins, getChartCursor, getChartScrollbar, getDepth3D, getMarginsUpdated, getMaxZoomFactor, getMinMarginBottom, getMinMarginLeft, getMinMarginRight, getMinMarginTop, getPlotAreaBorderAlpha, getPlotAreaBorderColor, getPlotAreaFillAlphas, getPlotAreaFillColors, getPlotAreaGradientAngle, getTrendLines, getZoomOutButtonAlpha, getZoomOutButtonColor, getZoomOutButtonImage, getZoomOutButtonImageSize, getZoomOutButtonPadding, getZoomOutButtonRollOverAlpha, getZoomOutButtonTabIndex, getZoomOutText, setAngle, setAutoMarginOffset, setAutoMargins, setChartCursor, setChartScrollbar, setDepth3D, setMarginsUpdated, setMaxZoomFactor, setMinMarginBottom, setMinMarginLeft, setMinMarginRight, setMinMarginTop, setPlotAreaBorderAlpha, setPlotAreaBorderColor, setPlotAreaFillAlphas, setPlotAreaFillColors, setPlotAreaGradientAngle, setTrendLines, setZoomOutButtonAlpha, setZoomOutButtonColor, setZoomOutButtonImage, setZoomOutButtonImageSize, setZoomOutButtonPadding, setZoomOutButtonRollOverAlpha, setZoomOutButtonTabIndex, setZoomOutText
Methods inherited from interface io.jmix.charts.model.chart.SeriesBasedChartModel
getBalloonDateFormat, getCategoryAxis, getCategoryField, getColumnSpacing, getColumnSpacing3D, getColumnWidth, getDataDateFormat, getMaxSelectedSeries, getMaxSelectedTime, getMinSelectedTime, getMouseWheelScrollEnabled, getMouseWheelZoomEnabled, getRotate, getSynchronizeGrid, getValueScrollbar, getZoomOutOnDataUpdate, setBalloonDateFormat, setCategoryAxis, setCategoryField, setColumnSpacing, setColumnSpacing3D, setColumnWidth, setDataDateFormat, setMaxSelectedSeries, setMaxSelectedTime, setMinSelectedTime, setMouseWheelScrollEnabled, setMouseWheelZoomEnabled, setRotate, setSynchronizeGrid, setValueScrollbar, setZoomOutOnDataUpdate
-
Method Details
-
addZoomListener
Adds a listener for zoom. Called when value of the chart zoom changed.- Parameters:
listener
- a listener to add- Returns:
- subscription
-
addCategoryItemClickListener
Subscription addCategoryItemClickListener(Consumer<SeriesBasedChart.CategoryItemClickEvent> listener) Adds a listener for category item click. Called when user clicks on the category.- Parameters:
listener
- a listener to add- Returns:
- subscription
-
zoomOut
void zoomOut()Zooms out, charts shows all available data. -
zoomToIndexes
void zoomToIndexes(int start, int end) Zooms the chart by the index of the category.- Parameters:
start
- start indexend
- end index
-
zoomToDates
Zooms the chart from one date to another.- Parameters:
start
- start dateend
- end date
-