Enum Class FillMode

java.lang.Object
java.lang.Enum<FillMode>
com.simsilica.lemur.FillMode
All Implemented Interfaces:
Serializable, Comparable<FillMode>, Constable

public enum FillMode extends Enum<FillMode>
Specifies the overall type of fill for a distribution or layout. None - indicates that none of the children will be stretched and there default size will always be used. Even - all children will get an even amount of stretching. This does not mean that they are all the same size. It means that any extra sizing is evenly distributed amongst all children. Proportional - children will get stretching based on their portion of the overal preferred size. Instead of evenly distributing extra sizing, each child will get a proportional amount of the sizing based on their relative size. If three children start out at 100, 50, and 50 and there are 10 extra units to go around then the first will get 5 and the other two will get 2.5. ForcedEven - all children will be the same size, evenly distributed over the total container size. Note: this may make children lay out smaller than their preferred size where they otherwise wouldn't be. First - the first child gets all of the extra space and all other children are preferred size. Last - the last child gets all of the extra space and all other children are preferred size.
  • Enum Constant Details

    • None

      public static final FillMode None
    • Even

      public static final FillMode Even
    • Proportional

      public static final FillMode Proportional
    • ForcedEven

      public static final FillMode ForcedEven
    • First

      public static final FillMode First
    • Last

      public static final FillMode Last
  • Method Details

    • values

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