Inheritance diagram for PercentageCoordinates:

Public Member Functions | |
| PercentageCoordinates (Percentage pctInX, Percentage pctInY) | |
| Units | getActualValueInXDirection () |
| Units | getActualValueInYDirection () |
| double | getPercentageInXDirection () |
| Not as useful as the actual value, because of the aspect ratio of the sheet/region. | |
| double | getPercentageInYDirection () |
| void | setX (Units xCoord) |
| Verifies that the passed-in unit is in fact of the right type! | |
| void | setY (Units yCoord) |
| Verifies that the passed-in unit is in fact of the right type! | |
| String | toString () |
This software is distributed under the BSD License.
Definition at line 18 of file PercentageCoordinates.java.
| PercentageCoordinates | ( | Percentage | pctInX, | |
| Percentage | pctInY | |||
| ) |
| Units getActualValueInXDirection | ( | ) |
Definition at line 31 of file PercentageCoordinates.java.
References Coordinates.x.
Referenced by GestureHandler.handleEvent().
| Units getActualValueInYDirection | ( | ) |
Definition at line 38 of file PercentageCoordinates.java.
References Coordinates.y.
Referenced by GestureHandler.handleEvent().
| double getPercentageInXDirection | ( | ) |
Not as useful as the actual value, because of the aspect ratio of the sheet/region.
If it's a wide sheet, 50% is a lot bigger in X than it is in Y.
Definition at line 48 of file PercentageCoordinates.java.
References Units.getValue(), and Coordinates.x.
Referenced by RegionComponent.RegionComponent().
| double getPercentageInYDirection | ( | ) |
Definition at line 55 of file PercentageCoordinates.java.
References Units.getValue(), and Coordinates.y.
Referenced by RegionComponent.RegionComponent().
| void setX | ( | Units | xCoord | ) |
Verifies that the passed-in unit is in fact of the right type!
| xCoord |
Reimplemented from Coordinates.
Definition at line 65 of file PercentageCoordinates.java.
References Coordinates.x.
| void setY | ( | Units | yCoord | ) |
Verifies that the passed-in unit is in fact of the right type!
| yCoord |
Reimplemented from Coordinates.
Definition at line 80 of file PercentageCoordinates.java.
References Coordinates.y.
| String toString | ( | ) |
Reimplemented from Coordinates.
Definition at line 92 of file PercentageCoordinates.java.
References Units.toString(), Coordinates.x, and Coordinates.y.
1.4.7