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 ChartStyle
getChart()
Get chart styleColor[]
getColors()
Get colors of itemsCredits
getCredits()
Get credits styleStyle
getLabels()
Get style of labelsLegendStyle
getLegend()
Get style of legendPlotOptionsStyle
getPlotOptions()
Get style of plotsStyle
getSubtitle()
Get style of Chart subtitleStyle
getTitle()
Get style of Chart titleTooltipStyle
getTooltip()
Get style of tooltipsAxisStyle
getxAxis()
Get style of X axesAxisStyle
getyAxis()
Get style of Y axesvoid
setChart(ChartStyle style)
Set new chart stylevoid
setColors(Color... colors)
Set colors of items (bars, pie sectors ...) in chartvoid
setCredits(Credits credits)
Set new style for creditsvoid
setLabels(Style style)
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
setTitle(Style style)
Set style of Chart titlevoid
setTooltip(TooltipStyle tooltip)
Set new style of tooltipsvoid
setxAxis(AxisStyle style)
Set new style of X axesvoid
setyAxis(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
-
-