class ValueScaler extends Object
| Modifier and Type | Class and Description |
|---|---|
(package private) static class | ValueScaler.ScaledRepresents a scaled value with its corresponding unit. |
| Constructor and Description |
|---|
ValueScaler(double base)Creates a new value scaler with the specified base. |
| Modifier and Type | Method and Description |
|---|---|
(package private) ValueScaler.Scaled | scale(double value,
boolean mustRescale)Scales a value with appropriate unit selection. |
ValueScaler(double base)
base - the base for unit scaling (typically 1000 for SI units)ValueScaler.Scaled scale(double value, boolean mustRescale)
value - the value to scalemustRescale - if true, forces recalculation of scaling factors