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()
FontInfo
public void setIndex(int index)
FontInfo
public java.lang.String getTypeface()
getTypeface
in interface FontInfo
public void setTypeface(java.lang.String typeface)
FontInfo
setTypeface
in interface FontInfo
typeface
- the full name of the font, when null
removes the font definition -
removal is implementation specificpublic FontCharset getCharset()
getCharset
in interface FontInfo
public void setCharset(FontCharset charset)
FontInfo
setCharset
in interface FontInfo
charset
- the charsetpublic FontFamily getFamily()
public void setFamily(FontFamily family)
FontInfo
public FontPitch getPitch()
Copyright 2018 The Apache Software Foundation or its licensors, as applicable.