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.
-
canvas
- Canvas to draw to.
-
frame
- Frame to display the video.
-
go
- The button that starts the viewer.
-
height
- Height of the viewer.
-
imageFile
- Input file.
-
log
- Reads the statistics log files.
-
running
- Is the system running.
-
videoLog
- Video log file.
-
width
- Width of the viewer.
-
x
- Ball's location.
-
y
- Ball's location.
-
Viewer(LogReport)
- Sets up the video viewer.
-
action(Event, Object)
- The events for the window.
-
nextBallClip(String)
-
Get the next ball's video clip.
-
paint(Graphics)
-
-
readFrame(int, int)
- Read a frame from the log file.
-
startup()
- Sets up the window.
-
update(Graphics)
-
canvas
private ViewerCanvas canvas
- Canvas to draw to.
frame
private CameraFrame frame
- Frame to display the video.
width
private final int width
- Width of the viewer.
height
private final int height
- Height of the viewer.
imageFile
private ObjectInputStream imageFile
- Input file.
videoLog
private VideoLog videoLog
- Video log file.
go
private Button go
- The button that starts the viewer.
x
private int x
- Ball's location.
y
private int y
- Ball's location.
log
private LogReport log
- Reads the statistics log files.
running
private boolean running
- Is the system running.
Viewer
public Viewer(LogReport log)
- Sets up the video viewer.
- Parameters:
- log - The file analyzer.
startup
private void startup()
- Sets up the window.
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.
nextBallClip
public void nextBallClip(String clip)
- Get the next ball's video clip.
- Parameters:
- clip - the file name of the next video clip.
update
public void update(Graphics g)
- Overrides:
- update in class Container
paint
public void paint(Graphics g)
- Overrides:
- paint in class Container
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