Class BasicChartTheme.Builder
java.lang.Object
com.arbergashi.charts.api.BasicChartTheme.Builder
- Enclosing class:
BasicChartTheme
Builder for BasicChartTheme.
- Since:
- 2026-01-16
- Version:
- 1.0.0
- Author:
- Arber Gashi
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaccentColor(Color accentColor) Sets the accent color used for highlights and primary series.axisLabelColor(Color axisLabelColor) Sets the axis label color.background(Color background) Sets the chart background color.Sets the base font for chart text.build()Builds an immutableBasicChartThemeinstance.foreground(Color foreground) Sets the foreground color used for labels and strokes.Sets the grid line color.seriesColors(Color[] seriesColors) Sets the series palette used by index-based renderers.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
background
Sets the chart background color.- Parameters:
background- background color- Returns:
- this builder
-
foreground
Sets the foreground color used for labels and strokes.- Parameters:
foreground- foreground color- Returns:
- this builder
-
gridColor
Sets the grid line color.- Parameters:
gridColor- grid color- Returns:
- this builder
-
axisLabelColor
Sets the axis label color.- Parameters:
axisLabelColor- axis label color- Returns:
- this builder
-
accentColor
Sets the accent color used for highlights and primary series.- Parameters:
accentColor- accent color- Returns:
- this builder
-
seriesColors
Sets the series palette used by index-based renderers.- Parameters:
seriesColors- series colors (copied defensively)- Returns:
- this builder
-
baseFont
Sets the base font for chart text.- Parameters:
baseFont- base font- Returns:
- this builder
-
build
Builds an immutableBasicChartThemeinstance.- Returns:
- new theme instance
-