Class AbstractCalculatedPenDatasource

java.lang.Object
com.inductiveautomation.factorypmi.application.components.chart.easychart.AbstractCalculatedPenDatasource
All Implemented Interfaces:
IPenDatasource
Direct Known Subclasses:
AbstractFunctionPenDatasource, ConstantPenDatasource

public class AbstractCalculatedPenDatasource extends Object implements IPenDatasource
  • Field Details

  • Constructor Details

    • AbstractCalculatedPenDatasource

      protected AbstractCalculatedPenDatasource()
  • Method Details

    • addPen

      public void addPen(PenData pen)
      Description copied from interface: IPenDatasource
      Adds a pen to this datasource. All pens will be added before startup() is called for the first time.
      Specified by:
      addPen in interface IPenDatasource
    • getDataset

      public Dataset getDataset()
      Description copied from interface: IPenDatasource
      The underlying dataset that drives this datasource
      Specified by:
      getDataset in interface IPenDatasource
    • setDataset

      protected void setDataset(Dataset dataset)
    • setDatasetLater

      protected void setDatasetLater(Dataset dataset)
    • getNumDatapoints

      public int getNumDatapoints()
      Description copied from interface: IPenDatasource
      Return the number of datapoints currently loaded in this source
      Specified by:
      getNumDatapoints in interface IPenDatasource
    • getMillisRange

      protected long getMillisRange(PenData source)
      Returns the range of millis between the first and last points in the given pen dataset
    • initRefs

      public void initRefs(Map<String,PenData> allPens)
      Description copied from interface: IPenDatasource
      Gives the datasource a chance to install references to other pens
      Specified by:
      initRefs in interface IPenDatasource
    • shutdown

      public void shutdown()
      Description copied from interface: IPenDatasource
      Shuts this datasoure down, if it has re-occurring activity.
      Specified by:
      shutdown in interface IPenDatasource
    • startup

      public void startup(PMIEasyChart chart)
      Description copied from interface: IPenDatasource
      Start this datasouce up. This should certainly mean that the data gets generated at least once, and possibly more based upon the chart's polling settings. May be called again after shutdown().
      Specified by:
      startup in interface IPenDatasource
    • warn

      protected void warn(String msg)
    • isZoomTracking

      public boolean isZoomTracking()
      Description copied from interface: IPenDatasource
      True if this datasource should be restarted when the zoom level changes.
      Specified by:
      isZoomTracking in interface IPenDatasource