edu.stanford.hci.r3.units
Class Millimeters

java.lang.Object
  extended by edu.stanford.hci.r3.units.Units
      extended by edu.stanford.hci.r3.units.Millimeters
All Implemented Interfaces:
java.lang.Cloneable

public class Millimeters
extends Units

This software is distributed under the BSD License.


Field Summary
static Units ONE
          Identity Element, representing one centimeter.
 
Fields inherited from class edu.stanford.hci.r3.units.Units
POINTS_PER_INCH
 
Constructor Summary
Millimeters()
          One Millimeter (quite short, you see).
Millimeters(double mm)
          Specify your own length in millimeters.
 
Method Summary
protected  double getNumberOfUnitsInOneInch()
           
 
Methods inherited from class edu.stanford.hci.r3.units.Units
add, clone, equals, getConversionTo, getCopy, getUnitName, getUnitsObjectOfSameLengthIn, getUnitsObjectOfSameTypeWithValue, getValue, getValueIn, getValueInCentimeters, getValueInInches, getValueInMillimeters, getValueInPatternDots, getValueInPixels, getValueInPoints, subtract, toInches, toPixels, toPoints, toString
 
Methods inherited from class java.lang.Object
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

ONE

public static final Units ONE
Identity Element, representing one centimeter.

Constructor Detail

Millimeters

public Millimeters()
One Millimeter (quite short, you see).


Millimeters

public Millimeters(double mm)
Specify your own length in millimeters.

Parameters:
mm -
Method Detail

getNumberOfUnitsInOneInch

protected double getNumberOfUnitsInOneInch()
Specified by:
getNumberOfUnitsInOneInch in class Units
Returns:
how many of these units fit in one inch.
See Also:
Units.getNumberOfUnitsInOneInch()

Copyright 2006 Stanford University