Class ChartEngine

java.lang.Object
com.arbergashi.charts.util.ChartEngine

public final class ChartEngine extends Object
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 Details

    • prepareGraphics

      public static void prepareGraphics(Graphics2D g2, boolean textLcdContrast)
      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.