ca.sqlpower.wabit.swingui.chart.effect
Class BarChartAnimator

java.lang.Object
  extended by ca.sqlpower.wabit.swingui.chart.effect.AbstractChartAnimator
      extended by ca.sqlpower.wabit.swingui.chart.effect.BarChartAnimator
All Implemented Interfaces:
ChartAnimator

public class BarChartAnimator
extends AbstractChartAnimator


Constructor Summary
BarChartAnimator(int frameCount, int frameDelay, org.jfree.data.category.DefaultCategoryDataset dataset, Interpolator interpolator)
           
 
Method Summary
protected  void doFrame(int frame, double pct)
          Subclasses define their actual animation behaviour by overriding this method.
protected  void setup()
          Subclasses that wish to perform some setup action whenever the animation starts or restarts may override this method.
 
Methods inherited from class ca.sqlpower.wabit.swingui.chart.effect.AbstractChartAnimator
getFrameCount, startAnimation, stopAnimation
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BarChartAnimator

public BarChartAnimator(int frameCount,
                        int frameDelay,
                        org.jfree.data.category.DefaultCategoryDataset dataset,
                        Interpolator interpolator)
Method Detail

setup

protected void setup()
Description copied from class: AbstractChartAnimator
Subclasses that wish to perform some setup action whenever the animation starts or restarts may override this method. It is called from AbstractChartAnimator.startAnimation() before the invocation of AbstractChartAnimator.doFrame(int, double) with a frame number of 0.

Overrides:
setup in class AbstractChartAnimator

doFrame

protected void doFrame(int frame,
                       double pct)
Description copied from class: AbstractChartAnimator
Subclasses define their actual animation behaviour by overriding this method.

Specified by:
doFrame in class AbstractChartAnimator
Parameters:
frame - The current frame number (of AbstractChartAnimator.getFrameCount())
pct - The percentage (between 0.0 and 1.0 inclusive) of the way that the current frame is.


Copyright © 2009. All Rights Reserved.