org.rrd4j.graph

## Class Mapper

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

-     class Mapper
      extends Object

  Maps data coordinates to pixel coordinates for RRD graph rendering. Handles conversion between time/value coordinates and screen pixel positions.

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `Mapper(RrdGraphDef gdef, ImageParameters im)` Creates a new mapper for the specified graph definition and image parameters.

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `(package private) int` | `xtr(double mytime)` Converts time coordinate to pixel x-coordinate.
    `(package private) int` | `ytr(double value)` Converts value coordinate to pixel y-coordinate.

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

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

- - ### Constructor Detail

    - #### Mapper

          Mapper(RrdGraphDef gdef,
                 ImageParameters im)

      Creates a new mapper for the specified graph definition and image parameters.
      Parameters:
        `gdef` - the graph definition containing scaling information
        `im` - the image parameters with dimensions and ranges

  - ### Method Detail

    - #### xtr

          int xtr(double mytime)

      Converts time coordinate to pixel x-coordinate.
      Parameters:
        `mytime` - timestamp in seconds
      Returns:
        x pixel position

    - #### ytr

          int ytr(double value)

      Converts value coordinate to pixel y-coordinate. Handles both linear and logarithmic scaling with rigid bounds.
      Parameters:
        `value` - data value to convert
      Returns:
        y pixel position