Class MenuPainter
java.lang.Object
wiiuu.ui.MenuPainter
WII-UU menu backgrounds, drop shadows and vector dock icons, independent of app state.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumVector icons shared by the menu dock. -
Method Summary
Modifier and TypeMethodDescriptionstatic BufferedImagebackground(int w, int h, Map<String, Color> palette) Render the palette's gradient, pinstripes and light blooms.static voidgamepad(Graphics2D graphics, float x, float y, float w, float h, Color c) Paint a GamePad symbol at explicit coordinates, preserving graphics state.static voidicon(Graphics2D graphics, MenuPainter.Icon d, Rectangle2D r, Color c) Paint a vector dock icon in the given bounds, preserving graphics state.static voidshadow(Graphics2D graphics, Shape s, int depth, Color colour, int boost) Paint a soft shadow without changing the caller's graphics state.
-
Method Details
-
background
Render the palette's gradient, pinstripes and light blooms. Dimensions are at least one pixel. -
shadow
Paint a soft shadow without changing the caller's graphics state. Nonpositive depth/boost draws nothing. -
icon
Paint a vector dock icon in the given bounds, preserving graphics state. -
gamepad
Paint a GamePad symbol at explicit coordinates, preserving graphics state.
-