Package com.jme3.app.state
Class AWTComponentAppState
java.lang.Object
com.jme3.app.state.AbstractAppState
com.jme3.app.state.AWTComponentAppState
- All Implemented Interfaces:
com.jme3.app.state.AppState
public class AWTComponentAppState
extends com.jme3.app.state.AbstractAppState
An app state dedicated to the rendering of a JMonkey application within an AWT component.
- Author:
- Julien Seinturier - COMEX SA - http://www.seinturier.fr
-
Field Summary
Fields inherited from class com.jme3.app.state.AbstractAppState
initialized -
Constructor Summary
ConstructorsConstructorDescriptionAWTComponentAppState(Component component) Create a new app state dedicated to the rendering of a JMonkey application within the given AWTcomponent. -
Method Summary
Modifier and TypeMethodDescriptionvoidcleanup()Get the AWT component that is used as rendering output.Get thetransfer modethat is used by the underlying frame processor.voidinitialize(com.jme3.app.state.AppStateManager stateManager, com.jme3.app.Application app) voidsetComponent(Component component) Set the AWT component that is used as rendering output.voidsetEnabled(boolean enabled) voidSet thetransfer modethat is used by the underlying frame processor.voidstateAttached(com.jme3.app.state.AppStateManager stateManager) voidupdate(float tpf) Methods inherited from class com.jme3.app.state.AbstractAppState
getId, isEnabled, isInitialized, postRender, render, setId, stateDetached
-
Constructor Details
-
AWTComponentAppState
Create a new app state dedicated to the rendering of a JMonkey application within the given AWTcomponent.- Parameters:
component- the component that is used as rendering output.
-
-
Method Details
-
initialize
public void initialize(com.jme3.app.state.AppStateManager stateManager, com.jme3.app.Application app) - Specified by:
initializein interfacecom.jme3.app.state.AppState- Overrides:
initializein classcom.jme3.app.state.AbstractAppState
-
stateAttached
public void stateAttached(com.jme3.app.state.AppStateManager stateManager) - Specified by:
stateAttachedin interfacecom.jme3.app.state.AppState- Overrides:
stateAttachedin classcom.jme3.app.state.AbstractAppState
-
setEnabled
public void setEnabled(boolean enabled) - Specified by:
setEnabledin interfacecom.jme3.app.state.AppState- Overrides:
setEnabledin classcom.jme3.app.state.AbstractAppState
-
update
public void update(float tpf) - Specified by:
updatein interfacecom.jme3.app.state.AppState- Overrides:
updatein classcom.jme3.app.state.AbstractAppState
-
cleanup
public void cleanup()- Specified by:
cleanupin interfacecom.jme3.app.state.AppState- Overrides:
cleanupin classcom.jme3.app.state.AbstractAppState
-
getComponent
Get the AWT component that is used as rendering output.- Returns:
- the AWT component that is used as rendering output.
- See Also:
-
setComponent
Set the AWT component that is used as rendering output.- Parameters:
component- the AWT component that is used as rendering output.- See Also:
-
getTransferMode
Get thetransfer modethat is used by the underlying frame processor.- Returns:
- the
transfer modethat is used by the underlying frame processor. - See Also:
-
setTransferMode
Set thetransfer modethat is used by the underlying frame processor.- Parameters:
mode- thetransfer modethat is used by the underlying frame processor.- See Also:
-