Class MemoryMonitor.Surface

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Runnable, Accessible
Enclosing class:
MemoryMonitor

public class MemoryMonitor.Surface extends JPanel implements Runnable
Panel that samples the memory usage in a background thread and draws it. A mouse click starts or stops the sampling.
Author:
Andreas Enders
See Also:
  • Field Details

    • thread

      public Thread thread
      The sampling thread; null if sampling is stopped.
    • sleepAmount

      public long sleepAmount
      Sampling interval in milliseconds.
  • Constructor Details

    • Surface

      public Surface()
      Creates the surface. Sampling has to be started with start().
  • Method Details