Package com.jme3.app

Enum Class LostFocusBehavior

java.lang.Object
java.lang.Enum<LostFocusBehavior>
com.jme3.app.LostFocusBehavior
All Implemented Interfaces:
Serializable, Comparable<LostFocusBehavior>, Constable

public enum LostFocusBehavior extends Enum<LostFocusBehavior>
Defines the behavior of an application when it is not in focus or minimized.
  • Enum Constant Details

    • Disabled

      public static final LostFocusBehavior Disabled
      No lost focus behavior. The application will update and render as usual.
    • PauseOnLostFocus

      public static final LostFocusBehavior PauseOnLostFocus
      The application will not update when unfocused. For online or real-time applications, this might not be preferable. For other applications, it is best to keep it on so that CPU usage is not used when not necessary.
    • ThrottleOnLostFocus

      public static final LostFocusBehavior ThrottleOnLostFocus
      The application will update at a reduced rate when unfocused. This is a compromise between Disabled and PauseOnLostFocus, allowing the application to update at a reduced rate (20 updates per second), but without rendering.
  • Method Details

    • values

      public static LostFocusBehavior[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static LostFocusBehavior valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null