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 Details

    • TimestampQueryBackedHistogram

      public TimestampQueryBackedHistogram(Dataset density)
  • Method Details

    • 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 class IHistogram
    • getDensityDate

      protected 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