Class AxisRenderer

java.lang.Object
com.arbergashi.charts.render.AxisRenderer

public class AxisRenderer extends Object
Renderer for axes, ticks, and grid lines.

Ensures a professional representation of the coordinate system. Separated from ArberChartPanel for better maintainability and performance optimization.

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

    • AxisRenderer

      public AxisRenderer()
  • Method Details

    • drawGrid

      public void drawGrid(Graphics2D g2, PlotContext context)
      Draws the background grid.
      Parameters:
      g2 - rendering context
      context - plot context with bounds and axis ranges
    • drawAxes

      public void drawAxes(Graphics2D g2, PlotContext context)
      Draws axis lines, ticks, and labels.
      Parameters:
      g2 - rendering context
      context - plot context with bounds and axis ranges