|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.hermit.android.instruments.Instrument
public class Instrument
An instrument which measures some quantity, or accesses or produces some
data, which can be displayed on one or more Gauge
objects.
Constructor Summary | |
---|---|
Instrument(SurfaceRunner parent)
Set up this view. |
Method Summary | |
---|---|
void |
appStart()
The application is starting. |
void |
appStop()
The application is closing down. |
protected void |
doUpdate(long now)
Update the state of the instrument for the current frame. |
protected SurfaceRunner |
getSurface()
Get the app context of this Element. |
void |
measureStart()
We are starting the main run; start measurements. |
void |
measureStop()
We are stopping / pausing the run; stop measurements. |
protected void |
restoreState(Bundle icicle)
Restore the game state from the given Bundle. |
protected void |
saveState(Bundle icicle)
Save the state of the game in the provided Bundle. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Instrument(SurfaceRunner parent)
parent
- Parent surface.Method Detail |
---|
public void appStart()
public void measureStart()
public void measureStop()
public void appStop()
protected void doUpdate(long now)
Instruments may override this, and can use it to read the current input state. This method is invoked in the main animation loop -- i.e. frequently.
now
- Nominal time of the current frame in ms.protected SurfaceRunner getSurface()
protected void saveState(Bundle icicle)
icicle
- The Bundle in which we should save our state.protected void restoreState(Bundle icicle)
icicle
- The Bundle containing the saved state.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |