Class RovingProgress

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

public class RovingProgress extends JPanel implements Removable
Shows a roving bar
Version:
$Revision: 1.11 $ $Date: 2007/07/06 20:45:33 $
Author:
MetApps Development Team
See Also:
  • Field Details

    • DEFAULT_INSETS

      public static final Insets DEFAULT_INSETS
      Default insets
    • DEFAULT_COLOR

      public static final Color DEFAULT_COLOR
      Default color
  • Constructor Details

    • RovingProgress

      public RovingProgress(boolean showClock)
      _more_
      Parameters:
      showClock - _more_
    • RovingProgress

      public RovingProgress()
      ctor
    • RovingProgress

      public RovingProgress(String label)
      ctor
      Parameters:
      label - The label
    • RovingProgress

      public RovingProgress(Color c)
      ctor
      Parameters:
      c - Bar color
    • RovingProgress

      public RovingProgress(Color c, String label)
      ctor
      Parameters:
      c - color
      label - label
  • Method Details

    • setShowClock

      public void setShowClock(boolean showClock)
      _more_
      Parameters:
      showClock - _more_
    • stop

      public void stop()
      Stop running
    • doRemove

      public void doRemove()
      _more_
      Specified by:
      doRemove in interface Removable
    • start

      public void start()
      Start running
    • reset

      public void reset()
      Reset the state of the progress bar to the beginning
    • isRunning

      public boolean isRunning()
      Are we running
      Returns:
      is running
    • paint

      public final void paint(Graphics g)
      Paint
      Overrides:
      paint in class JComponent
      Parameters:
      g - The graphics
    • paintInner

      public void paintInner(Graphics g)
      paint
      Parameters:
      g - the graphics
    • drawFilledSquare

      public boolean drawFilledSquare()
      Should we draw a filled square
      Returns:
      draw filled square
    • paintLabel

      public void paintLabel(Graphics g, Rectangle bounds)
      Paint the label if its non-null
      Parameters:
      g - graphics
      bounds - component bounds
    • main

      public static void main(String[] args)
      test
      Parameters:
      args - cmd line args