public enum CFontWeight extends java.lang.Enum<CFontWeight>
| Enum Constant and Description |
|---|
BOLD
Bold font weight (typically 700).
|
BOLDER
Bolder than the inherited weight (CSS-like semantic).
|
LIGHTER
Lighter than the inherited weight (CSS-like semantic).
|
NORMAL
Normal font weight (typically 400).
|
W100
Numeric weight 100 (thin).
|
W200
Numeric weight 200 (extra light).
|
W300
Numeric weight 300 (light).
|
W400
Numeric weight 400 (normal).
|
W500
Numeric weight 500 (medium).
|
W600
Numeric weight 600 (semi-bold).
|
W700
Numeric weight 700 (bold).
|
W800
Numeric weight 800 (extra bold).
|
W900
Numeric weight 900 (black/heavy).
|
| Modifier and Type | Method and Description |
|---|---|
int |
getValue()
Get the integer value of this enum.
|
static CFontWeight |
toEnum(int id)
Convert an integer id to
CFontWeight. |
static CFontWeight |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static CFontWeight[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CFontWeight NORMAL
public static final CFontWeight BOLD
public static final CFontWeight BOLDER
public static final CFontWeight LIGHTER
public static final CFontWeight W100
public static final CFontWeight W200
public static final CFontWeight W300
public static final CFontWeight W400
public static final CFontWeight W500
public static final CFontWeight W600
public static final CFontWeight W700
public static final CFontWeight W800
public static final CFontWeight W900
public static CFontWeight[] values()
for (CFontWeight c : CFontWeight.values()) System.out.println(c);
public static CFontWeight 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 CFontWeight toEnum(int id)
CFontWeight.
If the id is not recognized, NORMAL is returned by default.id - Integer id.NORMAL if unknown.public int getValue()