Class edu.umn.geom.IFSoft.AnimPanel
All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class edu.umn.geom.IFSoft.AnimPanel

java.lang.Object
   |
   +----java.awt.Component
           |
           +----java.awt.Container
                   |
                   +----java.awt.Panel
                           |
                           +----edu.umn.geom.IFSoft.AnimPanel

public class AnimPanel
extends Panel
This panel provides the basis for animation. It contains an IfsPanel to create the fractals in, and a number of methods for setting up, making, and controlling animations.

Variable Index

 o acon
All the user controls for the program live here.
 o bpans
Each key frame has a BigPanel, in which it is stored and adjusted.
 o frames
Each frame is an image.
 o ifspan
The AnimPanel uses an IfsPanel for making individual frames.

Constructor Index

 o AnimPanel()

Method Index

 o addKeyFrame(int)
Add a new key frame.
 o delKeyFrame(int)
Delete a key frame.
 o finalize()
 o makeAnim(double[][][])
 o paint(Graphics)
If there is an animation made paint puts up the current frame (curframe), if not it doesn't do anything.
 o setUpPath(int[])
Set up the transformations in each frame.
 o showAnim(int)
Show the animation.

Variables

 o bpans
  public Vector bpans
Each key frame has a BigPanel, in which it is stored and adjusted. These are stored in this Vector.
 o ifspan
  public IfsPanel ifspan
The AnimPanel uses an IfsPanel for making individual frames.
See Also:
IfsPanel
 o acon
  public AnimCon acon
All the user controls for the program live here.
See Also:
AnimCon
 o frames
  public Image frames[]
Each frame is an image. They are stored here.

Constructors

 o AnimPanel
  public AnimPanel()

Methods

 o finalize
  protected void finalize() throws Throwable
Overrides:
finalize in class Object
 o paint
  public void paint(Graphics g)
If there is an animation made paint puts up the current frame (curframe), if not it doesn't do anything.
Overrides:
paint in class Component
 o addKeyFrame
  public BigPanel addKeyFrame(int framepos)
Add a new key frame. When possible the settings are the same as the key frame just before.
Parameters:
framepos - The new key frame becomes number framepos, the one that was at framepos gets bumped up one, along with all the other higher ones.
 o delKeyFrame
  public void delKeyFrame(int framepos)
Delete a key frame.
Parameters:
framepos - The key frame to delete.
 o makeAnim
  public void makeAnim(double settings[][][])
 o showAnim
  public void showAnim(int framepause)
Show the animation.
Parameters:
framepause - Time in milliseconds to sleep after putting up each frame.
 o setUpPath
  public double[][][] setUpPath(int slices[])
Set up the transformations in each frame.
Parameters:
slices - How many frames go between each key frame.
Returns:
The settings[][][] used by makeAnim(int setting[][][]).

All Packages  Class Hierarchy  This Package  Previous  Next  Index