Class PanelPainter

java.lang.Object
ActiverseUtils.PanelPainter

public final class PanelPainter extends Object
Reusable rounded panel painter for UI overlays.
  • Method Details

    • drawRoundedPanel

      public static void drawRoundedPanel(Graphics2D g2d, int x, int y, int w, int h, int arc, Color fillColor, Color borderColor, float borderWidth)
      Draws a rounded panel fill and optional border.
      Parameters:
      g2d - Graphics context to draw into
      x - Left coordinate
      y - Top coordinate
      w - Width in pixels
      h - Height in pixels
      arc - Arc diameter used for rounded corners
      fillColor - Fill color; when null, fill is skipped
      borderColor - Border color; when null, border is skipped
      borderWidth - Border thickness; border is skipped when <= 0