- All Implemented Interfaces:
Serializable
,Comparable<ResizableJFrame.WindowSize>
,Constable
- Enclosing class:
ResizableJFrame
Window size options
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionSwitches the window to occupy the bottom left of the screenSwitches the window to occupy the bottom right of the screenSwitches the window to a custom size and position.Switches the window to the position of the last viewerSwitches the window to the position of the main windowSwitches the Window to fullscreenSwitches the Window to the primary display, filling itSwitches the Window to the primary display, filling itSwitches the window to occupy the top left of the screenSwitches the window to occupy the top right of the screenSwitches the Window to fullscreenSwitches the window to occupy the left sideSwitches the window to occupy the right side -
Method Summary
Modifier and TypeMethodDescriptionstatic ResizableJFrame.WindowSize
Returns the enum constant of this class with the specified name.static ResizableJFrame.WindowSize[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
WINDOW_UNDECORATED_FULLSCREEN
Switches the Window to fullscreen -
WINDOW_DECORATED_FULLSCREEN
Switches the Window to fullscreen -
WINDOW_DECORATED_PRIMARY
Switches the Window to the primary display, filling it -
WINDOW_DECORATED_SECONDARY
Switches the Window to the primary display, filling it -
WINDOW_UNDECORATED_LEFT
Switches the window to occupy the left side -
WINDOW_UNDECORATED_RIGHT
Switches the window to occupy the right side -
WINDOW_TOP_LEFT
Switches the window to occupy the top left of the screen -
WINDOW_TOP_RIGHT
Switches the window to occupy the top right of the screen -
WINDOW_BOTTOM_LEFT
Switches the window to occupy the bottom left of the screen -
WINDOW_BOTTOM_RIGHT
Switches the window to occupy the bottom right of the screen -
WINDOW_CUSTOM_SIZE
Switches the window to a custom size and position. -
WINDOW_CUSTOM_SIZE_LAST_VIEWER
Switches the window to the position of the last viewer -
WINDOW_CUSTOM_SIZE_MAIN_FRAME
Switches the window to the position of the main window
-
-
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
-