Class PanelPainter
java.lang.Object
ActiverseUtils.PanelPainter
Reusable rounded panel painter for UI overlays.
-
Method Summary
Modifier and TypeMethodDescriptionstatic voiddrawRoundedPanel(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.
-
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 intox- Left coordinatey- Top coordinatew- Width in pixelsh- Height in pixelsarc- Arc diameter used for rounded cornersfillColor- Fill color; when null, fill is skippedborderColor- Border color; when null, border is skippedborderWidth- Border thickness; border is skipped when<= 0
-