net.java.swingfx.rubberband
Class AnimatedStroke

java.lang.Object
  extended by net.java.swingfx.rubberband.AnimatedStroke

public class AnimatedStroke
extends Object

Handles the necessary work of animating the stroke of a RubberBand. The idea for having an animated rubber band came from the java.net project, Rubber-Band The code was extracted from the project and modified to work with this Rubber Band API.

Since:
1.0 $Revision: 1.1 $
Author:
rwickesser

Constructor Summary
AnimatedStroke(RubberBandCanvas canvas)
           
 
Method Summary
 Stroke getStroke()
          Returns the Stroke at strokeIndex
 void startAnimation()
          Starts the animated stroke
 void stopAnimation()
          Stops the animated stroke
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AnimatedStroke

public AnimatedStroke(RubberBandCanvas canvas)
Method Detail

getStroke

public Stroke getStroke()
Returns the Stroke at strokeIndex

Returns:
the Stroke at strokeIndex

startAnimation

public void startAnimation()
Starts the animated stroke


stopAnimation

public void stopAnimation()
Stops the animated stroke