Class AbstractCalculatedPenDatasource

    • Constructor Detail

      • AbstractCalculatedPenDatasource

        protected AbstractCalculatedPenDatasource()
    • Method Detail

      • 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
      • 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​(java.util.Map<java.lang.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​(java.lang.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