com.vaadin.flow.component.charts.model.style.

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:

  • 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

    • 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