public class AWTComponentAppState
extends com.jme3.app.state.AbstractAppState
| 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() |
java.awt.Component |
getComponent()
Get the AWT component that is used as rendering output.
|
AWTFrameProcessor.TransferMode |
getTransferMode()
Get the
transfer mode that is used by the underlying frame processor. |
void |
initialize(com.jme3.app.state.AppStateManager stateManager,
com.jme3.app.Application app) |
void |
setComponent(java.awt.Component component)
Set the AWT component that is used as rendering output.
|
void |
setEnabled(boolean enabled) |
void |
setTransferMode(AWTFrameProcessor.TransferMode mode)
Set the
transfer mode that is used by the underlying frame processor. |
void |
stateAttached(com.jme3.app.state.AppStateManager stateManager) |
void |
update(float tpf) |
public AWTComponentAppState(java.awt.Component component)
component.component - the component that is used as rendering output.public void initialize(com.jme3.app.state.AppStateManager stateManager,
com.jme3.app.Application app)
initialize in interface com.jme3.app.state.AppStateinitialize in class com.jme3.app.state.AbstractAppStatepublic void stateAttached(com.jme3.app.state.AppStateManager stateManager)
stateAttached in interface com.jme3.app.state.AppStatestateAttached in class com.jme3.app.state.AbstractAppStatepublic void setEnabled(boolean enabled)
setEnabled in interface com.jme3.app.state.AppStatesetEnabled in class com.jme3.app.state.AbstractAppStatepublic void update(float tpf)
update in interface com.jme3.app.state.AppStateupdate in class com.jme3.app.state.AbstractAppStatepublic void cleanup()
cleanup in interface com.jme3.app.state.AppStatecleanup in class com.jme3.app.state.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()