Class DefaultGridLayer

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

public class DefaultGridLayer extends Object implements GridLayer
Default grid layer for general-purpose charts. Renders a clean, adaptive grid using NiceScale for tick positioning.

All styling is theme-driven via UIManager properties (e.g., FlatLaf themes). This enables Bloomberg/SciChart-grade grid quality without code changes.

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

    • DefaultGridLayer

      public DefaultGridLayer()
  • Method Details

    • renderGrid

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