Scale a value to between 0 and 1.
(double value)
| 604 | * Scale a value to between 0 and 1. |
| 605 | */ |
| 606 | public double scaleValue(double value) { |
| 607 | if (!isCalibrated) |
| 608 | calibrate(); |
| 609 | |
| 610 | double f=(transform(value)-transform(minAxis))/(transform(maxAxis)-transform(minAxis)); |
| 611 | return f; |
| 612 | } |
| 613 | |
| 614 | /** |
| 615 | * @return a DecimalFormat for formating the axis labels |