Enum SizeMode
-
- All Implemented Interfaces:
public enum SizeModeAlgorithms available for calculating an arbitrary dimension of a widget. Each algorithm also takes a single value called "val" in this doc. ABSOLUTE - Val is treated as absolute. If val is 5 then the size of the widget along the associated axis is 5 pixels. RELATIVE - Val represents the percentage of the display that the widget should fill along the associated axis. For example, if the total size of the owning plot is 120 pixels and val is set to 50 then the size of the widget along the associated axis is 60; 50% of 120 = 60. FILL - Widget completely fills along the associated axis, minus the input size value
-
-
Method Summary
-
-
Method Detail
-
values
static Array<SizeMode> values()
Returns an array containing the constants of this enum type, in the order they're declared. This method may be used to iterate over the constants.
- Returns:
an array containing the constants of this enum type, in the order they're declared
-
valueOf
static SizeMode valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
- Returns:
the enum constant with the specified name
-
-
-
-