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