public class VideoSlide extends Object implements Slide, org.openimaj.video.VideoDisplayListener<MBFImage>, KeyListener
| Modifier and Type | Field and Description |
|---|---|
protected PictureSlide |
pictureSlide |
| Constructor and Description |
|---|
VideoSlide(URL video,
Jama.Matrix transform,
org.openimaj.video.VideoDisplay.EndAction endAction)
Default constructor.
|
VideoSlide(URL video,
URL background,
Jama.Matrix transform,
org.openimaj.video.VideoDisplay.EndAction endAction)
Default constructor.
|
VideoSlide(URL video,
URL background,
org.openimaj.video.VideoDisplay.EndAction endAction)
Default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
afterUpdate(org.openimaj.video.VideoDisplay<MBFImage> display) |
void |
beforeUpdate(MBFImage frame) |
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, org.openimaj.video.VideoDisplay.EndAction endAction) throws IOException
video - background - transform - endAction - IOExceptionpublic VideoSlide(URL video, Jama.Matrix transform, org.openimaj.video.VideoDisplay.EndAction endAction) throws IOException
video - transform - endAction - IOExceptionpublic VideoSlide(URL video, URL background, org.openimaj.video.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(org.openimaj.video.VideoDisplay<MBFImage> display)
afterUpdate in interface org.openimaj.video.VideoDisplayListener<MBFImage>public void beforeUpdate(MBFImage frame)
beforeUpdate in interface org.openimaj.video.VideoDisplayListener<MBFImage>public void keyPressed(KeyEvent key)
keyPressed in interface KeyListenerpublic void keyReleased(KeyEvent arg0)
keyReleased in interface KeyListenerpublic void keyTyped(KeyEvent arg0)
keyTyped in interface KeyListener