|
Spirograph Problem Set Javadocs | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectspirograph.Spirograph
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
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 |
public static final int HEIGHT
DotPanel
.
public static final int WIDTH
DotPanel
.
public static final int BALLSIZE
public static final double TIMESTEP
public static final int GRAV
public static final double MAXVEL
public static final int FOCUSSIZE
public static final java.awt.Font DEFAULTFONT
Constructor Detail |
public Spirograph(java.lang.String xArg, java.lang.String yArg)
xArg
- The name of the file containing new AccelHandler for the x directionyArg
- The name of the file containing new AccelHandler for the y direction
|
Spirograph Problem Set Javadocs | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |