Class ElementSurface.Loader
java.lang.Object
org.opensourcephysics.display3d.core.Element.Loader
org.opensourcephysics.display3d.core.ElementSurface.Loader
- All Implemented Interfaces:
XML.ObjectLoader
- Enclosing interface:
- ElementSurface
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionloadObject
(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.Methods inherited from class org.opensourcephysics.display3d.core.Element.Loader
createObject
-
Constructor Details
-
Loader
public Loader()
-
-
Method Details
-
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
- Overrides:
saveObject
in classElement.Loader
- 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
- Overrides:
loadObject
in classElement.Loader
- Parameters:
control
- the xml controlobj
- the object- Returns:
- the loaded object
-