org.xith3d.ui.hud.utils
Enum HUDFont.FontStyle

java.lang.Object
  extended by java.lang.Enum<HUDFont.FontStyle>
      extended by org.xith3d.ui.hud.utils.HUDFont.FontStyle
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<HUDFont.FontStyle>
Enclosing class:
HUDFont

public static enum HUDFont.FontStyle
extends java.lang.Enum<HUDFont.FontStyle>


Enum Constant Summary
BOLD
           
BOLD_ITALIC
           
ITALIC
           
PLAIN
           
 
Method Summary
 int getAWTStyle()
           
static HUDFont.FontStyle getFromAWTStyle(int awtStyle)
           
 HUDFont.FontStyle makeBold()
           
 HUDFont.FontStyle makeItalic()
           
 HUDFont.FontStyle makeNonBold()
           
 HUDFont.FontStyle makeNonItalic()
           
static HUDFont.FontStyle valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static HUDFont.FontStyle[] 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

PLAIN

public static final HUDFont.FontStyle PLAIN

BOLD

public static final HUDFont.FontStyle BOLD

ITALIC

public static final HUDFont.FontStyle ITALIC

BOLD_ITALIC

public static final HUDFont.FontStyle BOLD_ITALIC
Method Detail

values

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

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

valueOf

public static HUDFont.FontStyle 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

getAWTStyle

public final int getAWTStyle()

makeItalic

public final HUDFont.FontStyle makeItalic()

makeNonItalic

public final HUDFont.FontStyle makeNonItalic()

makeBold

public final HUDFont.FontStyle makeBold()

makeNonBold

public final HUDFont.FontStyle makeNonBold()

getFromAWTStyle

public static final HUDFont.FontStyle getFromAWTStyle(int awtStyle)