Class AxisRenderer
java.lang.Object
com.arbergashi.charts.render.AxisRenderer
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddrawAxes(Graphics2D g2, PlotContext context) Draws axis lines, ticks, and labels.voiddrawGrid(Graphics2D g2, PlotContext context) Draws the background grid.
-
Constructor Details
-
AxisRenderer
public AxisRenderer()
-
-
Method Details
-
drawGrid
Draws the background grid.- Parameters:
g2- rendering contextcontext- plot context with bounds and axis ranges
-
drawAxes
Draws axis lines, ticks, and labels.- Parameters:
g2- rendering contextcontext- plot context with bounds and axis ranges
-