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
  • Constructor Details

    • AWTComponentAppState

      public AWTComponentAppState(Component component)
      Create a new app state dedicated to the rendering of a JMonkey application within the given AWT component.
      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:
      initialize in interface com.jme3.app.state.AppState
      Overrides:
      initialize in class com.jme3.app.state.AbstractAppState
    • stateAttached

      public void stateAttached(com.jme3.app.state.AppStateManager stateManager)
      Specified by:
      stateAttached in interface com.jme3.app.state.AppState
      Overrides:
      stateAttached in class com.jme3.app.state.AbstractAppState
    • setEnabled

      public void setEnabled(boolean enabled)
      Specified by:
      setEnabled in interface com.jme3.app.state.AppState
      Overrides:
      setEnabled in class com.jme3.app.state.AbstractAppState
    • update

      public void update(float tpf)
      Specified by:
      update in interface com.jme3.app.state.AppState
      Overrides:
      update in class com.jme3.app.state.AbstractAppState
    • cleanup

      public void cleanup()
      Specified by:
      cleanup in interface com.jme3.app.state.AppState
      Overrides:
      cleanup in class com.jme3.app.state.AbstractAppState
    • getComponent

      public Component getComponent()
      Get the AWT component that is used as rendering output.
      Returns:
      the AWT component that is used as rendering output.
      See Also:
    • setComponent

      public void setComponent(Component component)
      Set the AWT component that is used as rendering output.
      Parameters:
      component - the AWT component that is used as rendering output.
      See Also:
    • getTransferMode

      public AWTFrameProcessor.TransferMode getTransferMode()
      Get the transfer mode that is used by the underlying frame processor.
      Returns:
      the transfer mode that is used by the underlying frame processor.
      See Also:
    • setTransferMode

      public void setTransferMode(AWTFrameProcessor.TransferMode mode)
      Set the transfer mode that is used by the underlying frame processor.
      Parameters:
      mode - the transfer mode that is used by the underlying frame processor.
      See Also: