Spirograph
Class Spirograph

java.lang.Object
  |
  +--Spirograph.Spirograph

public class Spirograph
extends java.lang.Object

This class handles a lot of the initialization for the Spirograph. It creates an instance of DotFrame and CodeBox and creates instances of the name passed in on the command line. It also creates the CodeBox and the AccelHandlers and passes them to the appropriate objects.

Copyright (c) 1998 Massachusetts Institute of Technology

See Also:
AccelHandler, CodeBox, Copyright (C) 1998 Massachusetts Institute of Technology.

Field Summary
static int BALLSIZE
          Size of the dot as it will appear in the GUI.
static java.awt.Font DEFAULTFONT
          Problem set wide default font.
static int FOCUSSIZE
           
static int GRAV
           
static int HEIGHT
           
static double MAXVEL
          Maximum dot velocity allowed.
static double TIMESTEP
          Minimum timestep for updates.
static int WIDTH
           
 
Constructor Summary
Spirograph(java.lang.String xArg, java.lang.String yArg)
          Attempt to construct a new Spirograph with the given Accleration Handlers.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

HEIGHT

public static final int HEIGHT

WIDTH

public static final int WIDTH

BALLSIZE

public static final int BALLSIZE
Size of the dot as it will appear in the GUI.

TIMESTEP

public static final double TIMESTEP
Minimum timestep for updates.

GRAV

public static final int GRAV

MAXVEL

public static final double MAXVEL
Maximum dot velocity allowed.

FOCUSSIZE

public static final int FOCUSSIZE

DEFAULTFONT

public static final java.awt.Font DEFAULTFONT
Problem set wide default font.
Constructor Detail

Spirograph

public Spirograph(java.lang.String xArg,
                  java.lang.String yArg)
Attempt to construct a new Spirograph with the given Accleration Handlers. Abort if either handler cannot be created.