public static enum StyledElement.Unit extends java.lang.Enum<StyledElement.Unit>
Modifier and Type | Method and Description |
---|---|
static StyledElement.Unit |
fromString(java.lang.String value)
Parses the given String into the proper value of Unit.
|
static StyledElement.Unit |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static StyledElement.Unit[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final StyledElement.Unit UNDEFINED
public static final StyledElement.Unit EMS
public static final StyledElement.Unit PERCENT
public static final StyledElement.Unit PX
public static final StyledElement.Unit PT
public static final StyledElement.Unit LINE
public static StyledElement.Unit[] values()
for (StyledElement.Unit c : StyledElement.Unit.values()) System.out.println(c);
public static StyledElement.Unit 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 nullpublic static StyledElement.Unit fromString(java.lang.String value)
PERCENT
.value
- the String to parse