All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class pinball.log.Viewer

java.lang.Object
   |
   +----pinball.log.Viewer

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


Constructor Index

 o Viewer(MovieViewer, MoviePlayer, int, int)
Sets up the video viewer.

Method Index

 o begining()
Rewind the video.
 o displayFrame(CameraFrame, String, int, int)
Display the frame.
 o displayFrame(SavedFrame)
Displays a frame that was read in.
 o fast()
Is the system playing fast?
 o fast(boolean)
Set fast mode.
 o nextBallClip(String)
Get the next ball's video clip.
 o nextFrame()
Display the next frame.
 o paused()
Is the viewer paused.
 o paused(boolean)
 o play()
Is the system playing?
 o play(boolean)
Set the play condition.
 o previousFrame()
Display the previous frame.
 o readFrame(int, int, String, long)
Read a frame from the log file.
 o rewind()
Should the system rewind the video.
 o rewind(boolean)
The system will rewind.
 o setFlippers(Point, Point)
Set the locations of the flippers.
 o setText(String)
Set the text to be displayed.
 o step()
Go to the next frame.
 o stepBack()
Go to the previous frame.

Constructors

 o Viewer
 public Viewer(MovieViewer log,
               MoviePlayer player,
               int xsize,
               int ysize)
Sets up the video viewer.

Parameters:
log - The file analyzer.

Methods

 o readFrame
 public synchronized void readFrame(int x,
                                    int y,
                                    String text,
                                    long sleepTime)
Read a frame from the log file.

Parameters:
x - the x location of the ball.
y - the y location of the ball.
text - the text of the frame.
sleepTime - the time to pause between frames.
 o displayFrame
 public void displayFrame(CameraFrame frame,
                          String text,
                          int x,
                          int y)
Display the frame.

Parameters:
frame - the frame from the camera.
text - the text to be displayed.
x - the x location of the ball.
y - the y location of the ball.
 o displayFrame
 public void displayFrame(SavedFrame frame)
Displays a frame that was read in.

Parameters:
frame - the frame read in.
 o setText
 public void setText(String text)
Set the text to be displayed.

Parameters:
text - the text for the frame.
 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 paused
 public void paused(boolean p)
 o paused
 public boolean paused()
Is the viewer paused.

Returns:
the paused condition.
 o nextFrame
 public void nextFrame()
Display the next frame.

 o previousFrame
 public void previousFrame()
Display the previous frame.

 o step
 public void step()
Go to the next frame.

 o stepBack
 public void stepBack()
Go to the previous frame.

 o rewind
 public void rewind(boolean r)
The system will rewind.

 o begining
 public void begining()
Rewind the video.

 o play
 public void play(boolean p)
Set the play condition.

Parameters:
play - the play condition.
 o rewind
 public boolean rewind()
Should the system rewind the video.

Returns:
the rewind status.
 o play
 public boolean play()
Is the system playing?

Returns:
play status.
 o fast
 public void fast(boolean f)
Set fast mode.

Parameters:
f - fast status.
 o fast
 public boolean fast()
Is the system playing fast?

 o setFlippers
 public void setFlippers(Point left,
                         Point right)
Set the locations of the flippers.

Parameters:
left - left flipper's location.
right - right flipper's location.

All Packages  Class Hierarchy  This Package  Previous  Next  Index