org.jdesktop.swingx.painter
Class BusyPainter<T>

java.lang.Object
  extended by org.jdesktop.beans.AbstractBean
      extended by org.jdesktop.swingx.painter.AbstractPainter<T>
          extended by org.jdesktop.swingx.painter.BusyPainter<T>
All Implemented Interfaces:
Painter<T>

public class BusyPainter<T>
extends AbstractPainter<T>

A specific painter that paints an "infinite progress" like animation.


Nested Class Summary
 
Nested classes/interfaces inherited from class org.jdesktop.swingx.painter.AbstractPainter
AbstractPainter.Interpolation
 
Constructor Summary
BusyPainter()
           
 
Method Summary
protected  void doPaint(Graphics2D g, T t, int width, int height)
          Subclasses must implement this method and perform custom painting operations here.
 float getBarLength()
           
 float getBarWidth()
           
 Color getBaseColor()
           
 float getCenterDistance()
           
 int getFrame()
           
 Color getHighlightColor()
           
 int getPoints()
           
 int getTrailLength()
           
 void setBarLength(float barLength)
           
 void setBarWidth(float barWidth)
           
 void setBaseColor(Color baseColor)
           
 void setCenterDistance(float centerDistance)
           
 void setFrame(int frame)
           
 void setHighlightColor(Color highlightColor)
           
 void setPoints(int points)
           
 void setTrailLength(int trailLength)
           
 
Methods inherited from class org.jdesktop.swingx.painter.AbstractPainter
clearCache, configureGraphics, getFilters, getInterpolation, isAntialiasing, isCacheable, isDirty, isVisible, paint, setAntialiasing, setCacheable, setDirty, setFilters, setInterpolation, setVisible, shouldUseCache, validate
 
Methods inherited from class org.jdesktop.beans.AbstractBean
addPropertyChangeListener, addPropertyChangeListener, addVetoableChangeListener, addVetoableChangeListener, clone, fireIndexedPropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, fireVetoableChange, getPropertyChangeListeners, getPropertyChangeListeners, getVetoableChangeListeners, getVetoableChangeListeners, hasPropertyChangeListeners, hasVetoableChangeListeners, removePropertyChangeListener, removePropertyChangeListener, removeVetoableChangeListener, removeVetoableChangeListener
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BusyPainter

public BusyPainter()
Method Detail

doPaint

protected void doPaint(Graphics2D g,
                       T t,
                       int width,
                       int height)
Description copied from class: AbstractPainter
Subclasses must implement this method and perform custom painting operations here.

Specified by:
doPaint in class AbstractPainter<T>
Parameters:
g - The Graphics2D object in which to paint

getFrame

public int getFrame()

setFrame

public void setFrame(int frame)

getBaseColor

public Color getBaseColor()

setBaseColor

public void setBaseColor(Color baseColor)

getHighlightColor

public Color getHighlightColor()

setHighlightColor

public void setHighlightColor(Color highlightColor)

getBarWidth

public float getBarWidth()

setBarWidth

public void setBarWidth(float barWidth)

getBarLength

public float getBarLength()

setBarLength

public void setBarLength(float barLength)

getCenterDistance

public float getCenterDistance()

setCenterDistance

public void setCenterDistance(float centerDistance)

getPoints

public int getPoints()

setPoints

public void setPoints(int points)

getTrailLength

public int getTrailLength()

setTrailLength

public void setTrailLength(int trailLength)