|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjavax.swing.filechooser.FileFilter
org.opensourcephysics.media.core.VideoFileFilter
public class VideoFileFilter
This is a FileFilter that accepts video files. Filters for single container types (eg, gif, mov, avi, mp4, etc) are created by specifying the container type and one or more extensions in the constructor. The no-arg constructor creates a filter that accepts all container types in the collection VideoIO.singleVideoTypeFilters.
| Constructor Summary | |
|---|---|
VideoFileFilter()
No-arg constructor. |
|
VideoFileFilter(java.lang.String containerType,
java.lang.String[] extensions)
Constructor with container type and accepted file extensions. |
|
| Method Summary | |
|---|---|
boolean |
accept(java.io.File f)
Accepts directories and files with extensions specified in constructor, or (no-arg constructor) with any extension in VideoIO.singleVideoTypeFilters. |
int |
compareTo(VideoFileFilter filter)
Compares this filter to another. |
java.lang.String |
getContainerType()
Gets the container type. |
java.lang.String |
getDefaultExtension()
Gets the default extension to suggest when saving. |
java.lang.String |
getDescription()
Gets a description of the file types accepted by this filter. |
java.lang.String[] |
getExtensions()
Gets all extensions accepted by this filter. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public VideoFileFilter()
public VideoFileFilter(java.lang.String containerType,
java.lang.String[] extensions)
containerType - the container type (eg "mov" or "jpg")extensions - array of accepted extensions| Method Detail |
|---|
public boolean accept(java.io.File f)
accept in class javax.swing.filechooser.FileFilterf - the file
public java.lang.String getDescription()
getDescription in class javax.swing.filechooser.FileFilterpublic java.lang.String getDefaultExtension()
public java.lang.String[] getExtensions()
public java.lang.String getContainerType()
public int compareTo(VideoFileFilter filter)
compareTo in interface java.lang.Comparable<VideoFileFilter>filter - the filter to compare
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||