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 TypeMethodDescriptionbooleanReports 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.booleanReturn 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, waitMethods 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:VideoTypeCreate 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:
getRecorderin 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:
getDescriptionin interfaceVideoType- Returns:
- a description
-
getDefaultExtension
Gets the name and/or description of this type.- Specified by:
getDefaultExtensionin interfaceVideoType- Returns:
- a description
-
getFileFilters
Gets the file filter for this type.- Specified by:
getFileFiltersin interfaceVideoType- Returns:
- a file filter
-
getDefaultFileFilter
Gets the default file filter for this type. May return null.- Specified by:
getDefaultFileFilterin interfaceVideoType- Returns:
- the default file filter
-
isType
Return true if the specified video is this type. -
getTypeName
Description copied from interface:VideoTypeGets the short name of the video type.- Specified by:
getTypeNamein interfaceVideoType- Returns:
- the type name
-