public class PerformanceTracker
extends java.lang.Object
| Constructor and Description |
|---|
PerformanceTracker() |
| Modifier and Type | Method and Description |
|---|---|
static void |
draw(Graphics g,
float x,
float y)
Draws the current values to screen
|
static void |
draw(Graphics g,
float x,
float y,
float targetWidth,
int horizontalAlign)
Draws the current values to screen
|
static void |
drawInBottomLeft(Graphics g)
Draws the current values to the bottom left of the screen
|
static void |
drawInBottomRight(Graphics g)
Draws the current values to the bottom right of the screen
|
static void |
drawInTopLeft(Graphics g)
Draws the current values to the top left of the screen
|
static void |
drawInTopRight(Graphics g)
Draws the current values to the top right of the screen
|
public static void draw(Graphics g, float x, float y)
g - The Graphics contextx - The x coordinate to render aty - The y coordinate to render atpublic static void draw(Graphics g, float x, float y, float targetWidth, int horizontalAlign)
g - The Graphics contextx - The x coordinate to render aty - The y coordinate to render attargetWidth - The target width to render at, or, -1 to use auto-widthhorizontalAlign - The text alignment. Note: Use Align to retrieve the
appropriate value. If target width is set to -1 this option is
ignored and the text is left alignedpublic static void drawInTopLeft(Graphics g)
g - The Graphics contextpublic static void drawInTopRight(Graphics g)
g - The Graphics contextpublic static void drawInBottomLeft(Graphics g)
g - The Graphics context