Package org.opensourcephysics.media.mov
Class MovieVideo.Loader
java.lang.Object
org.opensourcephysics.media.core.VideoAdapter.Loader
org.opensourcephysics.media.mov.MovieVideo.Loader
- All Implemented Interfaces:
XML.ObjectLoader
- Direct Known Subclasses:
JSMovieVideo.Loader,XuggleVideo.Loader
- Enclosing class:
- MovieVideo
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateObject(XMLControl control) Creates a new Video.protected VideocreateVideo(String path) subclassed to GifVideo, ImageVideo, JSMovieVideo, and XuggleVideoprotected abstract ObjectcreateVideo(XMLControl control, String path) Implemented in JSMovieVideo and XuggleMovieVideo.voidsaveObject(XMLControl control, Object obj) Saves video data to an XMLControl.voidsetVideo(String path, MovieVideo video, String engine) Methods inherited from class org.opensourcephysics.media.core.VideoAdapter.Loader
loadObject
-
Constructor Details
-
Loader
public Loader()
-
-
Method Details
-
saveObject
Description copied from class:VideoAdapter.LoaderSaves video data to an XMLControl. GIFVideo and MovieVideo only- Specified by:
saveObjectin interfaceXML.ObjectLoader- Overrides:
saveObjectin classVideoAdapter.Loader- Parameters:
control- the control to save toobj- the Video object to save
-
setVideo
-
createObject
Description copied from class:VideoAdapter.LoaderCreates a new Video.- Specified by:
createObjectin interfaceXML.ObjectLoader- Overrides:
createObjectin classVideoAdapter.Loader- Parameters:
control- the control- Returns:
- the new Video
-
createVideo
Description copied from class:VideoAdapter.Loadersubclassed to GifVideo, ImageVideo, JSMovieVideo, and XuggleVideo- Specified by:
createVideoin classVideoAdapter.Loader- Returns:
- Throws:
IOException
-
createVideo
Implemented in JSMovieVideo and XuggleMovieVideo.- Parameters:
control-path-- Returns:
- Throws:
IOException
-