| Constructor and Description |
|---|
FPSScene(Scene scene)
New Overlay fps scene.
|
| Modifier and Type | Method and Description |
|---|---|
EventListener[] |
getEventListeners()
Should return all
EventListeners that this scene want to register. |
Font |
getFont() |
Color |
getTextColor() |
void |
paintScene(Graphics2D g,
int width,
int height,
long elapsedTime)
Draw actual scene state
|
void |
setFont(Font font) |
void |
setTextColor(Color textColor) |
public FPSScene(Scene scene)
scene - Underlying scenepublic void paintScene(Graphics2D g, int width, int height, long elapsedTime)
ScenepaintScene in interface Sceneg - Graphics2D object to draw onwidth - Width of painting areaheight - Height of painting areaelapsedTime - Time since the last paintingpublic Color getTextColor()
public void setTextColor(Color textColor)
public Font getFont()
public void setFont(Font font)
public EventListener[] getEventListeners()
SceneEventListeners that this scene want to register.JPanel for additional information.getEventListeners in interface SceneCopyright © 2017. All rights reserved.