Package org.apache.poi.hslf.usermodel
Enum Class HSLFFontInfoPredefined
- All Implemented Interfaces:
Serializable
,Comparable<HSLFFontInfoPredefined>
,Constable
,FontInfo
Predefined fonts
- Since:
- POI 3.17-beta2
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptiongetIndex()
Get the index within the collection of Font objectsgetPitch()
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
Set the font pitchvoid
setTypeface
(String typeface) Sets the font namestatic HSLFFontInfoPredefined
Returns the enum constant of this class with the specified name.static HSLFFontInfoPredefined[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
ARIAL
-
TIMES_NEW_ROMAN
-
COURIER_NEW
-
WINGDINGS
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException
- if the argument is null
-
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
- Specified by:
getTypeface
in interfaceFontInfo
- Returns:
- the full name of the font, i.e. font family + type face
-
setTypeface
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
- Specified by:
getCharset
in interfaceFontInfo
- Returns:
- the font charset
-
setCharset
Description copied from interface:FontInfo
Sets the charset- Specified by:
setCharset
in interfaceFontInfo
- Parameters:
charset
- the charset
-
getFamily
-
setFamily
Description copied from interface:FontInfo
Sets the font family class -
getPitch
-
setPitch
Description copied from interface:FontInfo
Set the font pitch
-