org.xith3d.ui.hud.utils
Enum HUDUnitsMeasurement

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

public enum HUDUnitsMeasurement
extends java.lang.Enum<HUDUnitsMeasurement>

Units meaturements on the HUD


Enum Constant Summary
HUD
          Meaturement in local HUD coordinates (or WidgetContainer coordinates)
PIXELS
          Meaturement in pixels
SCENEGRAPH
          Meaturement in Xith3D coordinates (-1.0 to 1.0 for the x-axis)
 
Method Summary
static HUDUnitsMeasurement valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static HUDUnitsMeasurement[] 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

HUD

public static final HUDUnitsMeasurement HUD
Meaturement in local HUD coordinates (or WidgetContainer coordinates)


PIXELS

public static final HUDUnitsMeasurement PIXELS
Meaturement in pixels


SCENEGRAPH

public static final HUDUnitsMeasurement SCENEGRAPH
Meaturement in Xith3D coordinates (-1.0 to 1.0 for the x-axis)

Method Detail

values

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

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

valueOf

public static HUDUnitsMeasurement 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