All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class pinball.log.Viewer

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

public class Viewer
extends Frame
Displays the video of the log file.


Variable Index

 o canvas
Canvas to draw to.
 o frame
Frame to display the video.
 o go
The button that starts the viewer.
 o height
Height of the viewer.
 o imageFile
Input file.
 o log
Reads the statistics log files.
 o running
Is the system running.
 o videoLog
Video log file.
 o width
Width of the viewer.
 o x
Ball's location.
 o y
Ball's location.

Constructor Index

 o Viewer(LogReport)
Sets up the video viewer.

Method Index

 o action(Event, Object)
The events for the window.
 o nextBallClip(String)
Get the next ball's video clip.
 o paint(Graphics)
 o readFrame(int, int)
Read a frame from the log file.
 o startup()
Sets up the window.
 o update(Graphics)

Variables

 o canvas
 private ViewerCanvas canvas
Canvas to draw to.

 o frame
 private CameraFrame frame
Frame to display the video.

 o width
 private final int width
Width of the viewer.

 o height
 private final int height
Height of the viewer.

 o imageFile
 private ObjectInputStream imageFile
Input file.

 o videoLog
 private VideoLog videoLog
Video log file.

 o go
 private Button go
The button that starts the viewer.

 o x
 private int x
Ball's location.

 o y
 private int y
Ball's location.

 o log
 private LogReport log
Reads the statistics log files.

 o running
 private boolean running
Is the system running.

Constructors

 o Viewer
 public Viewer(LogReport log)
Sets up the video viewer.

Parameters:
log - The file analyzer.

Methods

 o startup
 private void startup()
Sets up the window.

 o readFrame
 public void readFrame(int x,
                       int y)
Read a frame from the log file.

Parameters:
x - the x location of the ball.
y - the y location of the ball.
 o nextBallClip
 public void nextBallClip(String clip)
Get the next ball's video clip.

Parameters:
clip - the file name of the next video clip.
 o update
 public void update(Graphics g)
Overrides:
update in class Container
 o paint
 public void paint(Graphics g)
Overrides:
paint in class Container
 o action
 public boolean action(Event e,
                       Object arg)
The events for the window.

Returns:
Was the action handled.
Overrides:
action in class Component

All Packages  Class Hierarchy  This Package  Previous  Next  Index