Package org.opensourcephysics.media.core
Class VideoAdapter.Loader
java.lang.Object
org.opensourcephysics.media.core.VideoAdapter.Loader
- All Implemented Interfaces:
XML.ObjectLoader
- Direct Known Subclasses:
MovieVideo.Loader
- Enclosing class:
- VideoAdapter
A class to save and load and save Video data.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateObject
(XMLControl control) Creates a new Video.protected abstract Video
createVideo
(String path) subclassed to GifVideo, ImageVideo, JSMovieVideo, and XuggleVideoloadObject
(XMLControl control, Object obj) This does nothing, but is required by the XML.ObjectLoader interfacevoid
saveObject
(XMLControl control, Object obj) Saves video data to an XMLControl.
-
Constructor Details
-
Loader
protected Loader()
-
-
Method Details
-
createVideo
subclassed to GifVideo, ImageVideo, JSMovieVideo, and XuggleVideo- Parameters:
path
-- Returns:
- Throws:
IOException
-
saveObject
Saves video data to an XMLControl. GIFVideo and MovieVideo only- Specified by:
saveObject
in interfaceXML.ObjectLoader
- Parameters:
control
- the control to save toobj
- the Video object to save
-
createObject
Creates a new Video.- Specified by:
createObject
in interfaceXML.ObjectLoader
- Parameters:
control
- the control- Returns:
- the new Video
-
loadObject
This does nothing, but is required by the XML.ObjectLoader interface- Specified by:
loadObject
in interfaceXML.ObjectLoader
- Parameters:
control
- the controlobj
- the Video object- Returns:
- the loaded object
-