Class AnalysisGridLayer

java.lang.Object
com.arbergashi.charts.ui.grid.AnalysisGridLayer
All Implemented Interfaces:
GridLayer

public class AnalysisGridLayer extends Object implements GridLayer
Grid layer for analysis renderers (ACF, FFT, etc.) that use custom axis ranges.

This grid layer draws grid lines only (no axis labels), because some analysis renderers handle their own coordinate systems and labeling.

Styling is theme-driven and can be tuned via ChartAssets without changing code. This enables product-grade UI (TradingView/Bloomberg-like subtle grids) while keeping the renderer layer free from hard-coded aesthetics.

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

    • AnalysisGridLayer

      public AnalysisGridLayer()
  • Method Details

    • renderGrid

      public void renderGrid(Graphics2D g2, PlotContext context)
      Description copied from interface: GridLayer
      Renders the chart grid for the given plot context.
      Specified by:
      renderGrid in interface GridLayer
      Parameters:
      g2 - graphics context
      context - plot context with bounds and axis ranges