|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Object java.lang.Enum<FontPitch> org.apache.poi.common.usermodel.fonts.FontPitch
public enum FontPitch
A property of a font that describes the pitch, of the characters.
Enum Constant Summary | |
---|---|
DEFAULT
The default pitch, which is implementation-dependent. |
|
FIXED
A fixed pitch, which means that all the characters in the font occupy the same width when output in a string. |
|
VARIABLE
A variable pitch, which means that the characters in the font occupy widths that are proportional to the actual widths of the glyphs when output in a string. |
Method Summary | |
---|---|
int |
getNativeId()
|
static byte |
getNativeId(FontPitch pitch,
FontFamily family)
Combine pitch and family to native id |
static FontPitch |
valueOf(int flag)
|
static FontPitch |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static FontPitch |
valueOfPitchFamily(byte pitchAndFamily)
Get FontPitch from native id |
static FontPitch[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final FontPitch DEFAULT
public static final FontPitch FIXED
public static final FontPitch VARIABLE
Method Detail |
---|
public static FontPitch[] values()
for (FontPitch c : FontPitch.values()) System.out.println(c);
public static FontPitch 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 name
java.lang.NullPointerException
- if the argument is nullpublic int getNativeId()
public static FontPitch valueOf(int flag)
public static byte getNativeId(FontPitch pitch, FontFamily family)
public static FontPitch valueOfPitchFamily(byte pitchAndFamily)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |