Class GifVideoType

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

public class GifVideoType extends Object implements VideoType
This implements the VideoType interface with a buffered image type.
Version:
1.0
Author:
Douglas Brown
  • Field Details

  • Constructor Details

    • GifVideoType

      public GifVideoType()
  • Method Details

    • getVideo

      public Video getVideo(String name, String basePath, XMLControl control)
      Description copied from interface: VideoType
      Create a Video object from a file drop, file open, or TRK or TRZ file. Also called with non-null basePath from ExportZipDialog.Export.modifyControlForClip
      Specified by:
      getVideo in interface VideoType
      Returns:
    • 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 String getDescription()
      Gets the name and/or description of this type.
      Specified by:
      getDescription in interface VideoType
      Returns:
      a description
    • getDefaultExtension

      public String getDefaultExtension()
      Gets the name and/or description of this type.
      Specified by:
      getDefaultExtension in interface VideoType
      Returns:
      a description
    • getFileFilters

      public VideoFileFilter[] getFileFilters()
      Gets the file filter for this type.
      Specified by:
      getFileFilters in interface VideoType
      Returns:
      a file filter
    • getDefaultFileFilter

      public VideoFileFilter getDefaultFileFilter()
      Gets the default file filter for this type. May return null.
      Specified by:
      getDefaultFileFilter in interface VideoType
      Returns:
      the default 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
    • getTypeName

      public String getTypeName()
      Description copied from interface: VideoType
      Gets the short name of the video type.
      Specified by:
      getTypeName in interface VideoType
      Returns:
      the type name