com.pcauto.util
Class DensityUnits
java.lang.Object
com.pcauto.util.Units
com.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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
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
getAll
public Units[] getAll()
- Specified by:
getAll
in class Units
convertFrom
public double convertFrom(double value,
Units srcUnits)
- Specified by:
convertFrom
in class Units