Class ViewJSimpleProgressBar

All Implemented Interfaces:
ProgressBarInterface, ProgressChangeListener, ActionListener, WindowListener, ImageObserver, MenuContainer, Serializable, EventListener, Accessible, RootPaneContainer, WindowConstants

public class ViewJSimpleProgressBar extends ViewJProgressBar
Wraps the ViewJProgressBar instance which allows an arbitrary minimum and maximum value to be specified for the ends of the progress bar.
See Also:
  • Field Details

    • serialVersionUID

      private static final long serialVersionUID
      Use serialVersionUID for interoperability.
      See Also:
    • RESOLUTION

      private static final int RESOLUTION
      This is the actual resolution of progress bar which we will be using regardless of the actual range specified.
      See Also:
    • m_fRangeMax

      private float m_fRangeMax
      DOCUMENT ME!
    • m_fRangeMin

      private float m_fRangeMin
      Remember the range of input values for the progress bar. It is not required that the minimum be less than the maximum.
    • m_iLastValue

      private int m_iLastValue
      Remember the value passed to the setValue method of the JProgressBar. When valid, should be in range [0,RESOLUTION).
  • Constructor Details

    • ViewJSimpleProgressBar

      public ViewJSimpleProgressBar(String kTitle, String kDescription)
      Create a collection of controls for displaying progress.
      Parameters:
      kTitle - String which appears in the title bar of the frame.
      kDescription - String which appears in the description field.
  • Method Details

    • dispose

      public void dispose()
      Called to cleanup any dynamically allocated data members.
      Specified by:
      dispose in interface ProgressBarInterface
      Overrides:
      dispose in class Window
    • finalize

      public void finalize()
      Called by the garbage collector.
      Overrides:
      finalize in class Object
    • setRange

      public void setRange(int iMin, int iMax)
      Change the range of integral values for the progress bar. Also resets the current amount of progress to the minimum value specified, which is effectively 0% complete.
      Parameters:
      iMin - integer minimum limit for progress bar
      iMax - integer maximum limit for progress bar
    • setRange

      public void setRange(float fMin, float fMax)
      Change the range of floating point values for the progress bar. Also resets the current amount of progress to the minimum value specified, which is effectively 0% complete.
      Parameters:
      fMin - floating point minimum limit for progress bar
      fMax - floating point maximum limit for progress bar
    • setValue

      public void setValue(int iValue)
      Called to set the current progress bar indicator position.
      Parameters:
      iValue - integer which should be within the min/max limits of the progress bar previously specified with by calling setRange method.
    • setValue

      public void setValue(float fValue)
      Called to set the current progress bar indicator position.
      Parameters:
      fValue - floating point value which should be within the min/max limits of the progress bar previously specified with by calling setRange method.