Spirograph Problem Set Javadocs

spirograph
Class Spirograph

java.lang.Object
  extended byspirograph.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 © 1998 Massachusetts Institute of Technology
Copyright © 2003 Franklin W. Olin College of Engineering

Version:
$Id: Spirograph.java,v 1.5 2004/02/09 20:55:03 gus Exp $
Author:
Luis Sarmenta, lfgs@cag.lcs.mit.edu, Henry Wong, henryw@mit.edu
See Also:
AccelHandler, CodeBox, DotFrame

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
          The size of an elipse foci point.
static int GRAV
          The strength of a gravity source.
static int HEIGHT
          The initial height of the DotPanel.
static double MAXVEL
          Maximum dot velocity allowed.
static double TIMESTEP
          Minimum timestep for updates.
static int WIDTH
          The initial width of the DotPanel.
 
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
The initial height of the DotPanel.

See Also:
Constant Field Values

WIDTH

public static final int WIDTH
The initial width of the DotPanel.

See Also:
Constant Field Values

BALLSIZE

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

See Also:
Constant Field Values

TIMESTEP

public static final double TIMESTEP
Minimum timestep for updates.

See Also:
Constant Field Values

GRAV

public static final int GRAV
The strength of a gravity source.

See Also:
Constant Field Values

MAXVEL

public static final double MAXVEL
Maximum dot velocity allowed.

See Also:
Constant Field Values

FOCUSSIZE

public static final int FOCUSSIZE
The size of an elipse foci point.

See Also:
Constant Field Values

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.

Parameters:
xArg - The name of the file containing new AccelHandler for the x direction
yArg - The name of the file containing new AccelHandler for the y direction

Spirograph Problem Set Javadocs