com.alee.laf.progressbar
Class WebProgressBarUI

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.alee.laf.progressbar.WebProgressBarUI
All Implemented Interfaces:
ShapeProvider, BorderMethods, SwingMethods

public class WebProgressBarUI
extends javax.swing.plaf.basic.BasicProgressBarUI
implements ShapeProvider, BorderMethods

User: mgarin Date: 28.04.11 Time: 15:05


Nested Class Summary
 
Nested classes/interfaces inherited from class javax.swing.plaf.basic.BasicProgressBarUI
javax.swing.plaf.basic.BasicProgressBarUI.ChangeHandler
 
Field Summary
 
Fields inherited from class javax.swing.plaf.basic.BasicProgressBarUI
boxRect, changeListener, progressBar
 
Constructor Summary
WebProgressBarUI()
           
 
Method Summary
static javax.swing.plaf.ComponentUI createUI(javax.swing.JComponent c)
           
 java.awt.Color getBgBottom()
           
 java.awt.Color getBgTop()
           
 java.awt.Color getHighlightDarkWhite()
           
 java.awt.Color getHighlightWhite()
           
 java.awt.Color getIndeterminateBorder()
           
 int getInnerRound()
           
protected  java.awt.Dimension getPreferredInnerHorizontal()
           
protected  java.awt.Dimension getPreferredInnerVertical()
           
 int getPreferredProgressWidth()
           
 java.awt.Color getProgressBottomColor()
           
 java.awt.Color getProgressTopColor()
           
 int getRound()
           
 int getShadeWidth()
           
 void installUI(javax.swing.JComponent c)
           
 boolean isPaintIndeterminateBorder()
           
 void paint(java.awt.Graphics g, javax.swing.JComponent c)
           
protected  void paintDeterminate(java.awt.Graphics g, javax.swing.JComponent c)
           
protected  void paintIndeterminate(java.awt.Graphics g, javax.swing.JComponent c)
           
 java.awt.Shape provideShape()
          Returns component shape.
 void setBgBottom(java.awt.Color bgBottom)
           
 void setBgTop(java.awt.Color bgTop)
           
 void setHighlightDarkWhite(java.awt.Color highlightDarkWhite)
           
 void setHighlightWhite(java.awt.Color highlightWhite)
           
 void setIndeterminateBorder(java.awt.Color indeterminateBorder)
           
 void setInnerRound(int innerRound)
           
 void setPaintIndeterminateBorder(boolean paintIndeterminateBorder)
           
 void setPreferredProgressWidth(int preferredProgressWidth)
           
 void setProgressBottomColor(java.awt.Color progressBottomColor)
           
 void setProgressTopColor(java.awt.Color progressTopColor)
           
 void setRound(int round)
           
 void setShadeWidth(int shadeWidth)
           
 void uninstallUI(javax.swing.JComponent c)
           
 void updateBorder()
          Updates custom WebLaF border.
 
Methods inherited from class javax.swing.plaf.basic.BasicProgressBarUI
getAmountFull, getAnimationIndex, getBaseline, getBaselineResizeBehavior, getBox, getBoxLength, getCellLength, getCellSpacing, getFrameCount, getMaximumSize, getMinimumSize, getPreferredSize, getSelectionBackground, getSelectionForeground, getStringPlacement, incrementAnimationIndex, installDefaults, installListeners, paintString, setAnimationIndex, setCellLength, setCellSpacing, startAnimationTimer, stopAnimationTimer, uninstallDefaults, uninstallListeners
 
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

WebProgressBarUI

public WebProgressBarUI()
Method Detail

createUI

public static javax.swing.plaf.ComponentUI createUI(javax.swing.JComponent c)

installUI

public void installUI(javax.swing.JComponent c)
Overrides:
installUI in class javax.swing.plaf.basic.BasicProgressBarUI

uninstallUI

public void uninstallUI(javax.swing.JComponent c)
Overrides:
uninstallUI in class javax.swing.plaf.basic.BasicProgressBarUI

updateBorder

public void updateBorder()
Updates custom WebLaF border.

Specified by:
updateBorder in interface BorderMethods

getRound

public int getRound()

setRound

public void setRound(int round)

getInnerRound

public int getInnerRound()

setInnerRound

public void setInnerRound(int innerRound)

getShadeWidth

public int getShadeWidth()

setShadeWidth

public void setShadeWidth(int shadeWidth)

isPaintIndeterminateBorder

public boolean isPaintIndeterminateBorder()

setPaintIndeterminateBorder

public void setPaintIndeterminateBorder(boolean paintIndeterminateBorder)

getPreferredProgressWidth

public int getPreferredProgressWidth()

setPreferredProgressWidth

public void setPreferredProgressWidth(int preferredProgressWidth)

getBgTop

public java.awt.Color getBgTop()

setBgTop

public void setBgTop(java.awt.Color bgTop)

getBgBottom

public java.awt.Color getBgBottom()

setBgBottom

public void setBgBottom(java.awt.Color bgBottom)

getProgressTopColor

public java.awt.Color getProgressTopColor()

setProgressTopColor

public void setProgressTopColor(java.awt.Color progressTopColor)

getProgressBottomColor

public java.awt.Color getProgressBottomColor()

setProgressBottomColor

public void setProgressBottomColor(java.awt.Color progressBottomColor)

getIndeterminateBorder

public java.awt.Color getIndeterminateBorder()

setIndeterminateBorder

public void setIndeterminateBorder(java.awt.Color indeterminateBorder)

getHighlightWhite

public java.awt.Color getHighlightWhite()

setHighlightWhite

public void setHighlightWhite(java.awt.Color highlightWhite)

getHighlightDarkWhite

public java.awt.Color getHighlightDarkWhite()

setHighlightDarkWhite

public void setHighlightDarkWhite(java.awt.Color highlightDarkWhite)

provideShape

public java.awt.Shape provideShape()
Description copied from interface: ShapeProvider
Returns component shape.

Specified by:
provideShape in interface ShapeProvider
Returns:
component shape

getPreferredInnerHorizontal

protected java.awt.Dimension getPreferredInnerHorizontal()
Overrides:
getPreferredInnerHorizontal in class javax.swing.plaf.basic.BasicProgressBarUI

getPreferredInnerVertical

protected java.awt.Dimension getPreferredInnerVertical()
Overrides:
getPreferredInnerVertical in class javax.swing.plaf.basic.BasicProgressBarUI

paint

public void paint(java.awt.Graphics g,
                  javax.swing.JComponent c)
Overrides:
paint in class javax.swing.plaf.basic.BasicProgressBarUI

paintIndeterminate

protected void paintIndeterminate(java.awt.Graphics g,
                                  javax.swing.JComponent c)
Overrides:
paintIndeterminate in class javax.swing.plaf.basic.BasicProgressBarUI

paintDeterminate

protected void paintDeterminate(java.awt.Graphics g,
                                javax.swing.JComponent c)
Overrides:
paintDeterminate in class javax.swing.plaf.basic.BasicProgressBarUI