|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||
java.lang.Objectjava.lang.Enum<FontSizeUnit>
org.fuin.objects4j.FontSizeUnit
public enum FontSizeUnit
Unit of a given font size. 1em = 12pt = 16px = 100%
| Enum Constant Summary | |
|---|---|
EM
Scalable unit that is used in web document media. |
|
PERCENT
The current font-size is equal to 100% (i.e. 12pt = 100%). |
|
PIXEL
Fixed-size units that are used in screen media. |
|
POINT
Traditionally used in print media - One point is equal to 1/72 of an inch. |
|
| Method Summary | |
|---|---|
static FontSizeUnit |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static FontSizeUnit[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
| Methods inherited from class java.lang.Enum |
|---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Enum Constant Detail |
|---|
public static final FontSizeUnit POINT
public static final FontSizeUnit PIXEL
public static final FontSizeUnit EM
public static final FontSizeUnit PERCENT
| Method Detail |
|---|
public static FontSizeUnit[] values()
for (FontSizeUnit c : FontSizeUnit.values()) System.out.println(c);
public static FontSizeUnit 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 name
java.lang.NullPointerException - if the argument is null
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||