org.opensourcephysics.media.gif
Class GifVideoType

java.lang.Object
  extended by org.opensourcephysics.media.gif.GifVideoType
All Implemented Interfaces:
VideoType

public class GifVideoType
extends java.lang.Object
implements VideoType

This implements the VideoType interface with a buffered image type.

Version:
1.0
Author:
Douglas Brown

Constructor Summary
GifVideoType()
           
 
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 getFileFilter()
          Gets the file filter for this type.
 VideoRecorder getRecorder()
          Gets a gif video recorder.
 Video getVideo(java.lang.String name)
          Opens a named gif image as a GifVideo.
 boolean isType(Video video)
          Return true if the specified video is this type.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GifVideoType

public GifVideoType()
Method Detail

getVideo

public Video getVideo(java.lang.String name)
Opens a named gif image as a GifVideo.

Specified by:
getVideo in interface VideoType
Parameters:
name - the name of the image
Returns:
a new image video

getRecorder

public VideoRecorder getRecorder()
Gets a gif video recorder.

Specified by:
getRecorder in interface VideoType
Returns:
the video recorder

canRecord

public boolean canRecord()
Reports whether this type can record videos

Specified by:
canRecord in interface VideoType
Returns:
true if this can record videos

getDescription

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

Specified by:
getDescription in interface VideoType
Returns:
a description

getDefaultExtension

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

Specified by:
getDefaultExtension in interface VideoType
Returns:
a description

getFileFilter

public javax.swing.filechooser.FileFilter getFileFilter()
Gets the file filter for this type.

Specified by:
getFileFilter in interface VideoType
Returns:
a file filter

isType

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

Specified by:
isType in interface VideoType
Parameters:
video - the video
Returns:
true if the video is this type