Enum Class ParentSizeClass

java.lang.Object
java.lang.Enum<ParentSizeClass>
swingtree.layout.ParentSizeClass
All Implemented Interfaces:
Serializable, Comparable<ParentSizeClass>, Constable

public enum ParentSizeClass extends Enum<ParentSizeClass>
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 Constants
    Enum Constant
    Description
    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.
    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 than 0 and less than 1/5 of its preferred size.
    The size is considered to be void, meaning that the dimension smaller or equal to 0.
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the enum constant of this class with the specified name.
    Returns an array containing the constants of this enum class, in the order they are declared.

    Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, wait, wait, wait
  • Enum Constant Details

    • VOID

      public static final ParentSizeClass VOID
      The size is considered to be void, meaning that the dimension smaller or equal to 0.
    • VERY_SMALL

      public static final ParentSizeClass VERY_SMALL
      The size is considered to be very small, meaning that the dimension is greater than 0 and less than 1/5 of its preferred size.
    • SMALL

      public static final ParentSizeClass 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

      public static final ParentSizeClass 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

      public static final ParentSizeClass 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

      public static final ParentSizeClass 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

      public static final ParentSizeClass 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

      public static ParentSizeClass[] 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 ParentSizeClass 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