|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--netwar.utils.FPS
Temporary class to display the number of frames per second.
| Constructor Summary | |
FPS()
Constructs FPS. |
|
| Method Summary | |
void |
actionPerformed(java.awt.event.ActionEvent e)
|
static void |
draw(java.awt.Graphics g)
Draws the frames per sec in the upper left corner |
static void |
incG()
To be called only from within a graphics update. |
static void |
incU()
To be called only from within an Updater update. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public FPS()
| Method Detail |
public static void draw(java.awt.Graphics g)
g - Graphics object to draw onto.public static void incG()
public static void incU()
public void actionPerformed(java.awt.event.ActionEvent e)
actionPerformed in interface java.awt.event.ActionListener
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||