de.erichseifert.vectorgraphics2d
Enum VectorGraphics2D.FontRendering

java.lang.Object
  extended by java.lang.Enum<VectorGraphics2D.FontRendering>
      extended by de.erichseifert.vectorgraphics2d.VectorGraphics2D.FontRendering
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<VectorGraphics2D.FontRendering>
Enclosing class:
VectorGraphics2D

public static enum VectorGraphics2D.FontRendering
extends java.lang.Enum<VectorGraphics2D.FontRendering>

Constants to define how fonts are rendered.


Enum Constant Summary
TEXT
          Constant indicating that fonts should be rendered as text objects.
VECTORS
          Constant indicating that fonts should be converted to vectors.
 
Method Summary
static VectorGraphics2D.FontRendering valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static VectorGraphics2D.FontRendering[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

TEXT

public static final VectorGraphics2D.FontRendering TEXT
Constant indicating that fonts should be rendered as text objects.


VECTORS

public static final VectorGraphics2D.FontRendering VECTORS
Constant indicating that fonts should be converted to vectors.

Method Detail

values

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

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

valueOf

public static VectorGraphics2D.FontRendering 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 © 2010. All Rights Reserved.