Class Theme
java.lang.Object
com.vaadin.flow.component.charts.model.AbstractConfigurationObject
com.vaadin.flow.component.charts.model.style.Theme
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
LumoDarkTheme
,LumoLightTheme
Theme class for Chart. This is empty theme, and only defines the structure of
Theme. Inherit own Theme class, or use Themes inherited from this class to
theme your Charts.
- See Also:
-
VaadinTheme
- Serialized Form
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetChart()
Get chart styleColor[]
Get colors of itemsGet credits styleGet style of labelsGet style of legendGet style of plotsGet style of Chart subtitlegetTitle()
Get style of Chart titleGet style of tooltipsgetxAxis()
Get style of X axesgetyAxis()
Get style of Y axesvoid
setChart
(ChartStyle style) Set new chart stylevoid
Set colors of items (bars, pie sectors ...) in chartvoid
setCredits
(Credits credits) Set new style for creditsvoid
Set new style of labelsvoid
setLegend
(LegendStyle style) Set new style legendvoid
setPlotOptions
(PlotOptionsStyle plotOptions) Set new style of plotvoid
setSubtitle
(Style style) Set style of Chart subtitlevoid
Set style of Chart titlevoid
setTooltip
(TooltipStyle tooltip) Set new style of tooltipsvoid
Set new style of X axesvoid
Set new style of Y axes
-
Constructor Details
-
Theme
public Theme()
-
-
Method Details
-
setColors
Set colors of items (bars, pie sectors ...) in chart- Parameters:
colors
- Colors of items
-
getColors
Get colors of items- Returns:
- Colors of items, null if not defined
-
getChart
Get chart style- Returns:
- Chart style
-
setChart
Set new chart style- Parameters:
style
- Chart style
-
getTitle
Get style of Chart title- Returns:
- Style of title
-
setTitle
Set style of Chart title- Parameters:
style
- New style of title
-
getSubtitle
Get style of Chart subtitle- Returns:
- Style of subtitle
-
setSubtitle
Set style of Chart subtitle- Parameters:
style
- New style of subtitle
-
getLabels
Get style of labels- Returns:
- Labels style
-
setLabels
Set new style of labels- Parameters:
style
- Labels style
-
getLegend
Get style of legend- Returns:
- Legend style
-
setLegend
Set new style legend- Parameters:
style
- Legend style
-
getxAxis
Get style of X axes- Returns:
- X axis style
-
setxAxis
Set new style of X axes- Parameters:
style
- X axis style
-
getyAxis
Get style of Y axes- Returns:
- Y axis style
-
setyAxis
Set new style of Y axes- Parameters:
style
- Y axis style
-
getTooltip
Get style of tooltips- Returns:
- Tooltip style
-
setTooltip
Set new style of tooltips- Parameters:
tooltip
- Tooltip style
-
getPlotOptions
Get style of plots- Returns:
- Plot styles
-
setPlotOptions
Set new style of plot- Parameters:
plotOptions
- Plot styles
-
getCredits
Get credits style- Returns:
- Credits style
-
setCredits
Set new style for credits- Parameters:
credits
- Credits style
-