Package org.opensourcephysics.media.mov
Class MovieVideoType
java.lang.Object
org.opensourcephysics.media.mov.MovieVideoType
- All Implemented Interfaces:
VideoType
- Direct Known Subclasses:
JSMovieVideoType
,XuggleMovieVideoType
This implements the VideoType interface for "movie" video files. Video
engines like Xuggle and JS are subclasses of MovieVideoType.
- Version:
- 1.0
- Author:
- Douglas Brown
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static TreeSet<VideoFileFilter>
protected boolean
protected VideoFileFilter
Fields inherited from interface org.opensourcephysics.media.core.VideoType
TYPE_GIF, TYPE_IMAGE
-
Constructor Summary
ConstructorsConstructorDescriptionNo-arg constructor (no longer attempts calls the MovieFactory).MovieVideoType
(VideoFileFilter filter) Constructor with a file filter for a specific container type. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Reports whether this type can record videosGets the default extension for this type.Gets the default file filter for this type.Gets the name and/or description of this type.Gets the file filters for this type.void
setRecordable
(boolean recordable) Sets the recordable property - Only Xuggle movie factory can do this.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, getRecorder, getTypeName, getVideo, getVideo, getVideoControlForExportOnly, isType
-
Field Details
-
movieFileFilters
-
recordable
protected boolean recordable -
singleTypeFilter
-
-
Constructor Details
-
MovieVideoType
public MovieVideoType()No-arg constructor (no longer attempts calls the MovieFactory). -
MovieVideoType
Constructor with a file filter for a specific container type.- Parameters:
filter
- the file filter
-
-
Method Details
-
canRecord
public boolean canRecord()Reports whether this type can record videos -
setRecordable
public void setRecordable(boolean recordable) Sets the recordable property - Only Xuggle movie factory can do this.- Parameters:
recordable
- true if recordable
-
getFileFilters
Gets the file filters for this type.- Specified by:
getFileFilters
in interfaceVideoType
- Returns:
- an array of file filters
-
getDefaultFileFilter
Gets the default file filter for this type. May return null.- Specified by:
getDefaultFileFilter
in interfaceVideoType
- Returns:
- the default file filter
-
getDescription
Gets the name and/or description of this type.- Specified by:
getDescription
in interfaceVideoType
- Returns:
- a description
-
getDefaultExtension
Gets the default extension for this type.- Specified by:
getDefaultExtension
in interfaceVideoType
- Returns:
- an extension
-