Class MemoryMonitor.RepaintThread

java.lang.Object
java.lang.Thread
org.apache.batik.util.gui.MemoryMonitor.RepaintThread
All Implemented Interfaces:
Runnable
Enclosing class:
MemoryMonitor

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

    • timeout

      protected long timeout
      The repaint timeout
    • components

      protected List components
      The components to repaint.
    • runtime

      protected Runtime runtime
      The runtime.
    • suspended

      protected boolean suspended
      Whether or not the thread was supended.
    • updateRunnable

      Runnable for updating components.
  • Constructor Details

    • RepaintThread

      public RepaintThread(long timeout, List 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
    • createUpdateRunnable

      protected MemoryMonitor.RepaintThread.UpdateRunnable createUpdateRunnable()
    • safeSuspend

      public void safeSuspend()
      Suspends the thread.
    • safeResume

      public void safeResume()
      Resumes the thread.