/** * Calculates timestamps which correspond to individual pixels on the graph. * * @param pixelCount Graph width * @return Array of timestamps */ public long[] getTimestampsPerPixel(int pixelCount) { setPixelCount(pixelCount); return getTimestampsPerPixel(); }
/** * Method used to calculate datasource values which should be presented on the graph * based on the desired graph width. Each value returned represents a single pixel on the graph. * Corresponding timestamp can be found in the array returned from {@link #getTimestampsPerPixel()} * method. * * @param sourceName Datasource name * @param pixelCount Graph width * @return Per-pixel datasource values * @throws RrdException Thrown if datasource values are not yet calculated (method {@link #processData()} * was not called) */ public double[] getValuesPerPixel(String sourceName, int pixelCount) throws RrdException { setPixelCount(pixelCount); return getValuesPerPixel(sourceName); }
/** * Calculates timestamps which correspond to individual pixels on the graph. * * @param pixelCount Graph width * @return Array of timestamps */ public long[] getTimestampsPerPixel(int pixelCount) { setPixelCount(pixelCount); return getTimestampsPerPixel(); }
/** * Method used to calculate datasource values which should be presented on the graph * based on the desired graph width. Each value returned represents a single pixel on the graph. * Corresponding timestamp can be found in the array returned from {@link #getTimestampsPerPixel()} * method. * * @param sourceName Datasource name * @param pixelCount Graph width * @return Per-pixel datasource values * @throws RrdException Thrown if datasource values are not yet calculated (method {@link #processData()} * was not called) */ public double[] getValuesPerPixel(String sourceName, int pixelCount) throws RrdException { setPixelCount(pixelCount); return getValuesPerPixel(sourceName); }
dproc.setPixelCount(maxrows);