All Implemented Interfaces:
Serializable
Direct Known Subclasses:
LumoDarkTheme, LumoLightTheme

public class Theme extends AbstractConfigurationObject

Theme class.

Version:
$Id: $Id
Author:
Vaadin
See Also:
  • Constructor Details

    • Theme

      public Theme()
  • Method Details

    • 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
    • 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