Class DynamicTimeSeriesChart

java.lang.Object
java.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JPanel
com.inductiveautomation.ignition.client.util.gui.diagnostics.DynamicTimeSeriesChart
All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible

public class DynamicTimeSeriesChart extends JPanel
See Also:
  • Field Details

  • Constructor Details

    • DynamicTimeSeriesChart

      public DynamicTimeSeriesChart(String domainLabel, String rangeLabel, int chartHeight)
      Parameters:
      domainLabel - X axis
      rangeLabel - Y axis
      chartHeight - height of the chart
    • DynamicTimeSeriesChart

      public DynamicTimeSeriesChart(int chartType, String domainLabel, String rangeLabel, int chartHeight)
      Parameters:
      chartType - DynamicTimeSeriesChart.REGULAR_CHART or DynamicTimeSeriesChart.METRIC_CHART. The metric chart holds a total count of all data points, whereas the regular chart does not have a total count.
      domainLabel - X axis
      rangeLabel - Y axis
      chartHeight - height of the chart
    • DynamicTimeSeriesChart

      public DynamicTimeSeriesChart(int chartType, String domainLabel, String rangeLabel, int chartHeight, String decimalFormatStr)
      Parameters:
      chartType - DynamicTimeSeriesChart.REGULAR_CHART or DynamicTimeSeriesChart.METRIC_CHART. The metric chart holds a total count of all data points, whereas the regular chart does not have a total count.
      domainLabel - X axis
      rangeLabel - Y axis
      chartHeight - height of the chart
      decimalFormatStr - decimal format string
  • Method Details

    • addTimeSeries

      public void addTimeSeries(String name, Class cls, int maxItemCount, boolean ms)
    • addValueToSeries

      public void addValueToSeries(String key, double newValue, org.jfree.data.time.RegularTimePeriod period)
    • addMetricToSeries

      public void addMetricToSeries(String key, StatMetric metric, org.jfree.data.time.RegularTimePeriod period)
    • getDomainLabel

      public String getDomainLabel()
    • getRangeLabel

      public String getRangeLabel()
    • getChartLabel

      public com.inductiveautomation.ignition.client.util.gui.diagnostics.DynamicTimeSeriesChart.ChartLabel getChartLabel()
    • getCurrentLabel

      public com.inductiveautomation.ignition.client.util.gui.diagnostics.DynamicTimeSeriesChart.ChartLabel getCurrentLabel()
    • getHitsLabel

      public com.inductiveautomation.ignition.client.util.gui.diagnostics.DynamicTimeSeriesChart.ChartLabel getHitsLabel()
    • getDurLabel

      public com.inductiveautomation.ignition.client.util.gui.diagnostics.DynamicTimeSeriesChart.ChartLabel getDurLabel()