Class MemoryUsageAndHistoryMonitor.RepaintThread

java.lang.Object
java.lang.Thread
be.gaudry.swing.component.monitor.MemoryUsageAndHistoryMonitor.RepaintThread
All Implemented Interfaces:
Runnable
Enclosing class:
MemoryUsageAndHistoryMonitor

public static class MemoryUsageAndHistoryMonitor.RepaintThread extends Thread
This thread repaints a list of components.
  • Field Details

    • timeout

      protected long timeout
      The repaint timeout
    • components

      protected List<JComponent> components
      The components to repaint.
    • runtime

      protected Runtime runtime
      The runtime.
    • suspended

      protected boolean suspended
      Whether or not the thread was suspended.
  • Constructor Details

    • RepaintThread

      public RepaintThread(long timeout, List<JComponent> components)
      Creates a new Thread.
      Parameters:
      timeout - The time between two repaint in ms.
      components - The components to repaint.
  • Method Details

    • run

      public void run()
      The thread main method.
      Specified by:
      run in interface Runnable
      Overrides:
      run in class Thread
    • safeSuspend

      public void safeSuspend()
      Suspends the thread.
    • safeResume

      public void safeResume()
      Resumes the thread.