JIDE 3.5.15

com.jidesoft.plaf.vsnet
Class VsnetWindowsProgressBarUI

java.lang.Object
  extended by javax.swing.plaf.ComponentUI
      extended by javax.swing.plaf.ProgressBarUI
          extended by javax.swing.plaf.basic.BasicProgressBarUI
              extended by com.sun.java.swing.plaf.windows.WindowsProgressBarUI
                  extended by com.jidesoft.plaf.vsnet.VsnetWindowsProgressBarUI
All Implemented Interfaces:
ActionListener, EventListener

public class VsnetWindowsProgressBarUI
extends com.sun.java.swing.plaf.windows.WindowsProgressBarUI
implements ActionListener

A better ProgressBarUI for indeterminate progress bar.

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


Nested Class Summary
 
Nested classes/interfaces inherited from class javax.swing.plaf.basic.BasicProgressBarUI
BasicProgressBarUI.ChangeHandler
 
Field Summary
 
Fields inherited from class javax.swing.plaf.basic.BasicProgressBarUI
changeListener, progressBar
 
Constructor Summary
VsnetWindowsProgressBarUI()
           
 
Method Summary
 void actionPerformed(ActionEvent ae)
           
static ComponentUI createUI(JComponent x)
           
protected  int getRepaintInterval()
          Returns the desired number of milliseconds between repaints.
protected  void installDefaults()
           
static void main(String[] args)
           
 void paintIndeterminate(Graphics g, JComponent c)
           
protected  void startAnimationTimer()
           
protected  void stopAnimationTimer()
           
 
Methods inherited from class com.sun.java.swing.plaf.windows.WindowsProgressBarUI
getBaseline, getBox, getBoxLength, getPreferredInnerHorizontal, getPreferredInnerVertical, paintDeterminate, setAnimationIndex
 
Methods inherited from class javax.swing.plaf.basic.BasicProgressBarUI
getAmountFull, getAnimationIndex, getBaselineResizeBehavior, getCellLength, getCellSpacing, getFrameCount, getMaximumSize, getMinimumSize, getPreferredSize, getSelectionBackground, getSelectionForeground, getStringPlacement, incrementAnimationIndex, installListeners, installUI, paint, paintString, setCellLength, setCellSpacing, uninstallDefaults, uninstallListeners, uninstallUI
 
Methods inherited from class javax.swing.plaf.ComponentUI
contains, getAccessibleChild, getAccessibleChildrenCount, update
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VsnetWindowsProgressBarUI

public VsnetWindowsProgressBarUI()
Method Detail

createUI

public static ComponentUI createUI(JComponent x)

installDefaults

protected void installDefaults()
Overrides:
installDefaults in class com.sun.java.swing.plaf.windows.WindowsProgressBarUI

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 com.sun.java.swing.plaf.windows.WindowsProgressBarUI

main

public static void main(String[] args)

JIDE 3.5.15