Enum Class WindowMode
- All Implemented Interfaces:
Serializable,Comparable<WindowMode>,Constable
Window display mode used when launching the application.
These modes control whether the sketch runs in a fixed window or fullscreen, and if fullscreen is used, which display configuration is targeted.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionFullscreen on a specific display.Fullscreen on the system's preferred (default) display.Fullscreen spanned across all available displays.Standard fixed-size window. -
Method Summary
Modifier and TypeMethodDescriptionstatic WindowModeReturns the enum constant of this class with the specified name.static WindowMode[]values()Returns an array containing the constants of this enum class, in the order they are declared.Methods inherited from class java.lang.Enum
compareTo, describeConstable, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
-
Enum Constant Details
-
WINDOWED
Standard fixed-size window. -
FULLSCREEN_PREF
Fullscreen on the system's preferred (default) display. -
FULLSCREEN_DISPLAY
Fullscreen on a specific display.The display number is provided separately (1-based).
-
FULLSCREEN_SPAN
Fullscreen spanned across all available displays.Usually not recommended unless you want multi-monitor wall display and have a beefy computer.
-
-
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
-