package visual.dynamic.described;


import java.awt.geom.Point2D;

import visual.statik.sampled.*;


/**
 * A morphing Professor
 *
 * @author  Prof. David Bernstein, James Madison University
 * @version 1.0
 *
 */
public class Professor extends SampledSprite
{

    /**
     * Default Constructor
     *
     */
    public Professor()
    {
	super();
        Content         content;
        ContentFactory  factory;       

        factory = new ContentFactory();
        content = factory.createContent(
           "/visual/dynamic/described/bernstein.gif", 4);

        addKeyTime(    0, 0.0, 0.0, content);
        content = factory.createContent(
           "/visual/dynamic/described/abzug.gif", 4);
        addKeyTime(10000, 0.0, 0.0, content);        
        
        setEndState(REMAIN);
    }




    /**
     * Add a key time
     *
     * @param time    The key time
     * @param x       The x position
     * @param y       The y position
     * @param r       The rotation angle
     * @param image   The image
     */
    private void addKeyTime(int time, double x, double y,
                            Content content)
    {
       addKeyTime(time, new Point2D.Double(x, y), new Double(0.0),
                   new Double(1.0), content);
    }

}
