Class VsnetProgressBarUI

All Implemented Interfaces:
ActionListener, EventListener

public class VsnetProgressBarUI extends BasicProgressBarUI implements ActionListener
A better ProgressBarUI for indeterminate progress bar.

v * Credit: This implementation is based on work from Santhosh Kumar - santhosh@in.fiorano.com.

  • Constructor Details

    • VsnetProgressBarUI

      public VsnetProgressBarUI()
  • Method Details

    • createUI

      public static ComponentUI createUI(JComponent x)
    • installDefaults

      protected void installDefaults()
      Overrides:
      installDefaults in class BasicProgressBarUI
    • startAnimationTimer

      protected void startAnimationTimer()
      Overrides:
      startAnimationTimer in class BasicProgressBarUI
    • stopAnimationTimer

      protected void stopAnimationTimer()
      Overrides:
      stopAnimationTimer in class BasicProgressBarUI
    • actionPerformed

      public void actionPerformed(ActionEvent ae)
      Specified by:
      actionPerformed in interface ActionListener
    • getRepaintInterval

      protected int getRepaintInterval()
      Returns the desired number of milliseconds between repaints. This value is meaningful only if the progress bar is in indeterminate mode. The repaint interval determines how often the default animation thread's timer is fired. It's also used by the default indeterminate progress bar painting code when determining how far to move the bouncing box per frame. The repaint interval is specified by the "ProgressBar.repaintInterval" UI default.
      Returns:
      the repaint interval, in milliseconds
    • paintIndeterminate

      public void paintIndeterminate(Graphics g, JComponent c)
      Overrides:
      paintIndeterminate in class BasicProgressBarUI