Package rma.util

Class MemProgressBar

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible, SwingConstants

public class MemProgressBar extends JProgressBar
Title: Memory Monitor progress bar Description: This is a progress bar that displays memory usage. From time to time this progress bar is updated.
See Also:
  • Constructor Details

    • MemProgressBar

      public MemProgressBar()
      Creates a new memory progress bar
  • Method Details

    • updateValues

      protected void updateValues()
      Updates the memory progress bar according to the current values of total and free memory
    • createUpdateTimer

      protected void createUpdateTimer(int millis)
      Sets an update timer for this memory progress bar
      Parameters:
      millis - the time between update intervals
    • setUpdateTime

      protected void setUpdateTime(int millis)
      Sets the time (in milliseconds) after which the progress bar is updated
      Parameters:
      millis - The new UpdateTime value
    • getUpdateTime

      protected int getUpdateTime()
      Returns the time (in milliseconds) after which the progress bar is updated
      Returns:
      The UpdateTime value
    • isActive

      public boolean isActive()
      Returns true if this progress bar is automatically updated
      Returns:
      The Active value
    • setActive

      public void setActive(boolean active)
      Sets this progress bar to be automatically updated
      Parameters:
      active - The new Active value