Class GUIRefreshThread

java.lang.Object
org.csstudio.opibuilder.util.GUIRefreshThread
All Implemented Interfaces:
Runnable

public final class GUIRefreshThread extends Object implements Runnable
A singleton back thread which will help to execute tasks for OPI GUI refreshing. This thread sleeps for a time which can be set in the preference page. It can help throttle the unnecessary repaint caused by fast PV value updating.
  • Method Details

    • getInstance

      public static GUIRefreshThread getInstance(boolean isRuntime)
      Gets the singleton instance.
      Returns:
      the singleton instance
    • reLoadGUIRefreshCycle

      public void reLoadGUIRefreshCycle()
      Reschedule this task upon the new GUI refresh cycle.
    • setGUIRefreshCycle

      public void setGUIRefreshCycle(int guiRefreshCycle)
      Set GUI Refresh Cycle. This should be temporarily used only. It must be reset by calling reLoadGUIRefreshCycle() to ensure consistency.
      Parameters:
      guiRefreshCycle -
    • getGUIRefreshCycle

      public int getGUIRefreshCycle()
    • run

      public void run()
      Specified by:
      run in interface Runnable
    • addIgnorableTask

      public void addIgnorableTask(WidgetIgnorableUITask task)
      Adds the specified runnable to the queue.
      Parameters:
      task - the ignorable UI task.