Spirograph
Class AccelHandler
java.lang.Object
|
+--Spirograph.AccelHandler
- public class AccelHandler
- extends java.lang.Object
- implements java.lang.Runnable
This class contains a Thread that continuously prompts the
user's class for an acceleration and passes this information
on to an instance of DotPanel.
Copyright (C) 1998 Massachusetts Institute of Technology.
- See Also:
Accelerator
,
DotPanel
,
Coord
Field Summary |
static int |
ACCELMODE
Acceleration control mode |
static int |
POSMODE
Position control mode |
static int |
VELMODE
Velocity control mdde |
Method Summary |
void |
run()
Prompt the user's class for an accleration and pass the info on to
our DotPanel. |
void |
setAccel(Accelerator Accel)
Changes the current Accelerator. |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
POSMODE
public static final int POSMODE
- Position control mode
VELMODE
public static final int VELMODE
- Velocity control mdde
ACCELMODE
public static final int ACCELMODE
- Acceleration control mode
AccelHandler
public AccelHandler(Accelerator Accel,
DotPanel myPanel,
Coord myCoord,
Coord otherCoord)
- Creates a new AccelHandler. Does not start a new Thread.
setAccel
public void setAccel(Accelerator Accel)
- Changes the current Accelerator.
- Parameters:
Accel
- the new Accelerator
run
public void run()
- Prompt the user's class for an accleration and pass the info on to
our DotPanel.
- Specified by:
- run in interface java.lang.Runnable