Inheritance diagram for Percentage:
Public Member Functions | |
Percentage (double percentage, Units maxValue) | |
Represents a percentage value of a maximum. | |
Units | getActualValue () |
Units | getMaximumValue () |
String | toString () |
Static Public Attributes | |
static final Units | ONE = new Percentage(100, new Inches(8.5)) |
"Identity Element", representing one hundred percent of 8.5 inches. | |
Protected Member Functions | |
Override double | getNumberOfUnitsInOneInch () |
This software is distributed under the BSD License.
Definition at line 15 of file Percentage.java.
Percentage | ( | double | percentage, | |
Units | maxValue | |||
) |
Represents a percentage value of a maximum.
Sometimes, it's easier to express a location of x,y=50%,50% on a sheet, especially if the sheet is later resized.
percentage | ||
maxValue |
Definition at line 40 of file Percentage.java.
References Units.getUnitsObjectOfSameTypeWithValue(), and Units.getValue().
Units getActualValue | ( | ) |
Units getMaximumValue | ( | ) |
Override double getNumberOfUnitsInOneInch | ( | ) | [protected, virtual] |
Implements Units.
Definition at line 65 of file Percentage.java.
References Units.getNumberOfUnitsInOneInch(), and Units.getValue().
String toString | ( | ) |
Reimplemented from Units.
Definition at line 79 of file Percentage.java.
References Units.getValue().
final Units ONE = new Percentage(100, new Inches(8.5)) [static] |
"Identity Element", representing one hundred percent of 8.5 inches.
Width of a US Letter-sized sheet.
Definition at line 21 of file Percentage.java.