public interface SlicedChartModel<T extends SlicedChartModel> extends ChartModel<T>, HasMargins<T>, HasStartEffect<T>, HasColors<T>
Modifier and Type | Method and Description |
---|---|
T |
addGradientRatio(java.lang.Double... ratios)
Adds gradient ratios.
|
java.lang.String |
getAccessibleLabel() |
java.lang.Double |
getAlpha() |
java.lang.String |
getAlphaField() |
Color |
getBaseColor() |
java.lang.String |
getClassNameField() |
java.lang.String |
getColorField() |
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 |
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.Integer |
getTabIndex() |
java.lang.String |
getTitleField() |
java.lang.String |
getUrlField() |
java.lang.String |
getUrlTarget() |
java.lang.String |
getValueField() |
java.lang.String |
getVisibleInLegendField() |
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 |
setDescriptionField(java.lang.String descriptionField)
Sets name of the field from data provider which holds a string with description.
|
T |
setGradientRatio(java.util.List<java.lang.Double> 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 |
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 |
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, addData, addLabels, addPrefixesOfBigNumbers, addPrefixesOfSmallNumbers, addTitles, getAccessible, 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, getPanEventsEnabled, getPath, getPathToImages, getPercentPrecision, getPrecision, getPrefixesOfBigNumbers, getPrefixesOfSmallNumbers, getProcessCount, getProcessTimeout, getResponsive, getSvgIcons, getTapToActivate, getTheme, getThousandsSeparator, getTitles, getTouchClickDuration, getUsePrefixes, setAccessible, setAccessibleTitle, setAddClassNames, setAdditionalFields, setAllLabels, setAutoDisplay, setAutoResize, setAutoTransform, setBackgroundAlpha, setBackgroundColor, setBalloon, setBorderAlpha, setBorderColor, setClassNamePrefix, setColor, setCreditsPosition, setDataProvider, 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
getMarginBottom, getMarginLeft, getMarginRight, getMarginTop, setMarginBottom, setMarginLeft, setMarginRight, setMarginTop
getStartDuration, getStartEffect, setStartDuration, setStartEffect
java.lang.Double getAlpha()
T setAlpha(java.lang.Double alpha)
alpha
- opacity of all slicesjava.lang.String getAlphaField()
T setAlphaField(java.lang.String alphaField)
alphaField
- alpha field stringColor getBaseColor()
T setBaseColor(Color baseColor)
baseColor
- color of the first slicejava.lang.String getColorField()
T setColorField(java.lang.String colorField)
colorField
- color field stringjava.lang.String getDescriptionField()
T setDescriptionField(java.lang.String descriptionField)
descriptionField
- description field stringjava.util.List<java.lang.Double> getGradientRatio()
T setGradientRatio(java.util.List<java.lang.Double> gradientRatio)
gradientRatio
- list of gradient ratioT addGradientRatio(java.lang.Double... ratios)
ratios
- the ratiosjava.lang.Double getGroupedAlpha()
T setGroupedAlpha(java.lang.Double groupedAlpha)
groupedAlpha
- opacity of the group sliceColor getGroupedColor()
T setGroupedColor(Color groupedColor)
groupedColor
- grouped colorjava.lang.String getGroupedDescription()
T setGroupedDescription(java.lang.String groupedDescription)
groupedDescription
- grouped description stringjava.lang.Boolean getGroupedPulled()
T setGroupedPulled(java.lang.Boolean groupedPulled)
groupedPulled
- grouped pulled optionjava.lang.String getGroupedTitle()
T setGroupedTitle(java.lang.String groupedTitle)
groupedTitle
- grouped title stringjava.lang.Double getGroupPercent()
T setGroupPercent(java.lang.Double groupPercent)
groupPercent
- the group percentjava.lang.Double getHideLabelsPercent()
T setHideLabelsPercent(java.lang.Double hideLabelsPercent)
hideLabelsPercent
- the hide labels percentjava.lang.Double getHoverAlpha()
T setHoverAlpha(java.lang.Double hoverAlpha)
hoverAlpha
- opacity of a hovered slicejava.lang.Boolean getLabelsEnabled()
T setLabelsEnabled(java.lang.Boolean labelsEnabled)
labelsEnabled
- labels enabled optionjava.lang.Double getLabelTickAlpha()
label
tick opacityT setLabelTickAlpha(java.lang.Double labelTickAlpha)
label
tick opacity. Value range is 0 - 1.labelTickAlpha
- label tick opacityT setLabelTickColor(Color labelTickColor)
label
tick color.labelTickColor
- label tick colorjava.lang.Double getOutlineAlpha()
T setOutlineAlpha(java.lang.Double outlineAlpha)
outlineAlpha
- outline opacityColor getOutlineColor()
T setOutlineColor(Color outlineColor)
outlineColor
- the outline colorjava.lang.Integer getOutlineThickness()
T setOutlineThickness(java.lang.Integer outlineThickness)
outlineThickness
- the outline thicknessjava.lang.String getPatternField()
T setPatternField(java.lang.String patternField)
patternField
- pattern field stringjava.lang.String getPulledField()
T setPulledField(java.lang.String pulledField)
pulledField
- pulled field stringjava.lang.Integer getPullOutDuration()
T setPullOutDuration(java.lang.Integer pullOutDuration)
pullOutDuration
- pull out duration in secondsAnimationEffect getPullOutEffect()
T setPullOutEffect(AnimationEffect pullOutEffect)
pullOutEffect
- the pull out effectjava.lang.Boolean getPullOutOnlyOne()
T setPullOutOnlyOne(java.lang.Boolean pullOutOnlyOne)
pullOutOnlyOne
- pull out only one optionjava.lang.Boolean getSequencedAnimation()
T setSequencedAnimation(java.lang.Boolean sequencedAnimation)
sequencedAnimation
- sequenced animation optionjava.lang.Double getStartAlpha()
T setStartAlpha(java.lang.Double startAlpha)
startAlpha
- initial opacity of all slicesjava.lang.String getTitleField()
T setTitleField(java.lang.String titleField)
titleField
- title field stringjava.lang.String getUrlField()
T setUrlField(java.lang.String urlField)
urlField
- the URL field stringjava.lang.String getUrlTarget()
T setUrlTarget(java.lang.String urlTarget)
urlTarget
- the URL target stringjava.lang.String getValueField()
T setValueField(java.lang.String valueField)
valueField
- value field stringjava.lang.String getVisibleInLegendField()
T setVisibleInLegendField(java.lang.String visibleInLegendField)
visibleInLegendField
- visible in legend field stringJsFunction getLabelFunction()
T setLabelFunction(JsFunction labelFunction)
labelFunction
- label functionjava.lang.Integer getMaxLabelWidth()
T setMaxLabelWidth(java.lang.Integer maxLabelWidth)
maxLabelWidth
- maximum label widthjava.lang.String getClassNameField()
T setClassNameField(java.lang.String classNameField)
AbstractChart.addClassNames
is enabled, the slice element will have this class name set.classNameField
- class name field stringjava.lang.Boolean getShowZeroSlices()
T setShowZeroSlices(java.lang.Boolean showZeroSlices)
showZeroSlices
- show zero slices optionjava.lang.String getAccessibleLabel()
T setAccessibleLabel(java.lang.String accessibleLabel)
SlicedChart.tabIndex
is set to some number). Text is added as
aria-label tag. Note, not all screen readers and browsers support this.accessibleLabel
- accessible label textColor getLabelColorField()
T setLabelColorField(Color labelColorField)
labelColorField
- label color field stringjava.lang.Integer getTabIndex()
T setTabIndex(java.lang.Integer tabIndex)
SlicedChart.accessibleLabel
. Note, not all browsers and readers support this.tabIndex
- the tab index