Class TimestampQueryBackedHistogram


  • public class TimestampQueryBackedHistogram
    extends IHistogram
    • 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
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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 class IHistogram
      • 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