public enum FontSizeUnit extends Enum<FontSizeUnit>
Enum Constant and Description |
---|
FONTSIZE_EM
Font size based on the relative unit 'em'.
|
FONTSIZE_EX
Font size based on the relative unit 'ex'.
|
FONTSIZE_PERCENT
Font size based on the relative unit '%'.
|
FONTSIZE_POINT
Font size based on the absolute unit 'point'.
|
Modifier and Type | Method and Description |
---|---|
String |
getCssUnit() |
static FontSizeUnit |
valueOf(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.
|
public static final FontSizeUnit FONTSIZE_EM
public static final FontSizeUnit FONTSIZE_EX
public static final FontSizeUnit FONTSIZE_PERCENT
public static final FontSizeUnit FONTSIZE_POINT
public static FontSizeUnit[] values()
for (FontSizeUnit c : FontSizeUnit.values()) System.out.println(c);
public static FontSizeUnit 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 nullpublic String getCssUnit()
Copyright © 2019 Habarisoft. All rights reserved.