Package swingtree.layout
Enum Class ParentSizeClass
- All Implemented Interfaces:
Serializable
,Comparable<ParentSizeClass>
,Constable
Represents a classification of the size of a parent component in a
ResponsiveGridFlowLayout
that serves as a sort of layout mode for the child components.
The size classes are ordered from smallest to largest, and are used to determine the relative size of the parent component in relation to the other components in the layout.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe size is considered to be large, meaning that the dimension is greater than or equal to 3/5 of its preferred size and less than 4/5 of its preferred size.The size is considered to be medium, meaning that the dimension is greater than or equal to 2/5 of its preferred size and less than 3/5 of its preferred size.The size is considered to be oversize, meaning that the dimension is greater than or equal to 5/5 of its preferred size.The size is considered to be small, meaning that the dimension is greater than or equal to 1/5 of its preferred size and less than 2/5 of its preferred size.The size is considered to be very large, meaning that the dimension is greater than or equal to 4/5 of its preferred size and less than 5/5 of its preferred size.The size is considered to be very small, meaning that the dimension is greater than0
and less than 1/5 of its preferred size.The size is considered to be void, meaning that the dimension smaller or equal to0
. -
Method Summary
Modifier and TypeMethodDescriptionstatic ParentSizeClass
Returns the enum constant of this class with the specified name.static ParentSizeClass[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
VOID
The size is considered to be void, meaning that the dimension smaller or equal to0
. -
VERY_SMALL
The size is considered to be very small, meaning that the dimension is greater than0
and less than 1/5 of its preferred size. -
SMALL
The size is considered to be small, meaning that the dimension is greater than or equal to 1/5 of its preferred size and less than 2/5 of its preferred size. -
MEDIUM
The size is considered to be medium, meaning that the dimension is greater than or equal to 2/5 of its preferred size and less than 3/5 of its preferred size. -
LARGE
The size is considered to be large, meaning that the dimension is greater than or equal to 3/5 of its preferred size and less than 4/5 of its preferred size. -
VERY_LARGE
The size is considered to be very large, meaning that the dimension is greater than or equal to 4/5 of its preferred size and less than 5/5 of its preferred size. -
OVERSIZE
The size is considered to be oversize, meaning that the dimension is greater than or equal to 5/5 of its preferred size.
-
-
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
-