public enum LengthType extends java.lang.Enum<LengthType>
Length object.| Enum Constant and Description |
|---|
Absolute
Specifies absolute length, expressed in pixels.
|
Relative
Specifies relative length, expressed as a percentage of the container's size.
|
| Modifier and Type | Method and Description |
|---|---|
static LengthType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static LengthType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final LengthType Absolute
public static final LengthType Relative
public static LengthType[] values()
for (LengthType c : LengthType.values()) System.out.println(c);
public static LengthType valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is null