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()voidsetCharset(FontCharset charset) Sets the charsetvoidsetFamily(FontFamily family) Sets the font family classvoidsetIndex(int index) Sets the index within the collection of Font objectsvoidSet the font pitchvoidsetTypeface(String typeface) Sets the font namestatic HSLFFontInfoPredefinedReturns 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:FontInfoGet the index within the collection of Font objects -
setIndex
public void setIndex(int index) Description copied from interface:FontInfoSets the index within the collection of Font objects -
getTypeface
- Specified by:
getTypefacein interfaceFontInfo- Returns:
- the full name of the font, i.e. font family + type face
-
setTypeface
Description copied from interface:FontInfoSets the font name- Specified by:
setTypefacein interfaceFontInfo- Parameters:
typeface- the full name of the font, whennullremoves the font definition - removal is implementation specific
-
getCharset
- Specified by:
getCharsetin interfaceFontInfo- Returns:
- the font charset
-
setCharset
Description copied from interface:FontInfoSets the charset- Specified by:
setCharsetin interfaceFontInfo- Parameters:
charset- the charset
-
getFamily
-
setFamily
Description copied from interface:FontInfoSets the font family class -
getPitch
-
setPitch
Description copied from interface:FontInfoSet the font pitch
-