Package de.hsh.graja.util.comment
Enum FontWeightAndStyle.FontDecoration
- java.lang.Object
-
- java.lang.Enum<FontWeightAndStyle.FontDecoration>
-
- de.hsh.graja.util.comment.FontWeightAndStyle.FontDecoration
-
- All Implemented Interfaces:
Serializable
,Comparable<FontWeightAndStyle.FontDecoration>
- Enclosing class:
- FontWeightAndStyle
public static enum FontWeightAndStyle.FontDecoration extends Enum<FontWeightAndStyle.FontDecoration>
A single font decoration element, that can be used to describe a font.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getCssStyle()
static FontWeightAndStyle.FontDecoration
valueOf(String name)
Returns the enum constant of this type with the specified name.static FontWeightAndStyle.FontDecoration[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
NORMAL
public static final FontWeightAndStyle.FontDecoration NORMAL
No decoration.
-
EMPHASIZED
public static final FontWeightAndStyle.FontDecoration EMPHASIZED
moderate accentuation.
-
STRONG
public static final FontWeightAndStyle.FontDecoration STRONG
strong accentuation.
-
LARGER
public static final FontWeightAndStyle.FontDecoration LARGER
relative enlargement.
-
SMALLER
public static final FontWeightAndStyle.FontDecoration SMALLER
relative downscaling.
-
UNDERLINE
public static final FontWeightAndStyle.FontDecoration UNDERLINE
underlined font.
-
-
Method Detail
-
values
public static FontWeightAndStyle.FontDecoration[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (FontWeightAndStyle.FontDecoration c : FontWeightAndStyle.FontDecoration.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static FontWeightAndStyle.FontDecoration valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
getCssStyle
public String getCssStyle()
-
-