Spirograph Problem Set Javadocs

spirograph
Class SetVListener

java.lang.Object
  extended byspirograph.SetVListener
All Implemented Interfaces:
java.awt.event.ActionListener, java.util.EventListener

public class SetVListener
extends java.lang.Object
implements java.awt.event.ActionListener

This class listens to the set velocity button in the AdvEnv Frame and sets the velocity of the dot with whatever text is in the TextArea.

Copyright © 1998 Massachusetts Institute of Technology
Copyright © 2003 Franklin W. Olin College of Engineering

Version:
$Id: SetVListener.java,v 1.4 2004/02/09 20:55:03 gus Exp $
Author:
Luis Sarmenta, lfgs@cag.lcs.mit.edu, Henry Wong, henryw@mit.edu, Patrick G. Heck, gus.heck@olin.edu
See Also:
Coord, DotPanel

Constructor Summary
SetVListener(java.awt.TextField xVel, java.awt.TextField yVel, Coord xCoord, Coord yCoord)
          Creates a new SetVListener to listen to the velocity setter button in AdvEnv.
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent ae)
          Respond to the button and set the Velocity.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SetVListener

public SetVListener(java.awt.TextField xVel,
                    java.awt.TextField yVel,
                    Coord xCoord,
                    Coord yCoord)
Creates a new SetVListener to listen to the velocity setter button in AdvEnv.

Parameters:
xVel - The x velocity
yVel - The y velocity
xCoord - The coordiante along the X axis
yCoord - The coordiante along the Y axis
Method Detail

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent ae)
Respond to the button and set the Velocity.

Specified by:
actionPerformed in interface java.awt.event.ActionListener
Parameters:
ae - The Event from the set velocity button

Spirograph Problem Set Javadocs