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:
java.awt.event.ActionListener
,java.util.EventListener
public class VsnetMetalProgressBarUI extends javax.swing.plaf.metal.MetalProgressBarUI implements java.awt.event.ActionListener
A better ProgressBarUI for indeterminate progress bar. v * Credit: This implementation is based on work from Santhosh Kumar - santhosh@in.fiorano.com.
-
-
Constructor Summary
Constructors Constructor Description VsnetMetalProgressBarUI()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
actionPerformed(java.awt.event.ActionEvent ae)
static javax.swing.plaf.ComponentUI
createUI(javax.swing.JComponent x)
protected int
getRepaintInterval()
Returns the desired number of milliseconds between repaints.protected void
installDefaults()
static void
main(java.lang.String[] args)
void
paintIndeterminate(java.awt.Graphics g, javax.swing.JComponent c)
protected void
startAnimationTimer()
protected void
stopAnimationTimer()
-
Methods 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, uninstallUI
-
-
-
-
Method Detail
-
createUI
public static javax.swing.plaf.ComponentUI createUI(javax.swing.JComponent x)
-
installDefaults
protected void installDefaults()
- Overrides:
installDefaults
in classjavax.swing.plaf.basic.BasicProgressBarUI
-
startAnimationTimer
protected void startAnimationTimer()
- Overrides:
startAnimationTimer
in classjavax.swing.plaf.basic.BasicProgressBarUI
-
stopAnimationTimer
protected void stopAnimationTimer()
- Overrides:
stopAnimationTimer
in classjavax.swing.plaf.basic.BasicProgressBarUI
-
actionPerformed
public void actionPerformed(java.awt.event.ActionEvent ae)
- Specified by:
actionPerformed
in interfacejava.awt.event.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(java.awt.Graphics g, javax.swing.JComponent c)
- Overrides:
paintIndeterminate
in classjavax.swing.plaf.metal.MetalProgressBarUI
-
main
public static void main(java.lang.String[] args)
-
-