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

java.lang.Object
  extended by ca.sqlpower.wabit.swingui.chart.effect.AbstractChartAnimatorFactory
      extended by ca.sqlpower.wabit.swingui.chart.effect.BarChartAnimatorFactory
All Implemented Interfaces:
ChartAnimatorFactory

public class BarChartAnimatorFactory
extends AbstractChartAnimatorFactory


Constructor Summary
BarChartAnimatorFactory()
           
 
Method Summary
 boolean canAnimate(org.jfree.chart.JFreeChart chart)
          Returns true if this chart animation factory can animate the given chart.
 ChartAnimator createAnimator(org.jfree.chart.JFreeChart chart)
          Creates a new chart animator for the given chart.
 
Methods inherited from class ca.sqlpower.wabit.swingui.chart.effect.AbstractChartAnimatorFactory
getFrameCount, getFrameDelay, setFrameCount, setFrameDelay
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BarChartAnimatorFactory

public BarChartAnimatorFactory()
Method Detail

canAnimate

public boolean canAnimate(org.jfree.chart.JFreeChart chart)
Description copied from interface: ChartAnimatorFactory
Returns true if this chart animation factory can animate the given chart.

Parameters:
chart - The chart in question
Returns:
True if this factory can create an animation for chart; false otherwise.

createAnimator

public ChartAnimator createAnimator(org.jfree.chart.JFreeChart chart)
                             throws CantAnimateException
Description copied from interface: ChartAnimatorFactory
Creates a new chart animator for the given chart.

Parameters:
chart - The chart to animate. Some aspects of the chart may be permanently modified as a side effect of this call (for example, disable autoranging on a bar chart's category axis), but no Swing timers will have been started.
Returns:
a new animator for the given chart. The animator will not be started.
Throws:
CantAnimateException - if ChartAnimatorFactory.canAnimate(JFreeChart) would return false for the given chart.


Copyright © 2009. All Rights Reserved.