edu.stanford.hci.r3.units
Class Points
java.lang.Object
edu.stanford.hci.r3.units.Units
edu.stanford.hci.r3.units.Points
- All Implemented Interfaces:
- java.lang.Cloneable
public class Points
- extends Units
Represents 1/72 of an inch. This is also what Java2D uses as a default unit for printing to the
printer.
This software is distributed under the
BSD License.
Field Summary |
static Units |
ONE
The Identity Element; One Point, representing 1/72nd of an inch. |
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
- The Identity Element; One Point, representing 1/72nd of an inch.
Points
public Points()
Points
public Points(double pts)
- Parameters:
pts
-
getNumberOfUnitsInOneInch
protected double getNumberOfUnitsInOneInch()
- Specified by:
getNumberOfUnitsInOneInch
in class Units
- Returns:
- how many of these units fit in one inch.
- See Also:
Units.getNumberOfUnitsInOneInch()