|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||
java.lang.Objectjava.lang.Enum<FontStyle>
com.deltaxml.odf.FontStyle
public enum FontStyle
Enumeration representing the possible values to set as the font style for added and deleted text.
| Enum Constant Summary | |
|---|---|
ITALIC
The value representing italic font style. |
|
NONE
The value representing no change to the font style. |
|
NORMAL
The value representing normal font style. |
|
OBLIQUE
The value representing oblique font style (often the same as italic). |
|
| Method Summary | |
|---|---|
static FontStyle |
getFontStyle(String value)
Returns a FontStyle object from the supplied String value if appropriate. |
String |
toString()
Returns a String representation of the FontStyle. |
static FontStyle |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static FontStyle[] |
values()
Returns an array containing the constants of this enum type, in the order they're declared. |
| Methods inherited from class java.lang.Enum |
|---|
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, valueOf |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Enum Constant Detail |
|---|
public static final FontStyle NONE
public static final FontStyle NORMAL
public static final FontStyle ITALIC
public static final FontStyle OBLIQUE
| Method Detail |
|---|
public static final FontStyle[] values()
for(FontStyle c : FontStyle.values())
System.out.println(c);
public static FontStyle valueOf(String name)
name - the name of the enum constant to be returned.
IllegalArgumentException - if this enum type has no constant
with the specified namepublic String toString()
Returns a String representation of the FontStyle.
In the case of FontStyle, the String returned is the value that would be used
for the fo:font-style attribute on the text style
toString in class Enum<FontStyle>public static FontStyle getFontStyle(String value)
Returns a FontStyle object from the supplied String value if appropriate.
This method should not normally be necessary. However, if you have a String representation of FontStyle, it may be a useful utility method.
value - the String representation of the FontStyle
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||