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
public class Theme extends AbstractConfigurationObject
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
Constructors Constructor Description Theme()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ChartStylegetChart()Get chart styleColor[]getColors()Get colors of itemsCreditsgetCredits()Get credits styleStylegetLabels()Get style of labelsLegendStylegetLegend()Get style of legendPlotOptionsStylegetPlotOptions()Get style of plotsStylegetSubtitle()Get style of Chart subtitleStylegetTitle()Get style of Chart titleTooltipStylegetTooltip()Get style of tooltipsAxisStylegetxAxis()Get style of X axesAxisStylegetyAxis()Get style of Y axesvoidsetChart(ChartStyle style)Set new chart stylevoidsetColors(Color... colors)Set colors of items (bars, pie sectors ...) in chartvoidsetCredits(Credits credits)Set new style for creditsvoidsetLabels(Style style)Set new style of labelsvoidsetLegend(LegendStyle style)Set new style legendvoidsetPlotOptions(PlotOptionsStyle plotOptions)Set new style of plotvoidsetSubtitle(Style style)Set style of Chart subtitlevoidsetTitle(Style style)Set style of Chart titlevoidsetTooltip(TooltipStyle tooltip)Set new style of tooltipsvoidsetxAxis(AxisStyle style)Set new style of X axesvoidsetyAxis(AxisStyle style)Set new style of Y axes
-
-
-
Method Detail
-
setColors
public void setColors(Color... colors)
Set colors of items (bars, pie sectors ...) in chart- Parameters:
colors- Colors of items
-
getColors
public Color[] getColors()
Get colors of items- Returns:
- Colors of items, null if not defined
-
getChart
public ChartStyle getChart()
Get chart style- Returns:
- Chart style
-
setChart
public void setChart(ChartStyle style)
Set new chart style- Parameters:
style- Chart style
-
getTitle
public Style getTitle()
Get style of Chart title- Returns:
- Style of title
-
setTitle
public void setTitle(Style style)
Set style of Chart title- Parameters:
style- New style of title
-
getSubtitle
public Style getSubtitle()
Get style of Chart subtitle- Returns:
- Style of subtitle
-
setSubtitle
public void setSubtitle(Style style)
Set style of Chart subtitle- Parameters:
style- New style of subtitle
-
getLabels
public Style getLabels()
Get style of labels- Returns:
- Labels style
-
setLabels
public void setLabels(Style style)
Set new style of labels- Parameters:
style- Labels style
-
getLegend
public LegendStyle getLegend()
Get style of legend- Returns:
- Legend style
-
setLegend
public void setLegend(LegendStyle style)
Set new style legend- Parameters:
style- Legend style
-
getxAxis
public AxisStyle getxAxis()
Get style of X axes- Returns:
- X axis style
-
setxAxis
public void setxAxis(AxisStyle style)
Set new style of X axes- Parameters:
style- X axis style
-
getyAxis
public AxisStyle getyAxis()
Get style of Y axes- Returns:
- Y axis style
-
setyAxis
public void setyAxis(AxisStyle style)
Set new style of Y axes- Parameters:
style- Y axis style
-
getTooltip
public TooltipStyle getTooltip()
Get style of tooltips- Returns:
- Tooltip style
-
setTooltip
public void setTooltip(TooltipStyle tooltip)
Set new style of tooltips- Parameters:
tooltip- Tooltip style
-
getPlotOptions
public PlotOptionsStyle getPlotOptions()
Get style of plots- Returns:
- Plot styles
-
setPlotOptions
public void setPlotOptions(PlotOptionsStyle plotOptions)
Set new style of plot- Parameters:
plotOptions- Plot styles
-
getCredits
public Credits getCredits()
Get credits style- Returns:
- Credits style
-
setCredits
public void setCredits(Credits credits)
Set new style for credits- Parameters:
credits- Credits style
-
-