com.pcauto.util
Class DensityUnits

java.lang.Object
  extended bycom.pcauto.util.Units
      extended bycom.pcauto.util.DensityUnits
All Implemented Interfaces:
java.io.Serializable

public final class DensityUnits
extends Units

Used Java typesafe enum pattern to port C++ enum. See http://developer.java.sun.com/developer/Books/shiftintojava/page1.html#replaceenums.

See Also:
Serialized Form

Field Summary
static DensityUnits[] ALL
           
static DensityUnits CHARS_CENTIMETRE
           
static DensityUnits CHARS_INCH
           
static DensityUnits LINES_CENTIMETRE
           
static DensityUnits LINES_INCH
           
static DensityUnits NONE
           
static DensityUnits POINTS_CHAR
           
static DensityUnits POINTS_LINE
           
 
Fields inherited from class com.pcauto.util.Units
desc, id, str
 
Method Summary
 double convertFrom(double value, Units srcUnits)
           
 Units[] getAll()
           
 
Methods inherited from class com.pcauto.util.Units
getDesc, getId, getString, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

NONE

public static final DensityUnits NONE

CHARS_INCH

public static final DensityUnits CHARS_INCH

CHARS_CENTIMETRE

public static final DensityUnits CHARS_CENTIMETRE

LINES_INCH

public static final DensityUnits LINES_INCH

LINES_CENTIMETRE

public static final DensityUnits LINES_CENTIMETRE

POINTS_CHAR

public static final DensityUnits POINTS_CHAR

POINTS_LINE

public static final DensityUnits POINTS_LINE

ALL

public static final DensityUnits[] ALL
Method Detail

getAll

public Units[] getAll()
Specified by:
getAll in class Units

convertFrom

public double convertFrom(double value,
                          Units srcUnits)
Specified by:
convertFrom in class Units