public enum EFontWeight extends Enum<EFontWeight> implements IFontWeight
| Enum Constant and Description |
|---|
BLACK |
BOLD |
EXTRA_BOLD |
EXTRA_LIGHT |
HAIRLINE |
LIGHT |
MEDIUM |
REGULAR |
SEMI_BOLD |
THIN |
| Modifier and Type | Method and Description |
|---|---|
static IFontWeight |
getFromWeightOrDefault(int nWeight,
IFontWeight eDefault) |
static IFontWeight |
getFromWeightOrNull(int nWeight) |
int |
getWeight() |
static EFontWeight |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static EFontWeight[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final EFontWeight HAIRLINE
public static final EFontWeight THIN
public static final EFontWeight EXTRA_LIGHT
public static final EFontWeight LIGHT
public static final EFontWeight REGULAR
public static final EFontWeight MEDIUM
public static final EFontWeight SEMI_BOLD
public static final EFontWeight BOLD
public static final EFontWeight EXTRA_BOLD
public static final EFontWeight BLACK
public static EFontWeight[] values()
for (EFontWeight c : EFontWeight.values()) System.out.println(c);
public static EFontWeight 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 null@Nonnegative public int getWeight()
getWeight in interface IFontWeight@Nullable public static IFontWeight getFromWeightOrNull(@Nonnegative int nWeight)
@Nullable public static IFontWeight getFromWeightOrDefault(@Nonnegative int nWeight, @Nullable IFontWeight eDefault)
Copyright © 2014–2015 Philip Helger. All rights reserved.