|
|||||||||
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.
Field Summary | |
---|---|
protected javax.swing.filechooser.FileFilter |
jpgFilter
|
protected javax.swing.filechooser.FileFilter |
pngFilter
|
Constructor Summary | |
---|---|
ImageVideoType()
|
Method Summary | |
---|---|
boolean |
canRecord()
Reports whether this type can record videos |
java.lang.String |
getDefaultExtension()
Gets the default extension for this type. |
java.lang.String |
getDescription()
Gets the name and/or description of this type. |
javax.swing.filechooser.FileFilter[] |
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 |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected javax.swing.filechooser.FileFilter jpgFilter
protected javax.swing.filechooser.FileFilter pngFilter
Constructor Detail |
---|
public ImageVideoType()
Method 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 javax.swing.filechooser.FileFilter[] getFileFilters()
getFileFilters
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 |