Package com.jidesoft.plaf.vsnet
Class VsnetMetalProgressBarUI
java.lang.Object
javax.swing.plaf.ComponentUI
javax.swing.plaf.ProgressBarUI
javax.swing.plaf.basic.BasicProgressBarUI
javax.swing.plaf.metal.MetalProgressBarUI
com.jidesoft.plaf.vsnet.VsnetMetalProgressBarUI
- All Implemented Interfaces:
ActionListener,EventListener
A better ProgressBarUI for indeterminate progress bar.
v * 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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidstatic ComponentUIprotected intReturns the desired number of milliseconds between repaints.protected voidstatic voidvoidprotected voidprotected voidMethods inherited from class javax.swing.plaf.metal.MetalProgressBarUI
paintDeterminateMethods inherited from class javax.swing.plaf.basic.BasicProgressBarUI
getAmountFull, getAnimationIndex, getBaseline, getBaselineResizeBehavior, getBox, getBoxLength, getCellLength, getCellSpacing, getFrameCount, getMaximumSize, getMinimumSize, getPreferredInnerHorizontal, getPreferredInnerVertical, getPreferredSize, getSelectionBackground, getSelectionForeground, getStringPlacement, incrementAnimationIndex, installListeners, installUI, paint, paintString, setAnimationIndex, setCellLength, setCellSpacing, uninstallDefaults, uninstallListeners, uninstallUIMethods inherited from class javax.swing.plaf.ComponentUI
contains, getAccessibleChild, getAccessibleChildrenCount, update
-
Constructor Details
-
VsnetMetalProgressBarUI
public VsnetMetalProgressBarUI()
-
-
Method Details
-
createUI
-
installDefaults
protected void installDefaults()- Overrides:
installDefaultsin classBasicProgressBarUI
-
startAnimationTimer
protected void startAnimationTimer()- Overrides:
startAnimationTimerin classBasicProgressBarUI
-
stopAnimationTimer
protected void stopAnimationTimer()- Overrides:
stopAnimationTimerin classBasicProgressBarUI
-
actionPerformed
- Specified by:
actionPerformedin interfaceActionListener
-
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
- Overrides:
paintIndeterminatein classMetalProgressBarUI
-
main
-