public class VideoSlide extends Object implements Slide, VideoDisplayListener<MBFImage>, KeyListener
Modifier and Type | Field and Description |
---|---|
protected PictureSlide |
pictureSlide |
Constructor and Description |
---|
VideoSlide(URL video,
Jama.Matrix transform,
VideoDisplay.EndAction endAction)
Default constructor.
|
VideoSlide(URL video,
URL background,
Jama.Matrix transform,
VideoDisplay.EndAction endAction)
Default constructor.
|
VideoSlide(URL video,
URL background,
VideoDisplay.EndAction endAction)
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
afterUpdate(VideoDisplay<MBFImage> display)
Called when the video display is updated and the next frame
is displayed
|
void |
beforeUpdate(MBFImage frame)
Called when the video is about to update
|
void |
close()
Close the current slide.
|
Component |
getComponent(int width,
int height)
Get the component to draw.
|
void |
keyPressed(KeyEvent key) |
void |
keyReleased(KeyEvent arg0) |
void |
keyTyped(KeyEvent arg0) |
protected PictureSlide pictureSlide
public VideoSlide(URL video, URL background, Jama.Matrix transform, VideoDisplay.EndAction endAction) throws IOException
video
- background
- transform
- endAction
- IOException
public VideoSlide(URL video, Jama.Matrix transform, VideoDisplay.EndAction endAction) throws IOException
video
- transform
- endAction
- IOException
public VideoSlide(URL video, URL background, VideoDisplay.EndAction endAction) throws IOException
video
- background
- endAction
- IOException
public Component getComponent(int width, int height) throws IOException
Slide
getComponent
in interface Slide
width
- the slide widthheight
- the slide heightIOException
public void close()
Slide
Slideshow
when the
slide is removed from display.public void afterUpdate(VideoDisplay<MBFImage> display)
VideoDisplayListener
afterUpdate
in interface VideoDisplayListener<MBFImage>
display
- the video displaypublic void beforeUpdate(MBFImage frame)
VideoDisplayListener
beforeUpdate
in interface VideoDisplayListener<MBFImage>
frame
- the frame about to be displayedpublic void keyPressed(KeyEvent key)
keyPressed
in interface KeyListener
public void keyReleased(KeyEvent arg0)
keyReleased
in interface KeyListener
public void keyTyped(KeyEvent arg0)
keyTyped
in interface KeyListener