public enum EFontStyle extends Enum<EFontStyle> implements IFontStyle
| Enum Constant and Description |
|---|
BOLD |
BOLD_ITALIC |
ITALIC |
REGULAR |
| Modifier and Type | Method and Description |
|---|---|
static IFontStyle |
getFromIDOrNull(String sID) |
String |
getID() |
boolean |
isBold() |
boolean |
isItalic() |
boolean |
isRegular() |
static EFontStyle |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static EFontStyle[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final EFontStyle REGULAR
public static final EFontStyle BOLD
public static final EFontStyle ITALIC
public static final EFontStyle BOLD_ITALIC
public static EFontStyle[] values()
for (EFontStyle c : EFontStyle.values()) System.out.println(c);
public static EFontStyle 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@Nonnull @Nonempty public String getID()
getID in interface com.helger.commons.id.IHasID<String>public boolean isRegular()
isRegular in interface IFontStylepublic boolean isBold()
isBold in interface IFontStylepublic boolean isItalic()
isItalic in interface IFontStyle@Nullable public static IFontStyle getFromIDOrNull(@Nullable String sID)
Copyright © 2014–2015 Philip Helger. All rights reserved.