org.rrd4j.graph

## Class ValueScaler

- java.lang.Object
- - org.rrd4j.graph.ValueScaler

-     class ValueScaler
      extends Object

  Utility class for scaling values with appropriate units in RRD graphs. Handles automatic unit selection and value scaling for optimal display.

- - ### Nested Class Summary

    Nested Classes
    Modifier and Type | Class and Description
    --- | ---
    `(package private) static class` | `ValueScaler.Scaled` Represents a scaled value with its corresponding unit.

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `ValueScaler(double base)` Creates a new value scaler with the specified base.

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `(package private) ValueScaler.Scaled` | `scale(double value, boolean mustRescale)` Scales a value with appropriate unit selection.

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### ValueScaler

          ValueScaler(double base)

      Creates a new value scaler with the specified base.
      Parameters:
        `base` - the base for unit scaling (typically 1000 for SI units)

  - ### Method Detail

    - #### scale

          ValueScaler.Scaled scale(double value,
                                   boolean mustRescale)

      Scales a value with appropriate unit selection.
      Parameters:
        `value` - the value to scale
        `mustRescale` - if true, forces recalculation of scaling factors
      Returns:
        scaled value with unit