edu.stanford.hci.r3.units
Class PatternDots

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

public class PatternDots
extends Units

Unit representing the length from pattern dot to pattern dot.

This software is distributed under the BSD License.


Field Summary
static java.text.DecimalFormat FORMATTER
          Prettifies printouts.
static Units ONE
          Identity Element representing one Pattern Dot.
 
Fields inherited from class edu.stanford.hci.r3.units.Units
POINTS_PER_INCH
 
Constructor Summary
PatternDots()
          Default Constructor for Doing unit conversions, etc...
PatternDots(double dots)
           
 
Method Summary
protected  double getNumberOfUnitsInOneInch()
          How many pattern dots per inch?
 java.lang.String toString()
           
 
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
 
Methods inherited from class java.lang.Object
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

FORMATTER

public static final java.text.DecimalFormat FORMATTER
Prettifies printouts.


ONE

public static final Units ONE
Identity Element representing one Pattern Dot.

Constructor Detail

PatternDots

public PatternDots()
Default Constructor for Doing unit conversions, etc...


PatternDots

public PatternDots(double dots)
Parameters:
dots -
Method Detail

getNumberOfUnitsInOneInch

protected double getNumberOfUnitsInOneInch()
How many pattern dots per inch?

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

toString

public java.lang.String toString()
Overrides:
toString in class Units
See Also:
Object.toString()

Copyright 2006 Stanford University