public static enum Style.SizeUnit extends Enum<Style.SizeUnit>
Style
.Enum Constant and Description |
---|
PERCENT
Percent unit
|
PT
Point unit
|
PX
Pixel unit
|
Modifier and Type | Method and Description |
---|---|
static Style.SizeUnit |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Style.SizeUnit[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Style.SizeUnit PT
public static final Style.SizeUnit PX
public static final Style.SizeUnit PERCENT
public static Style.SizeUnit[] values()
for (Style.SizeUnit c : Style.SizeUnit.values()) System.out.println(c);
public static Style.SizeUnit valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant
with the specified nameNullPointerException
- if the argument is nullCopyright © 2007–2014 The Apache Software Foundation. All rights reserved.