Package org.opensourcephysics.media.mov
Class JSMovieVideoType
java.lang.Object
org.opensourcephysics.media.mov.MovieVideoType
org.opensourcephysics.media.mov.JSMovieVideoType
- All Implemented Interfaces:
VideoType
This implements the VideoType interface with a JS type.
- Author:
- hansonr
-
Field Summary
Fields inherited from class org.opensourcephysics.media.mov.MovieVideoType
movieFileFilters, recordable, singleTypeFilterFields inherited from interface org.opensourcephysics.media.core.VideoType
TYPE_GIF, TYPE_IMAGE -
Constructor Summary
ConstructorsConstructorDescriptionNo-arg constructor.JSMovieVideoType(VideoFileFilter filter) Constructor with a file filter for a specific container type. -
Method Summary
Modifier and TypeMethodDescriptionGets the name and/or description of this type.Gets a 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.static voidregister()Methods inherited from class org.opensourcephysics.media.mov.MovieVideoType
canRecord, getDefaultExtension, getDefaultFileFilter, getFileFilters, setRecordableMethods 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
-
Constructor Details
-
JSMovieVideoType
public JSMovieVideoType()No-arg constructor. -
JSMovieVideoType
Constructor with a file filter for a specific container type.- Parameters:
filter- the file filter
-
-
Method Details
-
register
public static void register() -
getDescription
Gets the name and/or description of this type.- Specified by:
getDescriptionin interfaceVideoType- Overrides:
getDescriptionin classMovieVideoType- Returns:
- a description
-
isType
Return true if the specified video is this type.- Parameters:
video- the video- Returns:
- true if the video is this type
-
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- Returns:
-
getRecorder
Description copied from interface:VideoTypeGets a video recorder. Returns null if canRecord() is false.- Returns:
- the video recorder
-
getTypeName
Description copied from interface:VideoTypeGets the short name of the video type.- Returns:
- the type name
-