|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.opensourcephysics.media.core.ImageVideoType
public class ImageVideoType
This implements the VideoType interface with a buffered image type.
Constructor Summary | |
---|---|
ImageVideoType()
Default constructor uses all available file types. |
|
ImageVideoType(VideoFileFilter filter)
Constructor with a file filter for a specific image type. |
Method Summary | |
---|---|
boolean |
canRecord()
Reports whether this type can record videos |
java.lang.String |
getDefaultExtension()
Gets the default extension for this type. |
VideoFileFilter |
getDefaultFileFilter()
Gets the default file filter for this type. |
java.lang.String |
getDescription()
Gets the name and/or description of this type. |
VideoFileFilter[] |
getFileFilters()
Gets the file filter for this type. |
VideoRecorder |
getRecorder()
Gets a video recorder. |
Video |
getVideo(java.io.File file)
Opens a video file as an ImageVideo. |
Video |
getVideo(java.lang.String name)
Opens a named image as an ImageVideo. |
boolean |
isType(Video video)
Return true if the specified video is this type. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ImageVideoType()
public ImageVideoType(VideoFileFilter filter)
filter
- the file filterMethod Detail |
---|
public Video getVideo(java.io.File file)
file
- the video file
public Video getVideo(java.lang.String name)
getVideo
in interface VideoType
name
- the name of the image
public VideoRecorder getRecorder()
getRecorder
in interface VideoType
public boolean canRecord()
canRecord
in interface VideoType
public java.lang.String getDescription()
getDescription
in interface VideoType
public java.lang.String getDefaultExtension()
getDefaultExtension
in interface VideoType
public VideoFileFilter[] getFileFilters()
getFileFilters
in interface VideoType
public VideoFileFilter getDefaultFileFilter()
getDefaultFileFilter
in interface VideoType
public boolean isType(Video video)
isType
in interface VideoType
video
- the video
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |