java.lang.Object
org.rrd4j.graph.PathIterator
Iterator for processing paths in RRD graph rendering. Handles segmentation of data arrays into continuous paths, skipping NaN values.
Field Summary
Constructor Summary
ConstructorsConstructorDescriptionPathIterator(double[] y) Creates a path iterator for the specified y-coordinate array.Method Summary
All MethodsModifier and TypeMethodDescription(package private) int[]Gets the next continuous path segment from the data.
Field Details
y
private final double[] yArray of y-coordinate values to iterate throughpos
private int posCurrent 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