edu.stanford.hci.r3.units
Class PrinterDots
java.lang.Object
edu.stanford.hci.r3.units.Units
edu.stanford.hci.r3.units.PrinterDots
- All Implemented Interfaces:
- java.lang.Cloneable
public class PrinterDots
- extends Units
This software is distributed under the
BSD License.
Field Summary |
static Units |
ONE
An Identity Element, representing one printer dot of the default printer (at default DPI). |
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 |
ONE
public static final Units ONE
- An Identity Element, representing one printer dot of the default printer (at default DPI).
For convenience.
PrinterDots
public PrinterDots(double val)
- Create it for the current printer.
PrinterDots
public PrinterDots(Printer p,
double val)
- Parameters:
p
- val
- value of printer dots will represent a different physical length, depending on the
printer's DPI
getNumberOfUnitsInOneInch
protected double getNumberOfUnitsInOneInch()
- Specified by:
getNumberOfUnitsInOneInch
in class Units
- Returns:
- how many of these units fit in one inch.
- See Also:
Units.getNumberOfUnitsInOneInch()