Package org.opensourcephysics.media.gif
Class GifVideoType
java.lang.Object
org.opensourcephysics.media.gif.GifVideoType
- All Implemented Interfaces:
VideoType
This implements the VideoType interface with a buffered image type.
- Version:
- 1.0
- Author:
- Douglas Brown
-
Field Summary
FieldsFields inherited from interface org.opensourcephysics.media.core.VideoType
TYPE_GIF, TYPE_IMAGE
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
Reports whether this type can record videosGets the name and/or description of this type.Gets the default file filter for this type.Gets the name and/or description of this type.Gets the file filter for this type.Gets a gif video recorder.Gets the short name of the video type.getVideo
(String name, String basePath, XMLControl control) Create a Video object from a file drop, file open, or TRK or TRZ file.boolean
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
Methods inherited from interface org.opensourcephysics.media.core.VideoType
_toString, accepts, getVideo, getVideoControlForExportOnly
-
Field Details
-
gifFilter
-
-
Constructor Details
-
GifVideoType
public GifVideoType()
-
-
Method Details
-
getVideo
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 -
getRecorder
Gets a gif video recorder.- Specified by:
getRecorder
in interfaceVideoType
- Returns:
- the video recorder
-
canRecord
public boolean canRecord()Reports whether this type can record videos -
getDescription
Gets the name and/or description of this type.- Specified by:
getDescription
in interfaceVideoType
- Returns:
- a description
-
getDefaultExtension
Gets the name and/or description of this type.- Specified by:
getDefaultExtension
in interfaceVideoType
- Returns:
- a description
-
getFileFilters
Gets the file filter for this type.- Specified by:
getFileFilters
in interfaceVideoType
- Returns:
- a file filter
-
getDefaultFileFilter
Gets the default file filter for this type. May return null.- Specified by:
getDefaultFileFilter
in interfaceVideoType
- Returns:
- the default file filter
-
isType
Return true if the specified video is this type. -
getTypeName
Description copied from interface:VideoType
Gets the short name of the video type.- Specified by:
getTypeName
in interfaceVideoType
- Returns:
- the type name
-