public abstract class SeriesBasedChartImpl<T extends SeriesBasedChart,M extends AbstractSerialChart> extends RectangularChartImpl<T,M> implements SeriesBasedChart<T>
SeriesBasedChart.CategoryItemClickEvent
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
Component.Alignment, Component.BelongToFrame, Component.Disposable, Component.Editable, Component.Focusable, Component.HasCaption, Component.HasDescription, Component.HasIcon, Component.HasXmlDescriptor, Component.Wrapper
HasContextHelp.ContextHelpIconClickEvent
Modifier and Type | Field and Description |
---|---|
protected CategoryItemClickListener |
categoryItemClickHandler |
protected ZoomListener |
zoomHandler |
cursorZoomHandler, periodSelectHandler
axisZoomHandler, graphClickHandler, graphItemClickHandler, graphItemRightClickHandler, rollOutGraphItemListener, rollOutGraphListener, rollOverGraphItemListener, rollOverGraphListener
chartLocaleHelper, clickHandler, currentAuthentication, formatStringsRegistry, legendItemHideHandler, legendItemShowHandler, legendLabelClickHandler, legendMarkerClickHandler, messages, messageTools, rightClickHandler
alignment, applicationContext, component, contextHelpIconClickHandler, contextHelpIconClickListener, descriptionAsHtml, element, frame, htmlSanitizerEnabled, icon, ICON_STYLE, id, parent
AUTO_SIZE, AUTO_SIZE_PX, FULL_SIZE
Constructor and Description |
---|
SeriesBasedChartImpl() |
Modifier and Type | Method and Description |
---|---|
io.jmix.core.common.event.Subscription |
addCategoryItemClickListener(java.util.function.Consumer<SeriesBasedChart.CategoryItemClickEvent> listener)
Adds a listener for category item click.
|
io.jmix.core.common.event.Subscription |
addZoomListener(java.util.function.Consumer<Chart.ZoomEvent> listener)
Adds a listener for zoom.
|
protected void |
detectDateBasedCategoryAxis() |
java.lang.String |
getBalloonDateFormat() |
CategoryAxis |
getCategoryAxis() |
java.lang.String |
getCategoryField() |
java.lang.Integer |
getColumnSpacing() |
java.lang.Integer |
getColumnSpacing3D() |
java.lang.Double |
getColumnWidth() |
java.lang.String |
getDataDateFormat() |
java.lang.Integer |
getMaxSelectedSeries() |
java.lang.Long |
getMaxSelectedTime() |
java.lang.Long |
getMinSelectedTime() |
java.lang.Boolean |
getMouseWheelScrollEnabled() |
java.lang.Boolean |
getMouseWheelZoomEnabled() |
java.lang.Boolean |
getRotate() |
java.lang.Boolean |
getSynchronizeGrid() |
Scrollbar |
getValueScrollbar() |
java.lang.Boolean |
getZoomOutOnDataUpdate() |
protected void |
onCategoryItemClick(CategoryItemClickEvent e) |
protected void |
onZoomEvent(ZoomEvent e) |
T |
setBalloonDateFormat(java.lang.String balloonDateFormat)
Sets date format of the graph balloon (if chart parses dates and you don't use
Cursor ). |
T |
setCategoryAxis(CategoryAxis categoryAxis)
Sets the category axis.
|
T |
setCategoryField(java.lang.String categoryField)
Sets the category field name.
|
T |
setColumnSpacing(java.lang.Integer columnSpacing)
Sets the gap in pixels between two columns of the same category.
|
T |
setColumnSpacing3D(java.lang.Integer columnSpacing3D)
Sets space between 3D stacked columns.
|
T |
setColumnWidth(java.lang.Double columnWidth)
Sets relative width of columns.
|
T |
setDataDateFormat(java.lang.String dataDateFormat)
Sets data date format.
|
T |
setMaxSelectedSeries(java.lang.Integer maxSelectedSeries)
Sets maximum number of series allowed to select.
|
T |
setMaxSelectedTime(java.lang.Long maxSelectedTime)
Sets the longest time span allowed to select in milliseconds for example, 259200000 will limit selection to 3
days.
|
T |
setMinSelectedTime(java.lang.Long minSelectedTime)
Sets the shortest time span allowed to select in milliseconds for example, 1000 will limit selection to 1
second.
|
T |
setMouseWheelScrollEnabled(java.lang.Boolean mouseWheelScrollEnabled)
Set true if you want scroll chart with the mouse wheel.
|
T |
setMouseWheelZoomEnabled(java.lang.Boolean mouseWheelZoomEnabled)
Set mouseWheelZoomEnabled to true if zooming of a chart with mouse wheel should be enabled.
|
T |
setRotate(java.lang.Boolean rotate)
Set rotate to true, if the chart should be rotated by 90 degrees (the columns will become bars).
|
T |
setSynchronizeGrid(java.lang.Boolean synchronizeGrid)
Set synchronizeGrid property to true and the chart will adjust minimum and maximum of axes so that the grid
would be show at equal intervals.
|
protected void |
setupDefaults(M chart) |
protected void |
setupSerialChartDefaults(AbstractSerialChart chart) |
T |
setValueScrollbar(Scrollbar valueScrollbar)
Sets value scrollbar, enables scrolling value axes.
|
T |
setZoomOutOnDataUpdate(java.lang.Boolean zoomOutOnDataUpdate)
Set zoomOutOnDataUpdate to true if chart should be zoom-out when data is updated.
|
void |
zoomOut()
Zooms out, charts shows all available data.
|
void |
zoomToDates(java.util.Date start,
java.util.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.
|
addCursorPeriodSelectListener, addCursorZoomListener, addTrendLines, getAngle, getAutoMarginOffset, getAutoMargins, getChartCursor, getChartScrollbar, getDepth3D, getMarginBottom, getMarginLeft, getMarginRight, getMarginsUpdated, getMarginTop, getMaxZoomFactor, getMinMarginBottom, getMinMarginLeft, getMinMarginRight, getMinMarginTop, getPlotAreaBorderAlpha, getPlotAreaBorderColor, getPlotAreaFillAlphas, getPlotAreaFillColors, getPlotAreaGradientAngle, getTrendLines, getZoomOutButtonAlpha, getZoomOutButtonColor, getZoomOutButtonImage, getZoomOutButtonImageSize, getZoomOutButtonPadding, getZoomOutButtonRollOverAlpha, getZoomOutButtonTabIndex, getZoomOutText, onCursorPeriodSelect, onCursorZoom, setAngle, setAutoMarginOffset, setAutoMargins, setChartCursor, setChartScrollbar, setDepth3D, setMarginBottom, setMarginLeft, setMarginRight, setMarginsUpdated, setMarginTop, setMaxZoomFactor, setMinMarginBottom, setMinMarginLeft, setMinMarginRight, setMinMarginTop, setPlotAreaBorderAlpha, setPlotAreaBorderColor, setPlotAreaFillAlphas, setPlotAreaFillColors, setPlotAreaGradientAngle, setTrendLines, setupRectangularChartDefaults, setZoomOutButtonAlpha, setZoomOutButtonColor, setZoomOutButtonImage, setZoomOutButtonImageSize, setZoomOutButtonPadding, setZoomOutButtonRollOverAlpha, setZoomOutButtonTabIndex, setZoomOutText
addAxisZoomListener, addColors, addGraphClickListener, addGraphItemClickListener, addGraphItemRightClickListener, addGraphs, addGuides, addRollOutGraphItemListener, addRollOutGraphListener, addRollOverGraphItemListener, addRollOverGraphListener, addValueAxes, getColors, getGraphById, getGraphs, getGridAboveGraphs, getGuides, getSequencedAnimation, getStartAlpha, getStartDuration, getStartEffect, getUrlTarget, getValueAxes, onAxisZoomListener, onGraphClick, onGraphItemClick, onGraphItemRightClick, onRollOutGraphClick, onRollOutGraphItemClick, onRollOverGraphClick, onRollOverGraphItemClick, setColors, setGraphs, setGridAboveGraphs, setGuides, setSequencedAnimation, setStartAlpha, setStartDuration, setStartEffect, setUrlTarget, setValueAxes, zoomOutValueAxes, zoomOutValueAxis, zoomOutValueAxis, zoomValueAxisToValues, zoomValueAxisToValues
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, setMessageTools, setNativeJson, setPanEventsEnabled, setPath, setPathToImages, setPercentPrecision, setPrecision, setPrefixesOfBigNumbers, setPrefixesOfSmallNumbers, setProcessCount, setProcessTimeout, setResponsive, setSvgIcons, setTapToActivate, setTheme, setThousandsSeparator, setTitles, setTouchClickDuration, setupChartLocale, setUsePrefixes
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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addCursorPeriodSelectListener, addCursorZoomListener
addAxisZoomListener, addGraphClickListener, addGraphItemClickListener, addGraphItemRightClickListener, addRollOutGraphItemListener, addRollOutGraphListener, addRollOverGraphItemListener, addRollOverGraphListener, zoomOutValueAxes, zoomOutValueAxis, zoomOutValueAxis, zoomValueAxisToValues, zoomValueAxisToValues
addClickListener, addLegendItemHideListener, addLegendItemShowListener, addLegendLabelClickListener, addLegendMarkerClickListener, addRightClickListener, getDataProvider, getNativeJson, repaint, setDataProvider, setNativeJson
getFrame, setFrame
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
getIcon, setIcon, setIconFromSet
getCaption, setCaption
getDescription, setDescription
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
addGraphs, addGuides, addValueAxes, getGraphs, getGridAboveGraphs, getGuides, getSequencedAnimation, getStartAlpha, getUrlTarget, getValueAxes, setGraphs, setGridAboveGraphs, setGuides, setSequencedAnimation, setStartAlpha, setUrlTarget, setValueAxes
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
getStartDuration, getStartEffect, setStartDuration, setStartEffect
getMarginBottom, getMarginLeft, getMarginRight, getMarginTop, setMarginBottom, setMarginLeft, setMarginRight, setMarginTop
protected ZoomListener zoomHandler
protected CategoryItemClickListener categoryItemClickHandler
protected void setupDefaults(M chart)
setupDefaults
in class RectangularChartImpl<T extends SeriesBasedChart,M extends AbstractSerialChart>
protected void setupSerialChartDefaults(AbstractSerialChart chart)
protected void detectDateBasedCategoryAxis()
public CategoryAxis getCategoryAxis()
getCategoryAxis
in interface SeriesBasedChartModel<T extends SeriesBasedChart>
public T setCategoryAxis(CategoryAxis categoryAxis)
SeriesBasedChartModel
setCategoryAxis
in interface SeriesBasedChartModel<T extends SeriesBasedChart>
categoryAxis
- the category axispublic java.lang.String getCategoryField()
getCategoryField
in interface SeriesBasedChartModel<T extends SeriesBasedChart>
public T setCategoryField(java.lang.String categoryField)
SeriesBasedChartModel
setCategoryField
in interface SeriesBasedChartModel<T extends SeriesBasedChart>
categoryField
- category field name stringpublic java.lang.String getBalloonDateFormat()
getBalloonDateFormat
in interface SeriesBasedChartModel<T extends SeriesBasedChart>
public T setBalloonDateFormat(java.lang.String balloonDateFormat)
SeriesBasedChartModel
Cursor
). If not set the default value is "MMM DD, YYYY".setBalloonDateFormat
in interface SeriesBasedChartModel<T extends SeriesBasedChart>
balloonDateFormat
- the balloon date formatpublic java.lang.Integer getColumnSpacing3D()
getColumnSpacing3D
in interface SeriesBasedChartModel<T extends SeriesBasedChart>
public T setColumnSpacing3D(java.lang.Integer columnSpacing3D)
SeriesBasedChartModel
setColumnSpacing3D
in interface SeriesBasedChartModel<T extends SeriesBasedChart>
columnSpacing3D
- space between 3D stacked columnspublic java.lang.Integer getColumnSpacing()
getColumnSpacing
in interface SeriesBasedChartModel<T extends SeriesBasedChart>
public T setColumnSpacing(java.lang.Integer columnSpacing)
SeriesBasedChartModel
setColumnSpacing
in interface SeriesBasedChartModel<T extends SeriesBasedChart>
columnSpacing
- column spacing in pixelspublic java.lang.Double getColumnWidth()
getColumnWidth
in interface SeriesBasedChartModel<T extends SeriesBasedChart>
public T setColumnWidth(java.lang.Double columnWidth)
SeriesBasedChartModel
setColumnWidth
in interface SeriesBasedChartModel<T extends SeriesBasedChart>
columnWidth
- relative width of columnspublic java.lang.String getDataDateFormat()
getDataDateFormat
in interface SeriesBasedChartModel<T extends SeriesBasedChart>
public T setDataDateFormat(java.lang.String dataDateFormat)
SeriesBasedChartModel
setDataDateFormat
in interface SeriesBasedChartModel<T extends SeriesBasedChart>
dataDateFormat
- data date format stringpublic java.lang.Integer getMaxSelectedSeries()
getMaxSelectedSeries
in interface SeriesBasedChartModel<T extends SeriesBasedChart>
public T setMaxSelectedSeries(java.lang.Integer maxSelectedSeries)
SeriesBasedChartModel
setMaxSelectedSeries
in interface SeriesBasedChartModel<T extends SeriesBasedChart>
maxSelectedSeries
- the maximum number of selected seriespublic java.lang.Long getMaxSelectedTime()
getMaxSelectedTime
in interface SeriesBasedChartModel<T extends SeriesBasedChart>
public T setMaxSelectedTime(java.lang.Long maxSelectedTime)
SeriesBasedChartModel
CategoryAxis.equalSpacing
is set to false.setMaxSelectedTime
in interface SeriesBasedChartModel<T extends SeriesBasedChart>
maxSelectedTime
- the maximum selected time in millisecondspublic java.lang.Long getMinSelectedTime()
getMinSelectedTime
in interface SeriesBasedChartModel<T extends SeriesBasedChart>
public T setMinSelectedTime(java.lang.Long minSelectedTime)
SeriesBasedChartModel
CategoryAxis.equalSpacing
is set to false. If not set the default value is 0.setMinSelectedTime
in interface SeriesBasedChartModel<T extends SeriesBasedChart>
minSelectedTime
- the minimum selected time in millisecondspublic java.lang.Boolean getMouseWheelScrollEnabled()
getMouseWheelScrollEnabled
in interface SeriesBasedChartModel<T extends SeriesBasedChart>
public T setMouseWheelScrollEnabled(java.lang.Boolean mouseWheelScrollEnabled)
SeriesBasedChartModel
setMouseWheelScrollEnabled
in interface SeriesBasedChartModel<T extends SeriesBasedChart>
mouseWheelScrollEnabled
- mouse wheel scroll optionpublic java.lang.Boolean getRotate()
getRotate
in interface SeriesBasedChartModel<T extends SeriesBasedChart>
public T setRotate(java.lang.Boolean rotate)
SeriesBasedChartModel
setRotate
in interface SeriesBasedChartModel<T extends SeriesBasedChart>
rotate
- rotate optionpublic java.lang.Boolean getZoomOutOnDataUpdate()
getZoomOutOnDataUpdate
in interface SeriesBasedChartModel<T extends SeriesBasedChart>
public T setZoomOutOnDataUpdate(java.lang.Boolean zoomOutOnDataUpdate)
SeriesBasedChartModel
setZoomOutOnDataUpdate
in interface SeriesBasedChartModel<T extends SeriesBasedChart>
zoomOutOnDataUpdate
- zoomOutOnDataUpdate optionpublic java.lang.Boolean getMouseWheelZoomEnabled()
getMouseWheelZoomEnabled
in interface SeriesBasedChartModel<T extends SeriesBasedChart>
public T setMouseWheelZoomEnabled(java.lang.Boolean mouseWheelZoomEnabled)
SeriesBasedChartModel
setMouseWheelZoomEnabled
in interface SeriesBasedChartModel<T extends SeriesBasedChart>
mouseWheelZoomEnabled
- mouseWheelZoomEnabled optionpublic Scrollbar getValueScrollbar()
getValueScrollbar
in interface SeriesBasedChartModel<T extends SeriesBasedChart>
public T setValueScrollbar(Scrollbar valueScrollbar)
SeriesBasedChartModel
setValueScrollbar
in interface SeriesBasedChartModel<T extends SeriesBasedChart>
valueScrollbar
- the value scrollbarpublic java.lang.Boolean getSynchronizeGrid()
getSynchronizeGrid
in interface SeriesBasedChartModel<T extends SeriesBasedChart>
public T setSynchronizeGrid(java.lang.Boolean synchronizeGrid)
SeriesBasedChartModel
setSynchronizeGrid
in interface SeriesBasedChartModel<T extends SeriesBasedChart>
synchronizeGrid
- synchronized grid optionpublic void zoomOut()
SeriesBasedChart
zoomOut
in interface SeriesBasedChart<T extends SeriesBasedChart>
public void zoomToIndexes(int start, int end)
SeriesBasedChart
zoomToIndexes
in interface SeriesBasedChart<T extends SeriesBasedChart>
start
- start indexend
- end indexpublic void zoomToDates(java.util.Date start, java.util.Date end)
SeriesBasedChart
zoomToDates
in interface SeriesBasedChart<T extends SeriesBasedChart>
start
- start dateend
- end datepublic io.jmix.core.common.event.Subscription addZoomListener(java.util.function.Consumer<Chart.ZoomEvent> listener)
SeriesBasedChart
addZoomListener
in interface SeriesBasedChart<T extends SeriesBasedChart>
listener
- a listener to addprotected void onZoomEvent(ZoomEvent e)
public io.jmix.core.common.event.Subscription addCategoryItemClickListener(java.util.function.Consumer<SeriesBasedChart.CategoryItemClickEvent> listener)
SeriesBasedChart
addCategoryItemClickListener
in interface SeriesBasedChart<T extends SeriesBasedChart>
listener
- a listener to addprotected void onCategoryItemClick(CategoryItemClickEvent e)