org.opensourcephysics.media.core
Interface VideoType

All Known Implementing Classes:
GifVideoType, ImageVideoType, QTVideoType, XuggleVideoType

public interface VideoType

This defines methods common to all video types.

Version:
1.0
Author:
Douglas Brown

Method Summary
 boolean canRecord()
          Reports whether this type can record videos
 java.lang.String getDefaultExtension()
          Gets the default extension for this type.
 VideoFileFilter getDefaultFileFilter()
          Gets the default file filter for this type.
 java.lang.String getDescription()
          Gets the name/description of this type.
 VideoFileFilter[] getFileFilters()
          Gets the file filters for this type.
 VideoRecorder getRecorder()
          Gets a video recorder.
 Video getVideo(java.lang.String name)
          Opens a new video with the specified name.
 boolean isType(Video video)
          Return true if the specified video is this type.
 

Method Detail

getVideo

Video getVideo(java.lang.String name)
Opens a new video with the specified name.

Parameters:
name - the name of the video
Returns:
the new video

isType

boolean isType(Video video)
Return true if the specified video is this type.

Parameters:
video - the video
Returns:
true if the video is this type

getRecorder

VideoRecorder getRecorder()
Gets a video recorder. Returns null if canRecord() is false.

Returns:
the video recorder

canRecord

boolean canRecord()
Reports whether this type can record videos

Returns:
true if this can record videos

getDescription

java.lang.String getDescription()
Gets the name/description of this type.

Returns:
a description

getDefaultExtension

java.lang.String getDefaultExtension()
Gets the default extension for this type.

Returns:
a description

getFileFilters

VideoFileFilter[] getFileFilters()
Gets the file filters for this type.

Returns:
array of file filters

getDefaultFileFilter

VideoFileFilter getDefaultFileFilter()
Gets the default file filter for this type. May return null.

Returns:
the default file filter