All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class pinball.Options

java.lang.Object
   |
   +----java.awt.Component
           |
           +----java.awt.Container
                   |
                   +----java.awt.Window
                           |
                           +----java.awt.Frame
                                   |
                                   +----pinball.Options

public class Options
extends Frame
implements Serializable
Get the options used in the game.


Variable Index

 o analyze
A thread in the system.
 o ballsToPlay
The amount of balls to play.
 o bufferSize
Amount of buffers in the system.
 o done
Indicate the options have been set.
 o fileDialog
Name of the log file for playback.
 o findFlippers
How many times to find the flippers in the system.
 o frameRate
Image display rate.
 o logFileButton
Going to use a log file.
 o myParent
The object that called the options menu.
 o OK
Done with the options.
 o pixelRate
Amount of pixels to move while scanning the image.
 o post
A thread in the system.
 o resetTime
How long can a flipper stay up.
 o strategy
A thread in the system.

Constructor Index

 o Options(JavaQcam)
Make the options window.

Method Index

 o action(Event, Object)
The events for the window.
 o read(DataInputStream)
Read the options from disk.
 o readObject(ObjectInputStream)
Read the information from the disk.
 o save(DataOutputStream)
Save the options to disk.
 o startup()
Create the window.
 o writeObject(ObjectOutputStream)
Save the information to disk.

Variables

 o OK
 private Button OK
Done with the options.

 o logFileButton
 private Button logFileButton
Going to use a log file.

 o done
 private transient boolean done
Indicate the options have been set.

 o post
 private Checkbox post
A thread in the system.

 o analyze
 private Checkbox analyze
A thread in the system.

 o strategy
 private Checkbox strategy
A thread in the system.

 o pixelRate
 private TextField pixelRate
Amount of pixels to move while scanning the image.

 o frameRate
 private TextField frameRate
Image display rate.

 o bufferSize
 private TextField bufferSize
Amount of buffers in the system.

 o findFlippers
 private TextField findFlippers
How many times to find the flippers in the system.

 o resetTime
 private TextField resetTime
How long can a flipper stay up.

 o ballsToPlay
 private TextField ballsToPlay
The amount of balls to play. Then the system exits.

 o fileDialog
 private FileDialog fileDialog
Name of the log file for playback.

 o myParent
 private JavaQcam myParent
The object that called the options menu.

Constructors

 o Options
 public Options(JavaQcam myParent)
Make the options window.

Methods

 o startup
 private void startup()
Create the window.

 o action
 public boolean action(Event e,
                       Object arg)
The events for the window. When OK is pressed, continue with the program.

Overrides:
action in class Component
 o writeObject
 private void writeObject(ObjectOutputStream s) throws IOException
Save the information to disk.

Parameters:
s - object to write to.
Overrides:
writeObject in class Frame
 o readObject
 private void readObject(ObjectInputStream s) throws IOException
Read the information from the disk.

Parameters:
s - object to read from.
Overrides:
readObject in class Frame
 o save
 public void save(DataOutputStream out)
Save the options to disk.

Parameters:
out - the file to save to.
 o read
 public void read(DataInputStream in)
Read the options from disk.

Parameters:
in - the file to read from.

All Packages  Class Hierarchy  This Package  Previous  Next  Index