Class AbstractPollingFunction

    • Field Detail

      • TIMER

        protected static final java.util.Timer TIMER
      • task

        protected java.util.TimerTask task
      • rate

        protected int rate
      • started

        protected boolean started
    • Constructor Detail

      • AbstractPollingFunction

        public AbstractPollingFunction()
    • Method Detail

      • startup

        public void startup()
        Description copied from class: BaseFunction
        Empty implementation from BaseFunction. Override if necessary.
        Specified by:
        startup in interface Function
        Overrides:
        startup in class BaseFunction
      • startTask

        protected void startTask()
      • cancelTask

        protected void cancelTask()
      • copy

        public abstract Function copy()
        Description copied from class: BaseFunction
        Returns this. Override to create a clone if you need a unique function object per Expression.
        Specified by:
        copy in interface Function
        Overrides:
        copy in class BaseFunction
      • setPollRate

        protected void setPollRate​(int rate)
        Updates the poll rate. If the rate is <= 0, polling is disabled.
      • actionPerformed

        public void actionPerformed​(java.awt.event.ActionEvent e)
        NOTE: This is in an "action listener" for legacy reasons, and doesn't need to be anymore. However, since we switched the timer in 7.7.6, we needed to maintain backwards compatibility with any sub classes that might override this function.
        Specified by:
        actionPerformed in interface java.awt.event.ActionListener