Package com.simsilica.lemur
Enum Class FillMode
- All Implemented Interfaces:
Serializable
,Comparable<FillMode>
,Constable
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.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum Constants -
Method Summary
-
Enum Constant Details
-
None
-
Even
-
Proportional
-
ForcedEven
-
First
-
Last
-
-
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
-