public class TachometerState
extends com.jme3.app.state.BaseAppState
| Modifier and Type | Field and Description |
|---|---|
static com.jme3.math.ColorRGBA |
labelColor
color for Lemur debug labels
|
| Constructor and Description |
|---|
TachometerState(EngineSpeed engine)
Instantiate an enabled tachometer for the specified engine.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
cleanup(com.jme3.app.Application application)
Callback invoked after this AppState is detached or during application
shutdown if the state is still attached.
|
protected void |
initialize(com.jme3.app.Application application)
Callback invoked after this AppState is attached but before onEnable().
|
protected void |
onDisable()
Callback invoked whenever this AppState ceases to be both attached and
enabled.
|
protected void |
onEnable()
Callback invoked whenever this AppState becomes both attached and
enabled.
|
void |
update(float tpf)
Called to update this AppState, invoked once per frame when the AppState
is both attached and enabled.
|
public static final com.jme3.math.ColorRGBA labelColor
public TachometerState(EngineSpeed engine)
engine - the corresponding engine (not null)protected void cleanup(com.jme3.app.Application application)
cleanup in class com.jme3.app.state.BaseAppStateapplication - the application instance (not null)protected void initialize(com.jme3.app.Application application)
initialize in class com.jme3.app.state.BaseAppStateapplication - the application instance (not null)protected void onDisable()
onDisable in class com.jme3.app.state.BaseAppStateprotected void onEnable()
onEnable in class com.jme3.app.state.BaseAppStatepublic void update(float tpf)
update in interface com.jme3.app.state.AppStateupdate in class com.jme3.app.state.BaseAppStatetpf - the time interval between frames (in seconds, ≥0)