public enum HSLFFontInfoPredefined extends java.lang.Enum<HSLFFontInfoPredefined> implements FontInfo
| Enum Constant and Description |
|---|
ARIAL |
COURIER_NEW |
TIMES_NEW_ROMAN |
WINGDINGS |
| Modifier and Type | Method and Description |
|---|---|
FontCharset |
getCharset() |
FontFamily |
getFamily() |
java.lang.Integer |
getIndex()
Get the index within the collection of Font objects
|
FontPitch |
getPitch() |
java.lang.String |
getTypeface() |
void |
setCharset(FontCharset charset)
Sets the charset
|
void |
setFamily(FontFamily family)
Sets the font family class
|
void |
setIndex(int index)
Sets the index within the collection of Font objects
|
void |
setPitch(FontPitch pitch)
Set the font pitch
|
void |
setTypeface(java.lang.String typeface)
Sets the font name
|
static HSLFFontInfoPredefined |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static HSLFFontInfoPredefined[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final HSLFFontInfoPredefined ARIAL
public static final HSLFFontInfoPredefined TIMES_NEW_ROMAN
public static final HSLFFontInfoPredefined COURIER_NEW
public static final HSLFFontInfoPredefined WINGDINGS
public static HSLFFontInfoPredefined[] values()
for (HSLFFontInfoPredefined c : HSLFFontInfoPredefined.values()) System.out.println(c);
public static HSLFFontInfoPredefined 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 java.lang.Integer getIndex()
FontInfopublic void setIndex(int index)
FontInfopublic java.lang.String getTypeface()
getTypeface in interface FontInfopublic void setTypeface(java.lang.String typeface)
FontInfosetTypeface in interface FontInfotypeface - the full name of the font, when null removes the font definition -
removal is implementation specificpublic FontCharset getCharset()
getCharset in interface FontInfopublic void setCharset(FontCharset charset)
FontInfosetCharset in interface FontInfocharset - the charsetpublic FontFamily getFamily()
public void setFamily(FontFamily family)
FontInfopublic FontPitch getPitch()
Copyright 2018 The Apache Software Foundation or its licensors, as applicable.