Class DrawingPanel3D.Loader
java.lang.Object
org.opensourcephysics.display3d.core.DrawingPanel3D.Loader
- All Implemented Interfaces:
XML.ObjectLoader
- Enclosing interface:
- DrawingPanel3D
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract Object
createObject
(XMLControl control) Creates an object from data in an XMLControl.loadObject
(XMLControl control, Object obj) Loads an object with data from an XMLControl.void
saveObject
(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.ObjectLoader
Creates an object from data in an XMLControl. The returned object must be castable to the class control.getObjectClass().- Specified by:
createObject
in interfaceXML.ObjectLoader
- Parameters:
control
- the xml control- Returns:
- a new object
-
saveObject
Description copied from interface:XML.ObjectLoader
Saves data from an object to an XMLControl. The object must be castable to the class control.getObjectClass().- Specified by:
saveObject
in interfaceXML.ObjectLoader
- Parameters:
control
- the xml controlobj
- the object
-
loadObject
Description copied from interface:XML.ObjectLoader
Loads an object with data from an XMLControl. The object must be castable to the class control.getObjectClass().- Specified by:
loadObject
in interfaceXML.ObjectLoader
- Parameters:
control
- the xml controlobj
- the object- Returns:
- the loaded object
-