org.reprap.gui
Enum Category

java.lang.Object
  extended by java.lang.Enum<Category>
      extended by org.reprap.gui.Category
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<Category>

 enum Category
extends java.lang.Enum<Category>

This reads in the preferences file and constructs a set of menus from it to allow entries to be edited. Preference keys either start with the string "Extruder" followed by a number and an underscore (that is, they look like "Extruder3_temp(C)") in which case they are assumed to be a characteristic of the extruder with that number; or they don't, in which case they are assumed to be global characteristics of the entire machine. The keys should end with their dimensions: "Extruder3_temp(C)", "Axis2Scale(steps/mm)", but regrettably can't contain un-escaped space characters (see java.util.Properties). Some weak type checking is done to prevent obvious crassness being put in the edit boxes. This is done at save time and prevents the junk being written, but doesn't give a chance to correct it. Extensively adapted from Simon's old version by Adrian to construct itself from the preferences file.


Enum Constant Summary
bool
           
number
           
string
           
 
Method Summary
static Category valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static Category[] 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

number

public static final Category number

string

public static final Category string

bool

public static final Category bool
Method Detail

values

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

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

valueOf

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