public abstract class SlicedChartImpl<T extends SlicedChart,M extends SlicedChartModelImpl> extends ChartImpl<T,M> implements SlicedChart<T>
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.ZoomEventComponent.Alignment, Component.BelongToFrame, Component.Disposable, Component.Editable, Component.Focusable, Component.HasCaption, Component.HasDescription, Component.HasIcon, Component.HasXmlDescriptor, Component.WrapperHasContextHelp.ContextHelpIconClickEvent| Modifier and Type | Field and Description |
|---|---|
protected SliceClickListener |
sliceClickHandler |
protected SlicePullInListener |
slicePullInHandler |
protected SlicePullOutListener |
slicePullOutHandler |
protected SliceRightClickListener |
sliceRightClickHandler |
chartLocaleHelper, clickHandler, currentAuthentication, formatStringsRegistry, legendItemHideHandler, legendItemShowHandler, legendLabelClickHandler, legendMarkerClickHandler, messages, messageTools, rightClickHandleralignment, applicationContext, component, contextHelpIconClickHandler, contextHelpIconClickListener, descriptionAsHtml, element, frame, htmlSanitizerEnabled, icon, ICON_STYLE, id, parentAUTO_SIZE, AUTO_SIZE_PX, FULL_SIZE| Constructor and Description |
|---|
SlicedChartImpl() |
| Modifier and Type | Method and Description |
|---|---|
T |
addColors(Color... colors)
Adds colors.
|
T |
addGradientRatio(java.lang.Double... ratios)
Adds gradient ratios.
|
io.jmix.core.common.event.Subscription |
addSliceClickListener(java.util.function.Consumer<Chart.SliceClickEvent> listener)
Adds a listener for a slice.
|
io.jmix.core.common.event.Subscription |
addSlicePullInListener(java.util.function.Consumer<Chart.SlicePullInEvent> listener)
Adds a listener for a slice.
|
io.jmix.core.common.event.Subscription |
addSlicePullOutListener(java.util.function.Consumer<Chart.SlicePullOutEvent> listener)
Adds a listener for a slice.
|
io.jmix.core.common.event.Subscription |
addSliceRightClickListener(java.util.function.Consumer<Chart.SliceRightClickEvent> listener)
Adds a listener for a slice.
|
java.lang.String |
getAccessibleLabel() |
java.lang.Double |
getAlpha() |
java.lang.String |
getAlphaField() |
Color |
getBaseColor() |
java.lang.String |
getClassNameField() |
java.lang.String |
getColorField() |
java.util.List<Color> |
getColors() |
java.lang.String |
getDescriptionField() |
java.util.List<java.lang.Double> |
getGradientRatio() |
java.lang.Double |
getGroupedAlpha() |
Color |
getGroupedColor() |
java.lang.String |
getGroupedDescription() |
java.lang.Boolean |
getGroupedPulled() |
java.lang.String |
getGroupedTitle() |
java.lang.Double |
getGroupPercent() |
java.lang.Double |
getHideLabelsPercent() |
java.lang.Double |
getHoverAlpha() |
Color |
getLabelColorField() |
JsFunction |
getLabelFunction() |
java.lang.Boolean |
getLabelsEnabled() |
java.lang.Double |
getLabelTickAlpha() |
Color |
getLabelTickColor() |
java.lang.Integer |
getMarginBottom() |
java.lang.Integer |
getMarginLeft() |
java.lang.Integer |
getMarginRight() |
java.lang.Integer |
getMarginTop() |
java.lang.Integer |
getMaxLabelWidth() |
java.lang.Double |
getOutlineAlpha() |
Color |
getOutlineColor() |
java.lang.Integer |
getOutlineThickness() |
java.lang.String |
getPatternField() |
java.lang.String |
getPulledField() |
java.lang.Integer |
getPullOutDuration() |
AnimationEffect |
getPullOutEffect() |
java.lang.Boolean |
getPullOutOnlyOne() |
java.lang.Boolean |
getSequencedAnimation() |
java.lang.Boolean |
getShowZeroSlices() |
java.lang.Double |
getStartAlpha() |
java.lang.Double |
getStartDuration() |
AnimationEffect |
getStartEffect() |
java.lang.Integer |
getTabIndex() |
java.lang.String |
getTitleField() |
java.lang.String |
getUrlField() |
java.lang.String |
getUrlTarget() |
java.lang.String |
getValueField() |
java.lang.String |
getVisibleInLegendField() |
protected void |
onSliceClick(SliceClickEvent e) |
protected void |
onSlicePullIn(SlicePullInEvent e) |
protected void |
onSlicePullOut(SlicePullOutEvent e) |
protected void |
onSliceRightClick(SliceRightClickEvent e) |
T |
setAccessibleLabel(java.lang.String accessibleLabel)
Sets accessible label text.
|
T |
setAlpha(java.lang.Double alpha)
Sets opacity of all slices.
|
T |
setAlphaField(java.lang.String alphaField)
Sets alpha field name from data provider which holds slice's alpha.
|
T |
setBaseColor(Color baseColor)
Sets color of the first slice.
|
T |
setClassNameField(java.lang.String classNameField)
Sets field name from your data provider which holds CSS class name.
|
T |
setColorField(java.lang.String colorField)
Sets name of the field from data provider which holds slice's color.
|
T |
setColors(java.util.List list)
Sets the list of colors.
|
T |
setDescriptionField(java.lang.String descriptionField)
Sets name of the field from data provider which holds a string with description.
|
T |
setGradientRatio(java.util.List gradientRatio)
Sets the list of gradient ratio.
|
T |
setGroupedAlpha(java.lang.Double groupedAlpha)
Sets opacity of the group slice.
|
T |
setGroupedColor(Color groupedColor)
Sets the color of the group slice.
|
T |
setGroupedDescription(java.lang.String groupedDescription)
Sets description of the group slice.
|
T |
setGroupedPulled(java.lang.Boolean groupedPulled)
If groupedPulled set to true, the group slice will be pulled out when the chart loads.
|
T |
setGroupedTitle(java.lang.String groupedTitle)
Sets title of the group slice.
|
T |
setGroupPercent(java.lang.Double groupPercent)
Sets group percent.
|
T |
setHideLabelsPercent(java.lang.Double hideLabelsPercent)
Sets hide labels percent.
|
T |
setHoverAlpha(java.lang.Double hoverAlpha)
Sets opacity of a hovered slice.
|
T |
setLabelColorField(Color labelColorField)
Sets a field from your data provider which holds color value for the tick.
|
T |
setLabelFunction(JsFunction labelFunction)
Sets label function that can format data labels in any way you want.
|
T |
setLabelsEnabled(java.lang.Boolean labelsEnabled)
Set labelsEnabled to true if data labels should be visible.
|
T |
setLabelTickAlpha(java.lang.Double labelTickAlpha)
Sets
label tick opacity. |
T |
setLabelTickColor(Color labelTickColor)
Sets
label tick color. |
T |
setMarginBottom(java.lang.Integer marginBottom)
Sets bottom spacing.
|
T |
setMarginLeft(java.lang.Integer marginLeft)
Sets left-hand spacing.
|
T |
setMarginRight(java.lang.Integer marginRight)
Sets right-hand spacing.
|
T |
setMarginTop(java.lang.Integer marginTop)
Sets top spacing.
|
T |
setMaxLabelWidth(java.lang.Integer maxLabelWidth)
Sets maximum label width.
|
T |
setOutlineAlpha(java.lang.Double outlineAlpha)
Sets outline opacity.
|
T |
setOutlineColor(Color outlineColor)
Sets outline color.
|
T |
setOutlineThickness(java.lang.Integer outlineThickness)
Sets pie outline thickness.
|
T |
setPatternField(java.lang.String patternField)
Sets field name from your data provider which holds pattern information.
|
T |
setPulledField(java.lang.String pulledField)
Sets name of the field in chart's data provider which holds a boolean value telling the chart whether this
slice must be pulled or not.
|
T |
setPullOutDuration(java.lang.Integer pullOutDuration)
Sets pull out duration in seconds.
|
T |
setPullOutEffect(AnimationEffect pullOutEffect)
Sets pull out effect.
|
T |
setPullOutOnlyOne(java.lang.Boolean pullOutOnlyOne)
If pullOutOnlyOne set to true, only one slice can be pulled out at a time.
|
T |
setSequencedAnimation(java.lang.Boolean sequencedAnimation)
Specifies whether the animation should be sequenced or all slices should appear at once.
|
T |
setShowZeroSlices(java.lang.Boolean showZeroSlices)
Set showZeroSlices to true if you want the chart should display outlines (if visible) and labels for slices
even if their value is 0.
|
T |
setStartAlpha(java.lang.Double startAlpha)
Sets initial opacity of all slices.
|
T |
setStartDuration(java.lang.Double startDuration)
Sets duration of the animation, in seconds.
|
T |
setStartEffect(AnimationEffect startEffect)
Sets animation effect.
|
T |
setTabIndex(java.lang.Integer tabIndex)
In case you set it to some number, the chart will set focus on a slice (starting from first) when user clicks
tab key.
|
T |
setTitleField(java.lang.String titleField)
Sets name of the field from data provider which holds slice's title.
|
T |
setUrlField(java.lang.String urlField)
Sets name of the field from data provider which holds URL which would be accessed if the user clicks on a slice.
|
T |
setUrlTarget(java.lang.String urlTarget)
If URL is specified for a slice, it will be opened when user clicks on it.
|
T |
setValueField(java.lang.String valueField)
Sets name of the field from data provider which holds slice's value.
|
T |
setVisibleInLegendField(java.lang.String visibleInLegendField)
Use this field to selectively specify which slice is shown in legend.
|
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, setupDefaults, setUsePrefixesaddAttachListener, 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, withUnwrappedCompositionclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddClickListener, addLegendItemHideListener, addLegendItemShowListener, addLegendLabelClickListener, addLegendMarkerClickListener, addRightClickListener, getDataProvider, getNativeJson, repaint, setDataProvider, setNativeJsongetFrame, setFrameaddStyleName, 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, withUnwrappedCompositiongetIcon, setIcon, setIconFromSetgetCaption, setCaptiongetDescription, setDescriptionaddAdditionalFields, 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, setUsePrefixesprotected SliceClickListener sliceClickHandler
protected SliceRightClickListener sliceRightClickHandler
protected SlicePullInListener slicePullInHandler
protected SlicePullOutListener slicePullOutHandler
public java.lang.Double getAlpha()
getAlpha in interface SlicedChartModel<T extends SlicedChart>public T setAlpha(java.lang.Double alpha)
SlicedChartModelsetAlpha in interface SlicedChartModel<T extends SlicedChart>alpha - opacity of all slicespublic java.lang.String getAlphaField()
getAlphaField in interface SlicedChartModel<T extends SlicedChart>public T setAlphaField(java.lang.String alphaField)
SlicedChartModelsetAlphaField in interface SlicedChartModel<T extends SlicedChart>alphaField - alpha field stringpublic Color getBaseColor()
getBaseColor in interface SlicedChartModel<T extends SlicedChart>public T setBaseColor(Color baseColor)
SlicedChartModelsetBaseColor in interface SlicedChartModel<T extends SlicedChart>baseColor - color of the first slicepublic java.lang.String getColorField()
getColorField in interface SlicedChartModel<T extends SlicedChart>public T setColorField(java.lang.String colorField)
SlicedChartModelsetColorField in interface SlicedChartModel<T extends SlicedChart>colorField - color field stringpublic java.util.List<Color> getColors()
getColors in interface HasColors<T extends SlicedChart>public T setColors(java.util.List list)
HasColors
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 or StockChartModel 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"]
setColors in interface HasColors<T extends SlicedChart>list - list of colorspublic T addColors(Color... colors)
HasColorsaddColors in interface HasColors<T extends SlicedChart>colors - list of colorspublic java.lang.String getDescriptionField()
getDescriptionField in interface SlicedChartModel<T extends SlicedChart>public T setDescriptionField(java.lang.String descriptionField)
SlicedChartModelsetDescriptionField in interface SlicedChartModel<T extends SlicedChart>descriptionField - description field stringpublic java.util.List<java.lang.Double> getGradientRatio()
getGradientRatio in interface SlicedChartModel<T extends SlicedChart>public T setGradientRatio(java.util.List gradientRatio)
SlicedChartModelsetGradientRatio in interface SlicedChartModel<T extends SlicedChart>gradientRatio - list of gradient ratiopublic T addGradientRatio(java.lang.Double... ratios)
SlicedChartModeladdGradientRatio in interface SlicedChartModel<T extends SlicedChart>ratios - the ratiospublic java.lang.Double getGroupedAlpha()
getGroupedAlpha in interface SlicedChartModel<T extends SlicedChart>public T setGroupedAlpha(java.lang.Double groupedAlpha)
SlicedChartModelsetGroupedAlpha in interface SlicedChartModel<T extends SlicedChart>groupedAlpha - opacity of the group slicepublic Color getGroupedColor()
getGroupedColor in interface SlicedChartModel<T extends SlicedChart>public T setGroupedColor(Color groupedColor)
SlicedChartModelsetGroupedColor in interface SlicedChartModel<T extends SlicedChart>groupedColor - grouped colorpublic java.lang.String getGroupedDescription()
getGroupedDescription in interface SlicedChartModel<T extends SlicedChart>public T setGroupedDescription(java.lang.String groupedDescription)
SlicedChartModelsetGroupedDescription in interface SlicedChartModel<T extends SlicedChart>groupedDescription - grouped description stringpublic java.lang.Boolean getGroupedPulled()
getGroupedPulled in interface SlicedChartModel<T extends SlicedChart>public T setGroupedPulled(java.lang.Boolean groupedPulled)
SlicedChartModelsetGroupedPulled in interface SlicedChartModel<T extends SlicedChart>groupedPulled - grouped pulled optionpublic java.lang.String getGroupedTitle()
getGroupedTitle in interface SlicedChartModel<T extends SlicedChart>public T setGroupedTitle(java.lang.String groupedTitle)
SlicedChartModelsetGroupedTitle in interface SlicedChartModel<T extends SlicedChart>groupedTitle - grouped title stringpublic java.lang.Double getGroupPercent()
getGroupPercent in interface SlicedChartModel<T extends SlicedChart>public T setGroupPercent(java.lang.Double groupPercent)
SlicedChartModelsetGroupPercent in interface SlicedChartModel<T extends SlicedChart>groupPercent - the group percentpublic java.lang.Double getHideLabelsPercent()
getHideLabelsPercent in interface SlicedChartModel<T extends SlicedChart>public T setHideLabelsPercent(java.lang.Double hideLabelsPercent)
SlicedChartModelsetHideLabelsPercent in interface SlicedChartModel<T extends SlicedChart>hideLabelsPercent - the hide labels percentpublic java.lang.Double getHoverAlpha()
getHoverAlpha in interface SlicedChartModel<T extends SlicedChart>public T setHoverAlpha(java.lang.Double hoverAlpha)
SlicedChartModelsetHoverAlpha in interface SlicedChartModel<T extends SlicedChart>hoverAlpha - opacity of a hovered slicepublic java.lang.Boolean getLabelsEnabled()
getLabelsEnabled in interface SlicedChartModel<T extends SlicedChart>public T setLabelsEnabled(java.lang.Boolean labelsEnabled)
SlicedChartModelsetLabelsEnabled in interface SlicedChartModel<T extends SlicedChart>labelsEnabled - labels enabled optionpublic java.lang.Double getLabelTickAlpha()
getLabelTickAlpha in interface SlicedChartModel<T extends SlicedChart>label tick opacitypublic T setLabelTickAlpha(java.lang.Double labelTickAlpha)
SlicedChartModellabel tick opacity. Value range is 0 - 1. If not set the default value is 0.2.setLabelTickAlpha in interface SlicedChartModel<T extends SlicedChart>labelTickAlpha - label tick opacitypublic Color getLabelTickColor()
getLabelTickColor in interface SlicedChartModel<T extends SlicedChart>label tick colorpublic T setLabelTickColor(Color labelTickColor)
SlicedChartModellabel tick color. If not set the default value is #000000.setLabelTickColor in interface SlicedChartModel<T extends SlicedChart>labelTickColor - label tick colorpublic java.lang.Integer getMarginBottom()
getMarginBottom in interface HasMargins<T extends SlicedChart>public T setMarginBottom(java.lang.Integer marginBottom)
HasMargins
If is used for Legend default value is 0.
If is used for RadarChartModelImpl the default value is 0.
If is used for chart based on RectangularChartModelImpl
(GanttChart, SerialChart, XYChart) the default value is 20.
If is used for chart based on SlicedChartModelImpl (FunnelChart, PieChart) the default value is 10.
If is used for PanelsSettings the default value is 0.
setMarginBottom in interface HasMargins<T extends SlicedChart>marginBottom - bottom spacingpublic java.lang.Integer getMarginLeft()
getMarginLeft in interface HasMargins<T extends SlicedChart>public T setMarginLeft(java.lang.Integer marginLeft)
HasMargins
marginLeft will be ignored if chart is SerialChart or XYChartModelImpl and AbstractLegend.autoMargins
is true.
If is used for Legend the default value is 20.
If is used for RadarChartModelImpl the default value is 0.
If is used for chart based on RectangularChartModelImpl (GanttChart, SerialChart, XYChart) the default value is
20.
If is used for chart based on SlicedChartModelImpl the default value is 0.
If is used for PanelsSettings the default value is 0.
setMarginLeft in interface HasMargins<T extends SlicedChart>marginLeft - left-hand spacingpublic java.lang.Integer getMarginRight()
getMarginRight in interface HasMargins<T extends SlicedChart>public T setMarginRight(java.lang.Integer marginRight)
HasMargins
marginRight will be ignored if chart is SerialChart or XYChartModelImpl and AbstractLegend.autoMargins
is true.
If is used for Legend the default value is 20.
If is used for RadarChartModelImpl the default value is 0.
If is used for chart based on RectangularChartModelImpl (GanttChart, SerialChart, XYChart) the default value is
20.
If is used for chart based on SlicedChartModelImpl (FunnelChart, PieChart) the default value is 0.
If is used for PanelsSettings the default value is 0.
setMarginRight in interface HasMargins<T extends SlicedChart>marginRight - right-hand spacingpublic java.lang.Integer getMarginTop()
getMarginTop in interface HasMargins<T extends SlicedChart>public T setMarginTop(java.lang.Integer marginTop)
HasMargins
If is used for Legend the default value is 0.
If is used for RadarChartModelImpl the default value is 0.
If is used for chart based on RectangularChartModelImpl
(GanttChart, SerialChart, XYChart) the default value is 20.
If is used for chart based on SlicedChartModelImpl the default value is 10.
If is used for PanelsSettings the default value is 0.
setMarginTop in interface HasMargins<T extends SlicedChart>marginTop - top spacingpublic java.lang.Double getOutlineAlpha()
getOutlineAlpha in interface SlicedChartModel<T extends SlicedChart>public T setOutlineAlpha(java.lang.Double outlineAlpha)
SlicedChartModelsetOutlineAlpha in interface SlicedChartModel<T extends SlicedChart>outlineAlpha - outline opacitypublic Color getOutlineColor()
getOutlineColor in interface SlicedChartModel<T extends SlicedChart>public T setOutlineColor(Color outlineColor)
SlicedChartModelsetOutlineColor in interface SlicedChartModel<T extends SlicedChart>outlineColor - the outline colorpublic java.lang.Integer getOutlineThickness()
getOutlineThickness in interface SlicedChartModel<T extends SlicedChart>public T setOutlineThickness(java.lang.Integer outlineThickness)
SlicedChartModelsetOutlineThickness in interface SlicedChartModel<T extends SlicedChart>outlineThickness - the outline thicknesspublic java.lang.String getPatternField()
getPatternField in interface SlicedChartModel<T extends SlicedChart>public T setPatternField(java.lang.String patternField)
SlicedChartModelsetPatternField in interface SlicedChartModel<T extends SlicedChart>patternField - pattern field stringpublic java.lang.String getPulledField()
getPulledField in interface SlicedChartModel<T extends SlicedChart>public T setPulledField(java.lang.String pulledField)
SlicedChartModelsetPulledField in interface SlicedChartModel<T extends SlicedChart>pulledField - pulled field stringpublic java.lang.Integer getPullOutDuration()
getPullOutDuration in interface SlicedChartModel<T extends SlicedChart>public T setPullOutDuration(java.lang.Integer pullOutDuration)
SlicedChartModelsetPullOutDuration in interface SlicedChartModel<T extends SlicedChart>pullOutDuration - pull out duration in secondspublic AnimationEffect getPullOutEffect()
getPullOutEffect in interface SlicedChartModel<T extends SlicedChart>public T setPullOutEffect(AnimationEffect pullOutEffect)
SlicedChartModelsetPullOutEffect in interface SlicedChartModel<T extends SlicedChart>pullOutEffect - the pull out effectpublic java.lang.Boolean getPullOutOnlyOne()
getPullOutOnlyOne in interface SlicedChartModel<T extends SlicedChart>public T setPullOutOnlyOne(java.lang.Boolean pullOutOnlyOne)
SlicedChartModelsetPullOutOnlyOne in interface SlicedChartModel<T extends SlicedChart>pullOutOnlyOne - pull out only one optionpublic java.lang.Boolean getSequencedAnimation()
getSequencedAnimation in interface SlicedChartModel<T extends SlicedChart>public T setSequencedAnimation(java.lang.Boolean sequencedAnimation)
SlicedChartModelsetSequencedAnimation in interface SlicedChartModel<T extends SlicedChart>sequencedAnimation - sequenced animation optionpublic java.lang.Double getStartAlpha()
getStartAlpha in interface SlicedChartModel<T extends SlicedChart>public T setStartAlpha(java.lang.Double startAlpha)
SlicedChartModelsetStartAlpha in interface SlicedChartModel<T extends SlicedChart>startAlpha - initial opacity of all slicespublic java.lang.Double getStartDuration()
getStartDuration in interface HasStartEffect<T extends SlicedChart>public T setStartDuration(java.lang.Double startDuration)
HasStartEffect
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.
setStartDuration in interface HasStartEffect<T extends SlicedChart>startDuration - the start durationpublic AnimationEffect getStartEffect()
getStartEffect in interface HasStartEffect<T extends SlicedChart>public T setStartEffect(AnimationEffect startEffect)
HasStartEffect
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.
setStartEffect in interface HasStartEffect<T extends SlicedChart>startEffect - the start effectpublic java.lang.String getTitleField()
getTitleField in interface SlicedChartModel<T extends SlicedChart>public T setTitleField(java.lang.String titleField)
SlicedChartModelsetTitleField in interface SlicedChartModel<T extends SlicedChart>titleField - title field stringpublic java.lang.String getUrlField()
getUrlField in interface SlicedChartModel<T extends SlicedChart>public T setUrlField(java.lang.String urlField)
SlicedChartModelsetUrlField in interface SlicedChartModel<T extends SlicedChart>urlField - the URL field stringpublic java.lang.String getUrlTarget()
getUrlTarget in interface SlicedChartModel<T extends SlicedChart>public T setUrlTarget(java.lang.String urlTarget)
SlicedChartModelsetUrlTarget in interface SlicedChartModel<T extends SlicedChart>urlTarget - the URL target stringpublic java.lang.String getValueField()
getValueField in interface SlicedChartModel<T extends SlicedChart>public T setValueField(java.lang.String valueField)
SlicedChartModelsetValueField in interface SlicedChartModel<T extends SlicedChart>valueField - value field stringpublic java.lang.String getVisibleInLegendField()
getVisibleInLegendField in interface SlicedChartModel<T extends SlicedChart>public T setVisibleInLegendField(java.lang.String visibleInLegendField)
SlicedChartModelsetVisibleInLegendField in interface SlicedChartModel<T extends SlicedChart>visibleInLegendField - visible in legend field stringpublic JsFunction getLabelFunction()
getLabelFunction in interface SlicedChartModel<T extends SlicedChart>public T setLabelFunction(JsFunction labelFunction)
SlicedChartModelsetLabelFunction in interface SlicedChartModel<T extends SlicedChart>labelFunction - label functionpublic java.lang.Integer getMaxLabelWidth()
getMaxLabelWidth in interface SlicedChartModel<T extends SlicedChart>public T setMaxLabelWidth(java.lang.Integer maxLabelWidth)
SlicedChartModelsetMaxLabelWidth in interface SlicedChartModel<T extends SlicedChart>maxLabelWidth - maximum label widthpublic java.lang.String getClassNameField()
getClassNameField in interface SlicedChartModel<T extends SlicedChart>public T setClassNameField(java.lang.String classNameField)
SlicedChartModelAbstractChart.addClassNames is enabled, the slice element will have this class name set.setClassNameField in interface SlicedChartModel<T extends SlicedChart>classNameField - class name field stringpublic java.lang.Boolean getShowZeroSlices()
getShowZeroSlices in interface SlicedChartModel<T extends SlicedChart>public T setShowZeroSlices(java.lang.Boolean showZeroSlices)
SlicedChartModelsetShowZeroSlices in interface SlicedChartModel<T extends SlicedChart>showZeroSlices - show zero slices optionpublic java.lang.String getAccessibleLabel()
getAccessibleLabel in interface SlicedChartModel<T extends SlicedChart>public T setAccessibleLabel(java.lang.String accessibleLabel)
SlicedChartModelSlicedChartModelImpl.tabIndex is set to some number). Text is added as
aria-label tag. Note, not all screen readers and browsers support this. If not set the default value is
"[[title]]: [[percents]]% [[value]] [[description]]".setAccessibleLabel in interface SlicedChartModel<T extends SlicedChart>accessibleLabel - accessible label textpublic Color getLabelColorField()
getLabelColorField in interface SlicedChartModel<T extends SlicedChart>public T setLabelColorField(Color labelColorField)
SlicedChartModelsetLabelColorField in interface SlicedChartModel<T extends SlicedChart>labelColorField - label color field stringpublic java.lang.Integer getTabIndex()
getTabIndex in interface SlicedChartModel<T extends SlicedChart>public T setTabIndex(java.lang.Integer tabIndex)
SlicedChartModelSlicedChartModelImpl.accessibleLabel. Note, not all browsers and readers support this.setTabIndex in interface SlicedChartModel<T extends SlicedChart>tabIndex - the tab indexpublic io.jmix.core.common.event.Subscription addSliceClickListener(java.util.function.Consumer<Chart.SliceClickEvent> listener)
SlicedChartaddSliceClickListener in interface SlicedChart<T extends SlicedChart>listener - a listener to addprotected void onSliceClick(SliceClickEvent e)
public io.jmix.core.common.event.Subscription addSliceRightClickListener(java.util.function.Consumer<Chart.SliceRightClickEvent> listener)
SlicedChartaddSliceRightClickListener in interface SlicedChart<T extends SlicedChart>listener - a listener to addprotected void onSliceRightClick(SliceRightClickEvent e)
public io.jmix.core.common.event.Subscription addSlicePullInListener(java.util.function.Consumer<Chart.SlicePullInEvent> listener)
SlicedChartaddSlicePullInListener in interface SlicedChart<T extends SlicedChart>listener - a listener to addprotected void onSlicePullIn(SlicePullInEvent e)
public io.jmix.core.common.event.Subscription addSlicePullOutListener(java.util.function.Consumer<Chart.SlicePullOutEvent> listener)
SlicedChartaddSlicePullOutListener in interface SlicedChart<T extends SlicedChart>listener - a listener to addprotected void onSlicePullOut(SlicePullOutEvent e)