com.l2fprod.gui.plaf.skin.impl
Class AbstractSkinProgress

java.lang.Object
  extended by com.l2fprod.gui.plaf.skin.impl.AbstractSkinComponent
      extended by com.l2fprod.gui.plaf.skin.impl.AbstractSkinProgress
All Implemented Interfaces:
SkinComponent, SkinProgress

public abstract class AbstractSkinProgress
extends AbstractSkinComponent
implements SkinProgress

Version:
$Revision: 1.4 $, $Date: 2005/10/09 13:36:38 $
Author:
$Author: l2fprod $ @created 27 avril 2002

Field Summary
protected  java.awt.Dimension minimumSize
           
protected  int orientation
           
protected  DefaultButton progressBarBackHorizontal
           
protected  DefaultButton progressBarBackVertical
           
protected  DefaultButton progressBarHorizontal
           
protected  DefaultButton progressBarVertical
           
protected  boolean useWindow
          Set UIManager.put("ProgressBar.windowAnimation", Boolean.TRUE) to use the window painting mode if the progress bar is inderterminate.
 
Constructor Summary
AbstractSkinProgress()
           
 
Method Summary
 java.awt.Dimension getMinimumSize(javax.swing.JProgressBar progress)
          Gets the MinimumSize attribute of the AbstractSkinProgress object
 boolean installSkin(javax.swing.JComponent c)
          Description of the Method
protected  void paintBackBar(java.awt.Graphics g, javax.swing.JProgressBar progress)
           
 boolean paintIndeterminateProgress(java.awt.Graphics g, javax.swing.JProgressBar progress, java.awt.Rectangle rec)
           
 boolean paintProgress(java.awt.Graphics g, javax.swing.JProgressBar progress)
          Description of the Method
 boolean status()
          Description of the Method
 
Methods inherited from class com.l2fprod.gui.plaf.skin.impl.AbstractSkinComponent
getSkin, uninstallSkin
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.l2fprod.gui.plaf.skin.SkinComponent
uninstallSkin
 

Field Detail

progressBarBackHorizontal

protected DefaultButton progressBarBackHorizontal

progressBarHorizontal

protected DefaultButton progressBarHorizontal

progressBarBackVertical

protected DefaultButton progressBarBackVertical

progressBarVertical

protected DefaultButton progressBarVertical

orientation

protected int orientation

minimumSize

protected final java.awt.Dimension minimumSize

useWindow

protected boolean useWindow
Set UIManager.put("ProgressBar.windowAnimation", Boolean.TRUE) to use the window painting mode if the progress bar is inderterminate.

Constructor Detail

AbstractSkinProgress

public AbstractSkinProgress()
Method Detail

getMinimumSize

public final java.awt.Dimension getMinimumSize(javax.swing.JProgressBar progress)
Gets the MinimumSize attribute of the AbstractSkinProgress object

Specified by:
getMinimumSize in interface SkinProgress
Parameters:
progress - Description of Parameter
Returns:
The MinimumSize value

status

public final boolean status()
Description of the Method

Specified by:
status in interface SkinComponent
Overrides:
status in class AbstractSkinComponent
Returns:
Description of the Returned Value

installSkin

public final boolean installSkin(javax.swing.JComponent c)
Description of the Method

Specified by:
installSkin in interface SkinComponent
Overrides:
installSkin in class AbstractSkinComponent
Parameters:
c - Description of Parameter
Returns:
Description of the Returned Value

paintBackBar

protected final void paintBackBar(java.awt.Graphics g,
                                  javax.swing.JProgressBar progress)

paintProgress

public final boolean paintProgress(java.awt.Graphics g,
                                   javax.swing.JProgressBar progress)
Description of the Method

Specified by:
paintProgress in interface SkinProgress
Parameters:
g - Description of Parameter
progress - Description of Parameter
Returns:
Description of the Returned Value

paintIndeterminateProgress

public final boolean paintIndeterminateProgress(java.awt.Graphics g,
                                                javax.swing.JProgressBar progress,
                                                java.awt.Rectangle rec)
Specified by:
paintIndeterminateProgress in interface SkinProgress