Class ChartEngine
java.lang.Object
com.arbergashi.charts.util.ChartEngine
Core rendering engine utilities.
Ensures consistent graphics quality settings across screen rendering and exports.
- Since:
- 2024-06-01
- Version:
- 1.0.0
- Author:
- Arber Gashi
-
Method Summary
Modifier and TypeMethodDescriptionstatic voidprepareGraphics(Graphics2D g2, boolean textLcdContrast) Configures Graphics2D with high-quality rendering hints.static voidPlaceholder for platform-specific default registrations (e.g., themes, icons).
-
Method Details
-
prepareGraphics
Configures Graphics2D with high-quality rendering hints.- Parameters:
g2- The graphics context.textLcdContrast- If true, uses LCD contrast for text (better for screens, worse for transparent exports).
-
registerDefaultsIfNeeded
public static void registerDefaultsIfNeeded()Placeholder for platform-specific default registrations (e.g., themes, icons). No-op in core module.
-