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 - IOExceptionpublic VideoSlide(URL video, Jama.Matrix transform, VideoDisplay.EndAction endAction) throws IOException
video - transform - endAction - IOExceptionpublic VideoSlide(URL video, URL background, VideoDisplay.EndAction endAction) throws IOException
video - background - endAction - IOExceptionpublic Component getComponent(int width, int height) throws IOException
SlidegetComponent in interface Slidewidth - the slide widthheight - the slide heightIOExceptionpublic void close()
SlideSlideshow when the
slide is removed from display.public void afterUpdate(VideoDisplay<MBFImage> display)
VideoDisplayListenerafterUpdate in interface VideoDisplayListener<MBFImage>display - the video displaypublic void beforeUpdate(MBFImage frame)
VideoDisplayListenerbeforeUpdate in interface VideoDisplayListener<MBFImage>frame - the frame about to be displayedpublic void keyPressed(KeyEvent key)
keyPressed in interface KeyListenerpublic void keyReleased(KeyEvent arg0)
keyReleased in interface KeyListenerpublic void keyTyped(KeyEvent arg0)
keyTyped in interface KeyListener