Class Camera.Loader
java.lang.Object
org.opensourcephysics.display3d.core.Camera.Loader
- All Implemented Interfaces:
XML.ObjectLoader
- Direct Known Subclasses:
Camera.CameraLoader
- Enclosing interface:
- Camera
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract ObjectcreateObject(XMLControl control) Creates an object from data in an XMLControl.loadObject(XMLControl control, Object obj) Loads an object with data from an XMLControl.voidsaveObject(XMLControl control, Object obj) Saves data from an object to an XMLControl.
-
Constructor Details
-
Loader
public Loader()
-
-
Method Details
-
createObject
Description copied from interface:XML.ObjectLoaderCreates an object from data in an XMLControl. The returned object must be castable to the class control.getObjectClass().- Specified by:
createObjectin interfaceXML.ObjectLoader- Parameters:
control- the xml control- Returns:
- a new object
-
saveObject
Description copied from interface:XML.ObjectLoaderSaves data from an object to an XMLControl. The object must be castable to the class control.getObjectClass().- Specified by:
saveObjectin interfaceXML.ObjectLoader- Parameters:
control- the xml controlobj- the object
-
loadObject
Description copied from interface:XML.ObjectLoaderLoads an object with data from an XMLControl. The object must be castable to the class control.getObjectClass().- Specified by:
loadObjectin interfaceXML.ObjectLoader- Parameters:
control- the xml controlobj- the object- Returns:
- the loaded object
-