Package com.jme3.app
Enum Class LostFocusBehavior
- All Implemented Interfaces:
Serializable
,Comparable<LostFocusBehavior>
,Constable
Defines the behavior of an application when it is not in focus or minimized.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionNo lost focus behavior.The application will not update when unfocused.The application will update at a reduced rate when unfocused. -
Method Summary
Modifier and TypeMethodDescriptionstatic LostFocusBehavior
Returns the enum constant of this class with the specified name.static LostFocusBehavior[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
Disabled
No lost focus behavior. The application will update and render as usual. -
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
The application will update at a reduced rate when unfocused. This is a compromise betweenDisabled
andPauseOnLostFocus
, allowing the application to update at a reduced rate (20 updates per second), but without rendering.
-
-
Method Details
-
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
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 nameNullPointerException
- if the argument is null
-