Package org.apache.poi.hslf.usermodel
Enum HSLFFontInfoPredefined
- java.lang.Object
-
- java.lang.Enum<HSLFFontInfoPredefined>
-
- org.apache.poi.hslf.usermodel.HSLFFontInfoPredefined
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<HSLFFontInfoPredefined>
,FontInfo
public enum HSLFFontInfoPredefined extends java.lang.Enum<HSLFFontInfoPredefined> implements FontInfo
Predefined fonts- Since:
- POI 3.17-beta2
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ARIAL
COURIER_NEW
TIMES_NEW_ROMAN
WINGDINGS
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description FontCharset
getCharset()
FontFamily
getFamily()
java.lang.Integer
getIndex()
Get the index within the collection of Font objectsFontPitch
getPitch()
java.lang.String
getTypeface()
void
setCharset(FontCharset charset)
Sets the charsetvoid
setFamily(FontFamily family)
Sets the font family classvoid
setIndex(int index)
Sets the index within the collection of Font objectsvoid
setPitch(FontPitch pitch)
Set the font pitchvoid
setTypeface(java.lang.String typeface)
Sets the font namestatic 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.
-
-
-
Enum Constant Detail
-
ARIAL
public static final HSLFFontInfoPredefined ARIAL
-
TIMES_NEW_ROMAN
public static final HSLFFontInfoPredefined TIMES_NEW_ROMAN
-
COURIER_NEW
public static final HSLFFontInfoPredefined COURIER_NEW
-
WINGDINGS
public static final HSLFFontInfoPredefined WINGDINGS
-
-
Method Detail
-
values
public static HSLFFontInfoPredefined[] 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 (HSLFFontInfoPredefined c : HSLFFontInfoPredefined.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static HSLFFontInfoPredefined valueOf(java.lang.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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
getIndex
public java.lang.Integer getIndex()
Description copied from interface:FontInfo
Get the index within the collection of Font objects
-
setIndex
public void setIndex(int index)
Description copied from interface:FontInfo
Sets the index within the collection of Font objects
-
getTypeface
public java.lang.String getTypeface()
- Specified by:
getTypeface
in interfaceFontInfo
- Returns:
- the full name of the font, i.e. font family + type face
-
setTypeface
public void setTypeface(java.lang.String typeface)
Description copied from interface:FontInfo
Sets the font name- Specified by:
setTypeface
in interfaceFontInfo
- Parameters:
typeface
- the full name of the font, whennull
removes the font definition - removal is implementation specific
-
getCharset
public FontCharset getCharset()
- Specified by:
getCharset
in interfaceFontInfo
- Returns:
- the font charset
-
setCharset
public void setCharset(FontCharset charset)
Description copied from interface:FontInfo
Sets the charset- Specified by:
setCharset
in interfaceFontInfo
- Parameters:
charset
- the charset
-
getFamily
public FontFamily getFamily()
-
setFamily
public void setFamily(FontFamily family)
Description copied from interface:FontInfo
Sets the font family class
-
getPitch
public FontPitch getPitch()
-
-