org.apache.poi.hwmf.record
Enum HwmfFont.WmfFontPitch

java.lang.Object
  extended by java.lang.Enum<HwmfFont.WmfFontPitch>
      extended by org.apache.poi.hwmf.record.HwmfFont.WmfFontPitch
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<HwmfFont.WmfFontPitch>
Enclosing class:
HwmfFont

public static enum HwmfFont.WmfFontPitch
extends java.lang.Enum<HwmfFont.WmfFontPitch>

A property of a font that describes the pitch, of the characters.


Enum Constant Summary
DEFAULT_PITCH
          The default pitch, which is implementation-dependent.
FIXED_PITCH
          A fixed pitch, which means that all the characters in the font occupy the same width when output in a string.
VARIABLE_PITCH
          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
static HwmfFont.WmfFontPitch valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static HwmfFont.WmfFontPitch[] 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

DEFAULT_PITCH

public static final HwmfFont.WmfFontPitch DEFAULT_PITCH
The default pitch, which is implementation-dependent.


FIXED_PITCH

public static final HwmfFont.WmfFontPitch FIXED_PITCH
A fixed pitch, which means that all the characters in the font occupy the same width when output in a string.


VARIABLE_PITCH

public static final HwmfFont.WmfFontPitch VARIABLE_PITCH
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. For example, the "i" and space characters usually have much smaller widths than a "W" or "O" character.

Method Detail

values

public static HwmfFont.WmfFontPitch[] 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 (HwmfFont.WmfFontPitch c : HwmfFont.WmfFontPitch.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static HwmfFont.WmfFontPitch 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 name
java.lang.NullPointerException - if the argument is null


Copyright 2016 The Apache Software Foundation or its licensors, as applicable.