Constructor and Description |
---|
FPSScene(Scene scene)
New Overlay fps scene.
|
Modifier and Type | Method and Description |
---|---|
EventListener[] |
getEventListeners()
Should return all
EventListener s 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)
Scene
paintScene
in interface Scene
g
- 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()
Scene
EventListener
s that this scene want to register.JPanel
for additional information.getEventListeners
in interface Scene
Copyright © 2017. All rights reserved.