java.lang.Object
org.rrd4j.graph.PathIterator

class PathIteratorextends Object
Iterator for processing paths in RRD graph rendering. Handles segmentation of data arrays into continuous paths, skipping NaN values.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private int
    Current position in the array
    private final double[]
    Array of y-coordinate values to iterate through
  • Constructor Summary

    Constructors
    Constructor
    Description
    PathIterator(double[] y)
    Creates a path iterator for the specified y-coordinate array.
  • Method Summary

    All Methods
    Modifier and Type
    Method
    Description
    (package private) int[]
    Gets the next continuous path segment from the data.

    Methods inherited from class Object

    clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • y

      private final double[] y
      Array of y-coordinate values to iterate through
    • pos

      private int pos
      Current position in the array
  • Constructor Details

    • PathIterator

      PathIterator(double[] y)
      Creates a path iterator for the specified y-coordinate array.
      Parameters:
      y - array of y-coordinate values
  • Method Details

    • getNextPath

      int[] getNextPath()
      Gets the next continuous path segment from the data. Skips NaN values and returns start/end indices of valid segments.
      Returns:
      array with [start, end] indices, or null if no more paths