public class AWTComponentAppState extends AbstractAppState
initialized| Constructor and Description | 
|---|
| AWTComponentAppState(java.awt.Component component)Create a new app state dedicated to the rendering of a JMonkey application within the given AWT  component. | 
| Modifier and Type | Method and Description | 
|---|---|
| void | cleanup()Called by  AppStateManagerwhen transitioning thisAppStatefrom terminating to detached. | 
| java.awt.Component | getComponent()Get the AWT component that is used as rendering output. | 
| AWTFrameProcessor.TransferMode | getTransferMode()Get the  transfer modethat is used by the underlying frame processor. | 
| void | initialize(AppStateManager stateManager,
          Application app)Called by  AppStateManagerwhen transitioning thisAppStatefrom initializing to running.This will happen on the next iteration through the update loop after AppStateManager.attach(com.jme3.app.state.AppState)was called. | 
| void | setComponent(java.awt.Component component)Set the AWT component that is used as rendering output. | 
| void | setEnabled(boolean enabled)Enable or disable the functionality of the  AppState. | 
| void | setTransferMode(AWTFrameProcessor.TransferMode mode)Set the  transfer modethat is used by the underlying frame processor. | 
| void | stateAttached(AppStateManager stateManager)Called by  AppStateManager.attach(com.jme3.app.state.AppState)when transitioning thisAppStatefrom detached to initializing. | 
| void | update(float tpf)Called to update the  AppState. | 
getId, isEnabled, isInitialized, postRender, render, setId, stateDetachedpublic AWTComponentAppState(java.awt.Component component)
component.component - the component that is used as rendering output.public void initialize(AppStateManager stateManager, Application app)
AppStateAppStateManager when transitioning this AppState
 from initializing to running.AppStateManager.attach(com.jme3.app.state.AppState) was called.
 
 AppStateManager will call this only from the update loop
 inside the rendering thread. This means is it safe to modify the scene 
 graph from this method.
initialize in interface AppStateinitialize in class AbstractAppStatestateManager - The state managerapp - The applicationpublic void stateAttached(AppStateManager stateManager)
AppStateAppStateManager.attach(com.jme3.app.state.AppState)
 when transitioning this
 AppState from detached to initializing.
 
 There is no assumption about the thread from which this function is
 called, therefore it is unsafe to modify the scene graph
 from this method. Please use 
 AppState.initialize(com.jme3.app.state.AppStateManager, com.jme3.app.Application)
 instead.
stateAttached in interface AppStatestateAttached in class AbstractAppStatestateManager - State manager to which the state was attached to.public void setEnabled(boolean enabled)
AppStateAppState.
 The effect of this call depends on implementation. An 
 AppState starts as being enabled by default.
 A disabled AppStates does not get calls to
 AppState.update(float), AppState.render(RenderManager), or
 AppState.postRender() from its AppStateManager.setEnabled in interface AppStatesetEnabled in class AbstractAppStateenabled - activate the AppState or not.public void update(float tpf)
AppStateAppState. This method will be called 
 every render pass if the AppState is both attached and enabled.update in interface AppStateupdate in class AbstractAppStatetpf - Time since the last call to update(), in seconds.public void cleanup()
AppStateAppStateManager when transitioning this
 AppState from terminating to detached. This
 method is called the following render pass after the AppState has 
 been detached and is always called once and only once for each time
 initialize() is called. Either when the AppState
 is detached or when the application terminates (if it terminates normally).cleanup in interface AppStatecleanup in class AbstractAppStatepublic java.awt.Component getComponent()
setComponent(Component)public void setComponent(java.awt.Component component)
component - the AWT component that is used as rendering output.getComponent()public AWTFrameProcessor.TransferMode getTransferMode()
transfer mode that is used by the underlying frame processor.transfer mode that is used by the underlying frame processor.setTransferMode(com.jme3.system.AWTFrameProcessor.TransferMode)public void setTransferMode(AWTFrameProcessor.TransferMode mode)
transfer mode that is used by the underlying frame processor.mode - the transfer mode that is used by the underlying frame processor.getTransferMode()