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.
-
Viewer(MovieViewer, MoviePlayer, int, int)
- Sets up the video viewer.
-
begining()
- Rewind the video.
-
displayFrame(CameraFrame, String, int, int)
- Display the frame.
-
displayFrame(SavedFrame)
- Displays a frame that was read in.
-
fast()
- Is the system playing fast?
-
fast(boolean)
- Set fast mode.
-
nextBallClip(String)
-
Get the next ball's video clip.
-
nextFrame()
- Display the next frame.
-
paused()
-
Is the viewer paused.
-
paused(boolean)
-
-
play()
- Is the system playing?
-
play(boolean)
- Set the play condition.
-
previousFrame()
- Display the previous frame.
-
readFrame(int, int, String, long)
- Read a frame from the log file.
-
rewind()
- Should the system rewind the video.
-
rewind(boolean)
- The system will rewind.
-
setFlippers(Point, Point)
- Set the locations of the flippers.
-
setText(String)
- Set the text to be displayed.
-
step()
- Go to the next frame.
-
stepBack()
- Go to the previous frame.
Viewer
public Viewer(MovieViewer log,
MoviePlayer player,
int xsize,
int ysize)
- Sets up the video viewer.
- Parameters:
- log - The file analyzer.
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.
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.
displayFrame
public void displayFrame(SavedFrame frame)
- Displays a frame that was read in.
- Parameters:
- frame - the frame read in.
setText
public void setText(String text)
- Set the text to be displayed.
- Parameters:
- text - the text for the frame.
nextBallClip
public void nextBallClip(String clip)
- Get the next ball's video clip.
- Parameters:
- clip - the file name of the next video clip.
paused
public void paused(boolean p)
paused
public boolean paused()
- Is the viewer paused.
- Returns:
- the paused condition.
nextFrame
public void nextFrame()
- Display the next frame.
previousFrame
public void previousFrame()
- Display the previous frame.
step
public void step()
- Go to the next frame.
stepBack
public void stepBack()
- Go to the previous frame.
rewind
public void rewind(boolean r)
- The system will rewind.
begining
public void begining()
- Rewind the video.
play
public void play(boolean p)
- Set the play condition.
- Parameters:
- play - the play condition.
rewind
public boolean rewind()
- Should the system rewind the video.
- Returns:
- the rewind status.
play
public boolean play()
- Is the system playing?
- Returns:
- play status.
fast
public void fast(boolean f)
- Set fast mode.
- Parameters:
- f - fast status.
fast
public boolean fast()
- Is the system playing fast?
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