T
- the Image
typepublic class VideoDisplayAdapter<T extends Image<?,T>> extends Object implements VideoDisplayStateListener, VideoDisplayListener<T>
VideoDisplayListener
and the VideoDisplayStateListener
.Constructor and Description |
---|
VideoDisplayAdapter() |
Modifier and Type | Method and Description |
---|---|
void |
afterUpdate(VideoDisplay<T> display)
Called when the video display is updated and the next frame
is displayed
|
void |
beforeUpdate(T frame)
Called when the video is about to update
|
void |
videoPaused(VideoDisplay<?> v)
Called when the video display is paused.
|
void |
videoPlaying(VideoDisplay<?> v)
Called when the video display is set to play.
|
void |
videoStateChanged(VideoDisplay.Mode mode,
VideoDisplay<?> v)
Called when the video display's state changes.
|
void |
videoStopped(VideoDisplay<?> v)
Called when the video display is stopped.
|
public VideoDisplayAdapter()
public void videoStopped(VideoDisplay<?> v)
videoStopped
in interface VideoDisplayStateListener
v
- The video display that was stopped.VideoDisplayStateListener.videoStopped(org.openimaj.video.VideoDisplay)
public void videoPlaying(VideoDisplay<?> v)
videoPlaying
in interface VideoDisplayStateListener
v
- The video display that was set to play.VideoDisplayStateListener.videoPlaying(org.openimaj.video.VideoDisplay)
public void videoPaused(VideoDisplay<?> v)
videoPaused
in interface VideoDisplayStateListener
v
- The video display that was paused.VideoDisplayStateListener.videoPaused(org.openimaj.video.VideoDisplay)
public void videoStateChanged(VideoDisplay.Mode mode, VideoDisplay<?> v)
videoStateChanged
in interface VideoDisplayStateListener
mode
- The mode the video display changed tov
- The video display whose state changed.VideoDisplayStateListener.videoStateChanged(org.openimaj.video.VideoDisplay.Mode, org.openimaj.video.VideoDisplay)
public void afterUpdate(VideoDisplay<T> display)
afterUpdate
in interface VideoDisplayListener<T extends Image<?,T>>
display
- the video displayVideoDisplayListener.afterUpdate(org.openimaj.video.VideoDisplay)
public void beforeUpdate(T frame)
beforeUpdate
in interface VideoDisplayListener<T extends Image<?,T>>
frame
- the frame about to be displayedVideoDisplayListener.beforeUpdate(org.openimaj.image.Image)