public abstract class ChartImpl<T extends Chart,M extends AbstractChart> extends AbstractComponent<JmixAmchartsScene> implements Chart<T>, org.springframework.beans.factory.InitializingBean
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 ChartLocaleHelper |
chartLocaleHelper |
protected ChartClickListener |
clickHandler |
protected io.jmix.core.security.CurrentAuthentication |
currentAuthentication |
protected io.jmix.core.metamodel.datatype.FormatStringsRegistry |
formatStringsRegistry |
protected LegendItemHideListener |
legendItemHideHandler |
protected LegendItemShowListener |
legendItemShowHandler |
protected LegendLabelClickListener |
legendLabelClickHandler |
protected LegendMarkerClickListener |
legendMarkerClickHandler |
protected io.jmix.core.Messages |
messages |
protected io.jmix.core.MessageTools |
messageTools |
protected ChartRightClickListener |
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 |
---|
ChartImpl() |
Modifier and Type | Method and Description |
---|---|
T |
addAdditionalFields(java.lang.String... fields)
Adds additional fields
|
io.jmix.core.common.event.Subscription |
addClickListener(java.util.function.Consumer<Chart.ChartClickEvent> listener)
Adds a listener for a chart.
|
T |
addData(DataItem... dataItems)
Adds data items.
|
T |
addLabels(Label... allLabels)
Adds labels.
|
io.jmix.core.common.event.Subscription |
addLegendItemHideListener(java.util.function.Consumer<Chart.LegendItemHideEvent> listener)
Adds a listener for a chart.
|
io.jmix.core.common.event.Subscription |
addLegendItemShowListener(java.util.function.Consumer<Chart.LegendItemShowEvent> listener)
Adds a listener for a chart.
|
io.jmix.core.common.event.Subscription |
addLegendLabelClickListener(java.util.function.Consumer<Chart.LegendItemClickEvent> listener)
Adds a listener for a chart.
|
io.jmix.core.common.event.Subscription |
addLegendMarkerClickListener(java.util.function.Consumer<Chart.LegendMarkerClickEvent> listener)
Adds a listener for a chart.
|
T |
addPrefixesOfBigNumbers(BigNumberPrefix... prefixesOfBigNumbers)
Adds BigNumberPrefixes.
|
T |
addPrefixesOfSmallNumbers(SmallNumberPrefix... prefixesOfSmallNumbers)
Adds SmallNumberPrefix
|
io.jmix.core.common.event.Subscription |
addRightClickListener(java.util.function.Consumer<Chart.ChartRightClickEvent> listener)
Adds a listener for a chart.
|
T |
addTitles(Title... titles)
Adds titles to chart.
|
void |
afterPropertiesSet() |
protected abstract M |
createChartConfiguration() |
protected ChartSerializer |
createChartSerializer() |
protected JmixAmchartsScene |
createComponent() |
java.lang.Boolean |
getAccessible() |
java.lang.String |
getAccessibleDescription() |
java.lang.String |
getAccessibleTitle() |
java.lang.Boolean |
getAddClassNames() |
java.util.List<java.lang.String> |
getAdditionalFields() |
java.util.List<Label> |
getAllLabels() |
java.lang.Boolean |
getAutoDisplay() |
java.lang.Boolean |
getAutoResize() |
java.lang.Boolean |
getAutoTransform() |
java.lang.Double |
getBackgroundAlpha() |
Color |
getBackgroundColor() |
Balloon |
getBalloon() |
java.lang.Double |
getBorderAlpha() |
Color |
getBorderColor() |
java.lang.String |
getClassNamePrefix() |
Color |
getColor() |
CreditsPosition |
getCreditsPosition() |
DataProvider |
getDataProvider() |
java.lang.String |
getDecimalSeparator() |
java.lang.String |
getDefs() |
Export |
getExport() |
java.lang.String |
getFontFamily() |
java.lang.Integer |
getFontSize() |
java.lang.Boolean |
getHandDrawn() |
java.lang.Integer |
getHandDrawScatter() |
java.lang.Integer |
getHandDrawThickness() |
java.lang.Integer |
getHideBalloonTime() |
java.lang.String |
getLanguage() |
Legend |
getLegend() |
protected M |
getModel() |
java.lang.String |
getNativeJson() |
java.lang.Boolean |
getPanEventsEnabled() |
java.lang.String |
getPath() |
java.lang.String |
getPathToImages() |
java.lang.Integer |
getPercentPrecision() |
java.lang.Integer |
getPrecision() |
java.util.List<BigNumberPrefix> |
getPrefixesOfBigNumbers() |
java.util.List<SmallNumberPrefix> |
getPrefixesOfSmallNumbers() |
java.lang.Integer |
getProcessCount() |
java.lang.Integer |
getProcessTimeout() |
Responsive |
getResponsive() |
java.lang.Boolean |
getSvgIcons() |
java.lang.Boolean |
getTapToActivate() |
ChartTheme |
getTheme() |
java.lang.String |
getThousandsSeparator() |
java.util.List<Title> |
getTitles() |
java.lang.Integer |
getTouchClickDuration() |
java.lang.Boolean |
getUsePrefixes() |
protected void |
initLocale() |
protected void |
onChartClick(ChartClickEvent e) |
protected void |
onChartRightClick(ChartRightClickEvent e) |
protected void |
onLegendItemHide(LegendItemHideEvent e) |
protected void |
onLegendItemShow(LegendItemShowEvent e) |
protected void |
onLegendLabelClick(LegendLabelClickEvent e) |
protected void |
onLegendMarkerClick(LegendMarkerClickEvent e) |
void |
repaint()
Resend all items and properties to client and repaint chart.
|
T |
setAccessible(java.lang.Boolean accessible)
When enabled, chart adds aria-label attributes to columns or bullets objects.
|
T |
setAccessibleDescription(java.lang.String accessibleDescription)
Description which will be added to node of SVG element.
|
T |
setAccessibleTitle(java.lang.String accessibleTitle)
Description which is added to of a SVG element.
|
T |
setAddClassNames(java.lang.Boolean addClassNames)
Specifies, if CSS class names should be added to chart elements (line, fill, column, etc).
|
T |
setAdditionalFields(java.util.List additionalFields)
Sets list of additional fields.
|
T |
setAllLabels(java.util.List allLabels)
Sets the list of labels.
|
T |
setAutoDisplay(java.lang.Boolean autoDisplay)
If you set autoDisplay to true the chart will automatically monitor changes of display style of chart’s
container (or any of it’s parents) and will render chart correctly.
|
T |
setAutoResize(java.lang.Boolean autoResize)
Set to false if you don't want chart to resize itself whenever its parent container size changes.
|
T |
setAutoTransform(java.lang.Boolean autoTransform)
If you set it to true and your chart div (or any of the parent div) has CSS scale applied, the chart will
position mouse at a correct position.
|
T |
setBackgroundAlpha(java.lang.Double backgroundAlpha)
Sets opacity of background.
|
T |
setBackgroundColor(Color backgroundColor)
Sets background color.
|
T |
setBalloon(Balloon balloon)
Sets the balloon (tooltip) of the chart.
|
T |
setBorderAlpha(java.lang.Double borderAlpha)
Sets opacity of chart's border.
|
T |
setBorderColor(Color borderColor)
Sets color of chart's border.
|
void |
setChartLocaleHelper(ChartLocaleHelper chartLocaleHelper) |
T |
setClassNamePrefix(java.lang.String classNamePrefix)
Sets prefix to all class names which are added to all visual elements of a chart in case
AbstractChart.addClassNames is set to true. |
T |
setColor(Color color)
Sets text color.
|
T |
setCreditsPosition(CreditsPosition creditsPosition)
Sets position of link to amCharts site.
|
void |
setCurrentAuthentication(io.jmix.core.security.CurrentAuthentication currentAuthentication) |
T |
setDataProvider(DataProvider dataProvider)
Sets data provider that contains data set.
|
T |
setDecimalSeparator(java.lang.String decimalSeparator)
Sets decimal separator.
|
T |
setDefs(java.lang.String defs)
Sets any additional information to SVG, like SVG filters or clip paths.
|
T |
setExport(Export export)
Sets export config.
|
T |
setFontFamily(java.lang.String fontFamily)
Sets font family.
|
T |
setFontSize(java.lang.Integer fontSize)
Sets font size.
|
void |
setFormatStringsRegistry(io.jmix.core.metamodel.datatype.FormatStringsRegistry formatStringsRegistry) |
T |
setHandDrawn(java.lang.Boolean handDrawn)
If true, the lines of the chart will be distorted and will produce hand-drawn effect.
|
T |
setHandDrawScatter(java.lang.Integer handDrawScatter)
Defines by how many pixels hand-drawn line (when
handDrawn is set to
true) will fluctuate. |
T |
setHandDrawThickness(java.lang.Integer handDrawThickness)
Defines by how many pixels line thickness will fluctuate (when
handDrawn is set
to true). |
T |
setHideBalloonTime(java.lang.Integer hideBalloonTime)
Sets time, in milliseconds after which balloon is hidden if the user rolls-out of the object.
|
T |
setLanguage(java.lang.String language)
Sets language of default.
|
T |
setLegend(Legend legend)
Sets legend of a chart.
|
void |
setMessages(io.jmix.core.Messages messages) |
void |
setMessageTools(io.jmix.core.MessageTools messageTools) |
void |
setNativeJson(java.lang.String json)
Set additional JSON configuration as a string.
|
T |
setPanEventsEnabled(java.lang.Boolean panEventsEnabled)
This setting affects touch-screen devices only.
|
T |
setPath(java.lang.String path)
Specifies absolute or relative path to amCharts files.
|
T |
setPathToImages(java.lang.String pathToImages)
Specifies path to the folder where images like resize grips, lens and similar are.
|
T |
setPercentPrecision(java.lang.Integer percentPrecision)
Sets precision of percent values.
|
T |
setPrecision(java.lang.Integer precision)
Precision of values.
|
T |
setPrefixesOfBigNumbers(java.util.List prefixesOfBigNumbers)
Sets the prefixes which are used to make big numbers shorter: 2M instead of 2000000, etc.
|
T |
setPrefixesOfSmallNumbers(java.util.List prefixesOfSmallNumbers)
Sets prefixes which are used to make small numbers shorter: 2μ instead of 0.000002, etc.
|
T |
setProcessCount(java.lang.Integer processCount)
If processTimeout is greater than 0, 1000 data items will be parsed at a time, then the chart will make pause
and continue parsing data until it finishes.
|
T |
setProcessTimeout(java.lang.Integer processTimeout)
If you set it to 1 millisecond or some bigger value, chart will be built in chunks instead of all at once.
|
T |
setResponsive(Responsive responsive)
Sets a config object for Responsive plugin
|
T |
setSvgIcons(java.lang.Boolean svgIcons)
Sets use SVG icons (if browser supports SVG).
|
T |
setTapToActivate(java.lang.Boolean tapToActivate)
Charts which require gestures like swipe (charts with scrollbar/cursor) used to prevent regular page scrolling
and could result page to stick to the same spot if the chart occupied whole screen.
|
T |
setTheme(ChartTheme theme)
Sets theme of a chart.
|
T |
setThousandsSeparator(java.lang.String thousandsSeparator)
Sets thousands separator.
|
T |
setTitles(java.util.List list)
Sets list of titles.
|
T |
setTouchClickDuration(java.lang.Integer touchClickDuration)
Sets the touch click duration.
|
protected void |
setupChartLocale(AbstractChart chart) |
protected void |
setupDefaults(M chart) |
T |
setUsePrefixes(java.lang.Boolean usePrefixes)
If true, prefixes will be used for big and small numbers.
|
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
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
protected io.jmix.core.Messages messages
protected io.jmix.core.MessageTools messageTools
protected io.jmix.core.security.CurrentAuthentication currentAuthentication
protected ChartLocaleHelper chartLocaleHelper
protected io.jmix.core.metamodel.datatype.FormatStringsRegistry formatStringsRegistry
protected ChartClickListener clickHandler
protected ChartRightClickListener rightClickHandler
protected LegendItemHideListener legendItemHideHandler
protected LegendItemShowListener legendItemShowHandler
protected LegendLabelClickListener legendLabelClickHandler
protected LegendMarkerClickListener legendMarkerClickHandler
protected JmixAmchartsScene createComponent()
protected ChartSerializer createChartSerializer()
@Autowired public void setMessageTools(io.jmix.core.MessageTools messageTools)
@Autowired public void setChartLocaleHelper(ChartLocaleHelper chartLocaleHelper)
@Autowired public void setFormatStringsRegistry(io.jmix.core.metamodel.datatype.FormatStringsRegistry formatStringsRegistry)
public void afterPropertiesSet() throws java.lang.Exception
afterPropertiesSet
in interface org.springframework.beans.factory.InitializingBean
java.lang.Exception
@Autowired public void setMessages(io.jmix.core.Messages messages)
@Autowired public void setCurrentAuthentication(io.jmix.core.security.CurrentAuthentication currentAuthentication)
protected abstract M createChartConfiguration()
protected M getModel()
protected void initLocale()
protected void setupDefaults(M chart)
protected void setupChartLocale(AbstractChart chart)
public void repaint()
Chart
public java.lang.String getNativeJson()
getNativeJson
in interface Chart<T extends Chart>
public void setNativeJson(java.lang.String json)
Chart
setNativeJson
in interface Chart<T extends Chart>
json
- JSON configurationpublic java.lang.Boolean getAddClassNames()
getAddClassNames
in interface ChartModel<T extends Chart>
public T setAddClassNames(java.lang.Boolean addClassNames)
ChartModel
setAddClassNames
in interface ChartModel<T extends Chart>
addClassNames
- add CSS class names optionpublic java.util.List<Label> getAllLabels()
getAllLabels
in interface ChartModel<T extends Chart>
public T setAllLabels(java.util.List allLabels)
ChartModel
setAllLabels
in interface ChartModel<T extends Chart>
allLabels
- list of labelspublic T addLabels(Label... allLabels)
ChartModel
addLabels
in interface ChartModel<T extends Chart>
allLabels
- the labels to to addpublic Export getExport()
getExport
in interface ChartModel<T extends Chart>
public T setExport(Export export)
ChartModel
setExport
in interface ChartModel<T extends Chart>
export
- the exportpublic Color getBackgroundColor()
getBackgroundColor
in interface ChartModel<T extends Chart>
public T setBackgroundColor(Color backgroundColor)
ChartModel
AbstractChart.backgroundAlpha
to greater than 0 value in order
background to be visible. If not set the default value is #FFFFFF.setBackgroundColor
in interface ChartModel<T extends Chart>
backgroundColor
- the background colorpublic Balloon getBalloon()
getBalloon
in interface ChartModel<T extends Chart>
public T setBalloon(Balloon balloon)
ChartModel
setBalloon
in interface ChartModel<T extends Chart>
balloon
- the balloonpublic Legend getLegend()
getLegend
in interface ChartModel<T extends Chart>
public T setLegend(Legend legend)
ChartModel
setLegend
in interface ChartModel<T extends Chart>
legend
- the legendpublic java.lang.String getDecimalSeparator()
getDecimalSeparator
in interface ChartModel<T extends Chart>
public T setDecimalSeparator(java.lang.String decimalSeparator)
ChartModel
setDecimalSeparator
in interface ChartModel<T extends Chart>
decimalSeparator
- the decimal separator stringpublic java.lang.Integer getPercentPrecision()
getPercentPrecision
in interface ChartModel<T extends Chart>
public T setPercentPrecision(java.lang.Integer percentPrecision)
ChartModel
setPercentPrecision
in interface ChartModel<T extends Chart>
percentPrecision
- the percent precisionpublic java.lang.Integer getPrecision()
getPrecision
in interface ChartModel<T extends Chart>
public T setPrecision(java.lang.Integer precision)
ChartModel
setPrecision
in interface ChartModel<T extends Chart>
precision
- the precisionpublic DataProvider getDataProvider()
getDataProvider
in interface Chart<T extends Chart>
getDataProvider
in interface ChartModel<T extends Chart>
public T setDataProvider(DataProvider dataProvider)
ChartModel
setDataProvider
in interface Chart<T extends Chart>
setDataProvider
in interface ChartModel<T extends Chart>
dataProvider
- the data providerContainerDataProvider
,
ListDataProvider
public T addData(DataItem... dataItems)
ChartModel
DataProvider
is null, so it creates ListDataProvider
addData
in interface ChartModel<T extends Chart>
dataItems
- data items to addpublic java.lang.String getPathToImages()
getPathToImages
in interface ChartModel<T extends Chart>
public T setPathToImages(java.lang.String pathToImages)
ChartModel
setPathToImages
in interface ChartModel<T extends Chart>
pathToImages
- path to imagespublic ChartTheme getTheme()
getTheme
in interface ChartModel<T extends Chart>
public T setTheme(ChartTheme theme)
ChartModel
setTheme
in interface ChartModel<T extends Chart>
theme
- the themepublic java.lang.Double getBorderAlpha()
getBorderAlpha
in interface ChartModel<T extends Chart>
public T setBorderAlpha(java.lang.Double borderAlpha)
ChartModel
setBorderAlpha
in interface ChartModel<T extends Chart>
borderAlpha
- the border alphapublic Color getBorderColor()
getBorderColor
in interface ChartModel<T extends Chart>
public T setBorderColor(Color borderColor)
ChartModel
setBorderColor
in interface ChartModel<T extends Chart>
borderColor
- the border colorpublic java.lang.String getClassNamePrefix()
getClassNamePrefix
in interface ChartModel<T extends Chart>
public T setClassNamePrefix(java.lang.String classNamePrefix)
ChartModel
AbstractChart.addClassNames
is set to true. If not set the default value is "amcharts".setClassNamePrefix
in interface ChartModel<T extends Chart>
classNamePrefix
- class name prefix stringpublic CreditsPosition getCreditsPosition()
getCreditsPosition
in interface ChartModel<T extends Chart>
public T setCreditsPosition(CreditsPosition creditsPosition)
ChartModel
setCreditsPosition
in interface ChartModel<T extends Chart>
creditsPosition
- the credits positionpublic Color getColor()
getColor
in interface ChartModel<T extends Chart>
public T setColor(Color color)
ChartModel
setColor
in interface ChartModel<T extends Chart>
color
- the text colorpublic java.lang.String getFontFamily()
getFontFamily
in interface ChartModel<T extends Chart>
public T setFontFamily(java.lang.String fontFamily)
ChartModel
setFontFamily
in interface ChartModel<T extends Chart>
fontFamily
- font family stringpublic java.lang.Integer getFontSize()
getFontSize
in interface ChartModel<T extends Chart>
public T setFontSize(java.lang.Integer fontSize)
ChartModel
setFontSize
in interface ChartModel<T extends Chart>
fontSize
- the font sizepublic java.lang.Boolean getHandDrawn()
getHandDrawn
in interface ChartModel<T extends Chart>
public T setHandDrawn(java.lang.Boolean handDrawn)
ChartModel
handDrawScatter
and handDrawThickness
properties for a more scattered result. If not set the default value is false.setHandDrawn
in interface ChartModel<T extends Chart>
handDrawn
- hand drawn optionpublic java.lang.Integer getHandDrawScatter()
getHandDrawScatter
in interface ChartModel<T extends Chart>
public T setHandDrawScatter(java.lang.Integer handDrawScatter)
ChartModel
handDrawn
is set to
true) will fluctuate. If not set the default value is 2.setHandDrawScatter
in interface ChartModel<T extends Chart>
handDrawScatter
- the hand drawn scatterpublic java.lang.Integer getHandDrawThickness()
getHandDrawThickness
in interface ChartModel<T extends Chart>
public T setHandDrawThickness(java.lang.Integer handDrawThickness)
ChartModel
handDrawn
is set
to true). If not set the default value is 1.setHandDrawThickness
in interface ChartModel<T extends Chart>
handDrawThickness
- the hand draw thicknesspublic java.lang.Integer getHideBalloonTime()
getHideBalloonTime
in interface ChartModel<T extends Chart>
public T setHideBalloonTime(java.lang.Integer hideBalloonTime)
ChartModel
Balloon.fadeOutDuration
. If not set the default value is
150.setHideBalloonTime
in interface ChartModel<T extends Chart>
hideBalloonTime
- the hide balloon time in millisecondspublic java.lang.Boolean getPanEventsEnabled()
getPanEventsEnabled
in interface ChartModel<T extends Chart>
public T setPanEventsEnabled(java.lang.Boolean panEventsEnabled)
ChartModel
setPanEventsEnabled
in interface ChartModel<T extends Chart>
panEventsEnabled
- pan events enabled optionpublic java.util.List<BigNumberPrefix> getPrefixesOfBigNumbers()
getPrefixesOfBigNumbers
in interface ChartModel<T extends Chart>
public T setPrefixesOfBigNumbers(java.util.List prefixesOfBigNumbers)
ChartModel
usePrefixes
property to
true. If not set the default value is
[{"number":1e+3, "prefix":"k"},
{"number":1e+6, "prefix":"M"},
{"number":1e+9, "prefix":"G"},
{"number":1e+12, "prefix":"T"},
{"number":1e+15, "prefix":"P"},
{"number":1e+18, "prefix":"E"},
{"number":1e+21, "prefix":"Z"},
{"number":1e+24, "prefix":"Y"}]
setPrefixesOfBigNumbers
in interface ChartModel<T extends Chart>
prefixesOfBigNumbers
- list of BigNumberPrefixpublic T addPrefixesOfBigNumbers(BigNumberPrefix... prefixesOfBigNumbers)
ChartModel
addPrefixesOfBigNumbers
in interface ChartModel<T extends Chart>
prefixesOfBigNumbers
- prefixes of big numberspublic java.util.List<SmallNumberPrefix> getPrefixesOfSmallNumbers()
getPrefixesOfSmallNumbers
in interface ChartModel<T extends Chart>
public T setPrefixesOfSmallNumbers(java.util.List prefixesOfSmallNumbers)
ChartModel
usePrefixes
property to
true. If not set the default value is
[{"number":1e-24, "prefix":"y"},
{"number":1e-21, "prefix":"z"},
{"number":1e-18, "prefix":"a"},
{"number":1e-15, "prefix":"f"},
{"number":1e-12, "prefix":"p"},
{"number":1e-9, "prefix":"n"},
{"number":1e-6, "prefix":"μ"},
{"number":1e-3, "prefix":"m"}]
setPrefixesOfSmallNumbers
in interface ChartModel<T extends Chart>
prefixesOfSmallNumbers
- list of SmallNumberPrefixpublic T addPrefixesOfSmallNumbers(SmallNumberPrefix... prefixesOfSmallNumbers)
ChartModel
addPrefixesOfSmallNumbers
in interface ChartModel<T extends Chart>
prefixesOfSmallNumbers
- prefixes of small numberspublic java.lang.String getThousandsSeparator()
getThousandsSeparator
in interface ChartModel<T extends Chart>
public T setThousandsSeparator(java.lang.String thousandsSeparator)
ChartModel
setThousandsSeparator
in interface ChartModel<T extends Chart>
thousandsSeparator
- - thousands separator stringpublic java.util.List<Title> getTitles()
getTitles
in interface ChartModel<T extends Chart>
public T setTitles(java.util.List list)
ChartModel
setTitles
in interface ChartModel<T extends Chart>
list
- the titlespublic T addTitles(Title... titles)
ChartModel
addTitles
in interface ChartModel<T extends Chart>
titles
- the titles to addpublic java.lang.Boolean getUsePrefixes()
getUsePrefixes
in interface ChartModel<T extends Chart>
public T setUsePrefixes(java.lang.Boolean usePrefixes)
ChartModel
prefixesOfSmallNumbers
and
prefixesOfBigNumbers
properties. If not set the default value is
false.setUsePrefixes
in interface ChartModel<T extends Chart>
usePrefixes
- the use prefixes optionpublic java.util.List<java.lang.String> getAdditionalFields()
getAdditionalFields
in interface ChartModel<T extends Chart>
public T setAdditionalFields(java.util.List additionalFields)
ChartModel
setAdditionalFields
in interface ChartModel<T extends Chart>
additionalFields
- list of additional fieldspublic T addAdditionalFields(java.lang.String... fields)
ChartModel
addAdditionalFields
in interface ChartModel<T extends Chart>
fields
- the fieldspublic java.lang.Boolean getAutoDisplay()
getAutoDisplay
in interface ChartModel<T extends Chart>
public T setAutoDisplay(java.lang.Boolean autoDisplay)
ChartModel
setAutoDisplay
in interface ChartModel<T extends Chart>
autoDisplay
- auto display optionpublic java.lang.Boolean getAutoResize()
getAutoResize
in interface ChartModel<T extends Chart>
public T setAutoResize(java.lang.Boolean autoResize)
ChartModel
setAutoResize
in interface ChartModel<T extends Chart>
autoResize
- auto resize optionpublic java.lang.Double getBackgroundAlpha()
getBackgroundAlpha
in interface ChartModel<T extends Chart>
public T setBackgroundAlpha(java.lang.Double backgroundAlpha)
ChartModel
AbstractChart.backgroundColor
to work.
If not set the default value is 0.setBackgroundAlpha
in interface ChartModel<T extends Chart>
backgroundAlpha
- background alpha optionpublic java.lang.String getLanguage()
getLanguage
in interface ChartModel<T extends Chart>
public T setLanguage(java.lang.String language)
ChartModel
setLanguage("de")
.setLanguage
in interface ChartModel<T extends Chart>
language
- language stringpublic java.lang.String getPath()
getPath
in interface ChartModel<T extends Chart>
public T setPath(java.lang.String path)
ChartModel
setPath
in interface ChartModel<T extends Chart>
path
- the path stringpublic java.lang.Boolean getSvgIcons()
getSvgIcons
in interface ChartModel<T extends Chart>
public T setSvgIcons(java.lang.Boolean svgIcons)
ChartModel
setSvgIcons
in interface ChartModel<T extends Chart>
svgIcons
- svgIcons optionpublic java.lang.Boolean getTapToActivate()
getTapToActivate
in interface ChartModel<T extends Chart>
public T setTapToActivate(java.lang.Boolean tapToActivate)
ChartModel
setTapToActivate
in interface ChartModel<T extends Chart>
tapToActivate
- tap to activate optionpublic java.lang.String getDefs()
getDefs
in interface ChartModel<T extends Chart>
public T setDefs(java.lang.String defs)
ChartModel
setDefs
in interface ChartModel<T extends Chart>
defs
- defs stringpublic java.lang.Boolean getAccessible()
getAccessible
in interface ChartModel<T extends Chart>
public T setAccessible(java.lang.Boolean accessible)
ChartModel
AbstractGraph.accessibleLabel
. If not set the default value is true.setAccessible
in interface ChartModel<T extends Chart>
accessible
- accessible optionpublic java.lang.String getAccessibleTitle()
getAccessibleTitle
in interface ChartModel<T extends Chart>
public T setAccessibleTitle(java.lang.String accessibleTitle)
ChartModel
setAccessibleTitle
in interface ChartModel<T extends Chart>
accessibleTitle
- accessible title stringpublic T setResponsive(Responsive responsive)
ChartModel
setResponsive
in interface ChartModel<T extends Chart>
responsive
- the responsivepublic Responsive getResponsive()
getResponsive
in interface ChartModel<T extends Chart>
public java.lang.Integer getProcessCount()
getProcessCount
in interface ChartModel<T extends Chart>
public T setProcessCount(java.lang.Integer processCount)
ChartModel
setProcessCount
in interface ChartModel<T extends Chart>
processCount
- the process countpublic java.lang.Integer getProcessTimeout()
getProcessTimeout
in interface ChartModel<T extends Chart>
public T setProcessTimeout(java.lang.Integer processTimeout)
ChartModel
setProcessTimeout
in interface ChartModel<T extends Chart>
processTimeout
- the process timeoutpublic java.lang.Integer getTouchClickDuration()
getTouchClickDuration
in interface ChartModel<T extends Chart>
public T setTouchClickDuration(java.lang.Integer touchClickDuration)
ChartModel
setTouchClickDuration
in interface ChartModel<T extends Chart>
touchClickDuration
- the touch click duration in millisecondspublic java.lang.Boolean getAutoTransform()
getAutoTransform
in interface ChartModel<T extends Chart>
public T setAutoTransform(java.lang.Boolean autoTransform)
ChartModel
setAutoTransform
in interface ChartModel<T extends Chart>
autoTransform
- auto transform optionpublic io.jmix.core.common.event.Subscription addClickListener(java.util.function.Consumer<Chart.ChartClickEvent> listener)
Chart
addClickListener
in interface Chart<T extends Chart>
listener
- a listener to addprotected void onChartClick(ChartClickEvent e)
public io.jmix.core.common.event.Subscription addRightClickListener(java.util.function.Consumer<Chart.ChartRightClickEvent> listener)
Chart
addRightClickListener
in interface Chart<T extends Chart>
listener
- a listener to addprotected void onChartRightClick(ChartRightClickEvent e)
public io.jmix.core.common.event.Subscription addLegendItemHideListener(java.util.function.Consumer<Chart.LegendItemHideEvent> listener)
Chart
addLegendItemHideListener
in interface Chart<T extends Chart>
listener
- a listener to addprotected void onLegendItemHide(LegendItemHideEvent e)
public io.jmix.core.common.event.Subscription addLegendItemShowListener(java.util.function.Consumer<Chart.LegendItemShowEvent> listener)
Chart
addLegendItemShowListener
in interface Chart<T extends Chart>
listener
- a listener to addprotected void onLegendItemShow(LegendItemShowEvent e)
public io.jmix.core.common.event.Subscription addLegendLabelClickListener(java.util.function.Consumer<Chart.LegendItemClickEvent> listener)
Chart
addLegendLabelClickListener
in interface Chart<T extends Chart>
listener
- a listener to addprotected void onLegendLabelClick(LegendLabelClickEvent e)
public io.jmix.core.common.event.Subscription addLegendMarkerClickListener(java.util.function.Consumer<Chart.LegendMarkerClickEvent> listener)
Chart
addLegendMarkerClickListener
in interface Chart<T extends Chart>
listener
- a listener to addprotected void onLegendMarkerClick(LegendMarkerClickEvent e)
public java.lang.String getAccessibleDescription()
getAccessibleDescription
in interface ChartModel<T extends Chart>
public T setAccessibleDescription(java.lang.String accessibleDescription)
ChartModel
setAccessibleDescription
in interface ChartModel<T extends Chart>
accessibleDescription
- description string