Class TimestampQueryBackedHistogram
- java.lang.Object
-
- com.inductiveautomation.factorypmi.application.components.chart.easychart.IHistogram
-
- com.inductiveautomation.factorypmi.application.components.chart.easychart.TimestampQueryBackedHistogram
-
public class TimestampQueryBackedHistogram extends IHistogram
-
-
Constructor Summary
Constructors Constructor Description TimestampQueryBackedHistogram(Dataset density)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description float[]
createHistogramArray(long startDate, long endDate, int width)
Create an array of floats 0.0-1.0 representing the histogram between the two dates.protected java.util.Date
getDensityDate(int row, int column)
Java isn't always clear on whether the density dataset has strings that look like dates or dates that are stored as strings.-
Methods inherited from class com.inductiveautomation.factorypmi.application.components.chart.easychart.IHistogram
widthToDate
-
-
-
-
Constructor Detail
-
TimestampQueryBackedHistogram
public TimestampQueryBackedHistogram(Dataset density)
-
-
Method Detail
-
createHistogramArray
public float[] createHistogramArray(long startDate, long endDate, int width)
Description copied from class:IHistogram
Create an array of floats 0.0-1.0 representing the histogram between the two dates. The array should have a length of width, exactly, or may be null if no histogram data is available for that timeframe.- Specified by:
createHistogramArray
in classIHistogram
-
getDensityDate
protected java.util.Date getDensityDate(int row, int column)
Java isn't always clear on whether the density dataset has strings that look like dates or dates that are stored as strings. Helper function to avoid ClassCastException
-
-