client.gui
Class Animation

java.lang.Object
  extended by client.gui.Animation
All Implemented Interfaces:
java.lang.Runnable

public class Animation
extends java.lang.Object
implements java.lang.Runnable

Animation displays an animation of a series of Mandelbrot solution images.

Author:
Mark Wiley

Constructor Summary
Animation()
          Creates a new instance of Animation
Animation(javax.swing.JLabel target, java.lang.String imagePath, java.lang.String frameRate)
          Creates a new instance of Animation
 
Method Summary
 void run()
          Runs the animation.
 void setFrameRate(java.lang.String frameRate)
          Sets the frame rate for the animation
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Animation

public Animation()
Creates a new instance of Animation


Animation

public Animation(javax.swing.JLabel target,
                 java.lang.String imagePath,
                 java.lang.String frameRate)
Creates a new instance of Animation

Parameters:
target - The JLabel being used to contain the Animation
imagePath - The path to the series of animations
frameRate - The rate at wich to switch between images.
Method Detail

setFrameRate

public void setFrameRate(java.lang.String frameRate)
Sets the frame rate for the animation

Parameters:
frameRate - The frame rate for the animation.

run

public void run()
Runs the animation.

Specified by:
run in interface java.lang.Runnable