Class LabelCache
java.lang.Object
com.arbergashi.charts.internal.LabelCache
Lightweight LRU cache for pre-rendered labels.
Provides a single-entry drawing API used by BaseRenderer.
The cache keys are derived from text + font + color to ensure visuals stay correct across themes.
- Since:
- 2026-01-01
- Version:
- 1.0.0
- Author:
- Arber Gashi
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddrawLabel(Graphics2D g2, String text, Font font, Color color, float x, float y) Draws a label at the given position, using a cached pre-rendered image when available.
-
Constructor Details
-
LabelCache
public LabelCache()
-
-
Method Details
-
drawLabel
Draws a label at the given position, using a cached pre-rendered image when available.
-