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 Video
createVideo
(String path) subclassed to GifVideo, ImageVideo, JSMovieVideo, and XuggleVideoprotected abstract Object
createVideo
(XMLControl control, String path) Implemented in JSMovieVideo and XuggleMovieVideo.void
saveObject
(XMLControl control, Object obj) Saves video data to an XMLControl.void
setVideo
(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.Loader
Saves video data to an XMLControl. GIFVideo and MovieVideo only- Specified by:
saveObject
in interfaceXML.ObjectLoader
- Overrides:
saveObject
in classVideoAdapter.Loader
- Parameters:
control
- the control to save toobj
- the Video object to save
-
setVideo
-
createObject
Description copied from class:VideoAdapter.Loader
Creates a new Video.- Specified by:
createObject
in interfaceXML.ObjectLoader
- Overrides:
createObject
in classVideoAdapter.Loader
- Parameters:
control
- the control- Returns:
- the new Video
-
createVideo
Description copied from class:VideoAdapter.Loader
subclassed to GifVideo, ImageVideo, JSMovieVideo, and XuggleVideo- Specified by:
createVideo
in classVideoAdapter.Loader
- Returns:
- Throws:
IOException
-
createVideo
Implemented in JSMovieVideo and XuggleMovieVideo.- Parameters:
control
-path
-- Returns:
- Throws:
IOException
-