Class AdaptiveFunctionRenderer

java.lang.Object
com.arbergashi.charts.render.BaseRenderer
com.arbergashi.charts.render.analysis.AdaptiveFunctionRenderer
All Implemented Interfaces:
ChartRenderer

public class AdaptiveFunctionRenderer extends BaseRenderer
Adaptive function renderer (JDK 25 standard). Draws mathematical functions f(x) with adaptive sampling. Uses virtual threads for parallel background computation of points.

Optimized for zero-allocation rendering and FlatLaf integration.

Since:
2026-01-01
Version:
1.0.0
Author:
Arber Gashi
  • Constructor Details

  • Method Details

    • drawData

      protected void drawData(Graphics2D g2, ChartModel model, PlotContext context)
      Description copied from class: BaseRenderer
      Implementation-specific drawing logic. Must follow Zero-Allocation rules.
      Specified by:
      drawData in class BaseRenderer
    • setRepaintCallback

      public void setRepaintCallback(Runnable callback)
      Sets a callback invoked when new data becomes available.
      Parameters:
      callback - Runnable for repaint (e.g., chart::repaint)