Class Element.Loader
java.lang.Object
org.opensourcephysics.display3d.core.Element.Loader
- All Implemented Interfaces:
- XML.ObjectLoader
- Direct Known Subclasses:
- ElementArrow.Loader,- ElementBox.Loader,- ElementCircle.Loader,- ElementCone.Loader,- ElementCylinder.Loader,- ElementEllipsoid.Loader,- ElementImage.Loader,- ElementObject.Loader,- ElementPlane.ElementPlaneLoader,- ElementPoints.ElementPointsLoader,- ElementPolygon.ElementPolygonLoader,- ElementSegment.Loader,- ElementSpring.Loader,- ElementSurface.Loader,- ElementTessellation.Loader,- ElementTetrahedron.Loader,- ElementText.Loader,- ElementTrail.Loader,- Group.Loader
- Enclosing interface:
- Element
A class to save and load Element data.
- 
Constructor SummaryConstructors
- 
Method SummaryModifier 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- 
Loaderpublic Loader()
 
- 
- 
Method Details- 
createObjectDescription 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 interface- XML.ObjectLoader
- Parameters:
- control- the xml control
- Returns:
- a new object
 
- 
saveObjectDescription 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 interface- XML.ObjectLoader
- Parameters:
- control- the xml control
- obj- the object
 
- 
loadObjectDescription 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 interface- XML.ObjectLoader
- Parameters:
- control- the xml control
- obj- the object
- Returns:
- the loaded object
 
 
-