org.opensourcephysics.media.core
Interface VideoType

All Known Implementing Classes:
GifVideoType, ImageVideoType

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 name and/or description of this type.
 java.lang.String getDescription()
          Gets the name and/or description of this type.
 javax.swing.filechooser.FileFilter[] getFileFilters()
          Gets the file filter 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 and/or description of this type.

Returns:
a description

getDefaultExtension

java.lang.String getDefaultExtension()
Gets the name and/or description of this type.

Returns:
a description

getFileFilters

javax.swing.filechooser.FileFilter[] getFileFilters()
Gets the file filter for this type.

Returns:
a file filter