org.pz.platypus
Enum UnitType

java.lang.Object
  extended by java.lang.Enum<UnitType>
      extended by org.pz.platypus.UnitType
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<UnitType>

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

The various kinds of units that can be used in Platypus. ERROR, NONE, and UNKNOWN are obviously for internal purposes only.

Author:
alb

Enum Constant Summary
CM
           
ERROR
           
INCH
           
LINE
           
NONE
           
PIXEL
           
POINT
           
UNKNOWN
           
 
Method Summary
static UnitType valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static UnitType[] 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

CM

public static final UnitType CM

ERROR

public static final UnitType ERROR

INCH

public static final UnitType INCH

LINE

public static final UnitType LINE

NONE

public static final UnitType NONE

PIXEL

public static final UnitType PIXEL

POINT

public static final UnitType POINT

UNKNOWN

public static final UnitType UNKNOWN
Method Detail

values

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

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

valueOf

public static UnitType 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 © 2008-10 Pacific Data Works LLC