Class BasicChartTheme.Builder

java.lang.Object
com.arbergashi.charts.api.BasicChartTheme.Builder
Enclosing class:
BasicChartTheme

public static class BasicChartTheme.Builder extends Object
Builder for BasicChartTheme.
Since:
2026-01-16
Version:
1.0.0
Author:
Arber Gashi
  • Constructor Details

    • Builder

      public Builder()
  • Method Details

    • background

      public BasicChartTheme.Builder background(Color background)
      Sets the chart background color.
      Parameters:
      background - background color
      Returns:
      this builder
    • foreground

      public BasicChartTheme.Builder foreground(Color foreground)
      Sets the foreground color used for labels and strokes.
      Parameters:
      foreground - foreground color
      Returns:
      this builder
    • gridColor

      public BasicChartTheme.Builder gridColor(Color gridColor)
      Sets the grid line color.
      Parameters:
      gridColor - grid color
      Returns:
      this builder
    • axisLabelColor

      public BasicChartTheme.Builder axisLabelColor(Color axisLabelColor)
      Sets the axis label color.
      Parameters:
      axisLabelColor - axis label color
      Returns:
      this builder
    • accentColor

      public BasicChartTheme.Builder accentColor(Color accentColor)
      Sets the accent color used for highlights and primary series.
      Parameters:
      accentColor - accent color
      Returns:
      this builder
    • seriesColors

      public BasicChartTheme.Builder seriesColors(Color[] seriesColors)
      Sets the series palette used by index-based renderers.
      Parameters:
      seriesColors - series colors (copied defensively)
      Returns:
      this builder
    • baseFont

      public BasicChartTheme.Builder baseFont(Font baseFont)
      Sets the base font for chart text.
      Parameters:
      baseFont - base font
      Returns:
      this builder
    • build

      public BasicChartTheme build()
      Builds an immutable BasicChartTheme instance.
      Returns:
      new theme instance