Class Style.StyleLoader
java.lang.Object
org.opensourcephysics.controls.XMLLoader
org.opensourcephysics.display3d.core.Style.Loader
org.opensourcephysics.display3d.simple3d.Style.StyleLoader
- All Implemented Interfaces:
XML.ObjectLoader
- Enclosing class:
- Style
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateObject(XMLControl control) Creates a new object if the class type has a no-arg constructor.loadObject(XMLControl control, Object obj) Loads the object with xml data.voidsaveObject(XMLControl control, Object obj) Empty method.
-
Constructor Details
-
StyleLoader
protected StyleLoader()
-
-
Method Details
-
createObject
Description copied from class:XMLLoaderCreates a new object if the class type has a no-arg constructor.- Specified by:
createObjectin interfaceXML.ObjectLoader- Specified by:
createObjectin classStyle.Loader- Parameters:
control- the control- Returns:
- the new object
-
saveObject
Description copied from class:XMLLoaderEmpty method.- Specified by:
saveObjectin interfaceXML.ObjectLoader- Overrides:
saveObjectin classStyle.Loader- Parameters:
control- the controlobj- the object
-
loadObject
Description copied from class:XMLLoaderLoads the object with xml data. Calculations and Animations should reinitialize after they are loaded.- Specified by:
loadObjectin interfaceXML.ObjectLoader- Overrides:
loadObjectin classStyle.Loader- Parameters:
control- the controlobj- the object- Returns:
- the loaded object
-