Package org.opensourcephysics.display
Class CircleLoader
java.lang.Object
org.opensourcephysics.controls.XMLLoader
org.opensourcephysics.display.CircleLoader
- All Implemented Interfaces:
XML.ObjectLoader
- Direct Known Subclasses:
InteractiveCircle.InteractiveCircleLoader
A class to save and load Circle objects in an XMLControl.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateObject(XMLControl control) Creates a Circle.loadObject(XMLControl control, Object obj) Loads data from the xml control into the Circle object.voidsaveObject(XMLControl control, Object obj) Saves the Circle's data in the xml control.
-
Constructor Details
-
CircleLoader
public CircleLoader()
-
-
Method Details
-
saveObject
Saves the Circle's data in the xml control.- Specified by:
saveObjectin interfaceXML.ObjectLoader- Overrides:
saveObjectin classXMLLoader- Parameters:
control- XMLControlobj- Object
-
createObject
Creates a Circle.- Specified by:
createObjectin interfaceXML.ObjectLoader- Overrides:
createObjectin classXMLLoader- Parameters:
control- XMLControl- Returns:
- Object
-
loadObject
Loads data from the xml control into the Circle object.- Specified by:
loadObjectin interfaceXML.ObjectLoader- Overrides:
loadObjectin classXMLLoader- Parameters:
control- XMLControlobj- Object- Returns:
- Object
-