public interface HUD
An HUD (heads-up display) renders visuals in front of those of the Viewports or SpaceStates to which it is assigned. HUDs are intended to be used to display information about a SpaceState's space, as opposed to displaying physical objects in it.
Modifier and Type | Method and Description |
---|---|
void |
renderActions(Graphics g,
int x1,
int y1,
int x2,
int y2)
Actions for this HUD to take to render its visuals.
|
void renderActions(Graphics g, int x1, int y1, int x2, int y2)
g
- The Graphics context to which this HUD is rendering its visuals
this framex1
- The x-coordinate in pixels of this HUD's rendering region's
left edge on the Graphics contexty1
- The y-coordinate in pixels of this HUD's rendering region's
top edge on the Graphics contextx2
- The x-coordinate in pixels of this HUD's rendering region's
right edge on the Graphics contexty2
- The y-coordinate in pixels of this HUD's rendering region's
bottom edge on the Graphics context