com.threerings.opengl.gui.config
Enum FontConfig.Style

java.lang.Object
  extended by java.lang.Enum<FontConfig.Style>
      extended by com.threerings.opengl.gui.config.FontConfig.Style
All Implemented Interfaces:
Serializable, Comparable<FontConfig.Style>
Enclosing class:
FontConfig

public static enum FontConfig.Style
extends Enum<FontConfig.Style>

The available font styles.


Enum Constant Summary
BOLD
          The bold font style.
BOLD_ITALIC
          The bold/italic font style.
ITALIC
          The italic font style.
PLAIN
          The plain font style.
 
Method Summary
 int getFlags()
          Returns the AWT flags corresponding to the style.
static FontConfig.Style valueOf(String name)
          Returns the enum constant of this type with the specified name.
static FontConfig.Style[] 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

PLAIN

public static final FontConfig.Style PLAIN
The plain font style.


BOLD

public static final FontConfig.Style BOLD
The bold font style.


ITALIC

public static final FontConfig.Style ITALIC
The italic font style.


BOLD_ITALIC

public static final FontConfig.Style BOLD_ITALIC
The bold/italic font style.

Method Detail

values

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

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

valueOf

public static FontConfig.Style valueOf(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:
IllegalArgumentException - if this enum type has no constant with the specified name
NullPointerException - if the argument is null

getFlags

public int getFlags()
Returns the AWT flags corresponding to the style.



Copyright © 2011. All Rights Reserved.