Class ModelBuilder.FinancialDataBuilder

java.lang.Object
com.arbergashi.charts.api.ModelBuilder.FinancialDataBuilder
Enclosing class:
ModelBuilder

public static final class ModelBuilder.FinancialDataBuilder extends Object
Batch builder for financial data with fluent OHLC entry.
Since:
2026-01-16
Version:
1.0.0
Author:
Arber Gashi
  • Method Details

    • create

      public static ModelBuilder.FinancialDataBuilder create(String name)
      Start building financial (OHLC) data.
      Parameters:
      name - Series name
      Returns:
      new FinancialDataBuilder
    • bar

      public ModelBuilder.FinancialDataBuilder bar(double time, double open, double high, double low, double close)
      Add OHLC bar.
      Parameters:
      time - X-axis value (timestamp or index)
      open - Opening price
      high - Highest price
      low - Lowest price
      close - Closing price
      Returns:
      this builder
    • bar

      Add OHLC bar from domain object.
      Parameters:
      bar - OHLC data bar
      Returns:
      this builder
    • build

      public DefaultChartModel build()
      Build and return the chart model.
      Returns:
      configured DefaultChartModel with OHLC data