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

java.lang.Object
  extended by ca.sqlpower.wabit.swingui.chart.effect.ChartAnimation

public class ChartAnimation
extends java.lang.Object

Utility class for working with the chart animation system. Provides the convenience method animateIfPossible(JFreeChart) which makes a best effort to animate any JFreeChart in a single, simple line of code.


Constructor Summary
ChartAnimation()
           
 
Method Summary
static ChartAnimator animateIfPossible(org.jfree.chart.JFreeChart chart)
          Makes a "best effort" attempt to apply an animation effect to the given chart.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ChartAnimation

public ChartAnimation()
Method Detail

animateIfPossible

@Nonnull
public static ChartAnimator animateIfPossible(org.jfree.chart.JFreeChart chart)
Makes a "best effort" attempt to apply an animation effect to the given chart.

Parameters:
chart - The chart to attempt to animate.
Returns:
The best available animator for the given chart. The animator will have been started for you. It will eventually stop on its own, but you are free to call ChartAnimator.stopAnimation() on it at any time.

This method never returns null, but the selected animator is not guaranteed to have any visible effect on the chart.



Copyright © 2009. All Rights Reserved.