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.void
saveObject
(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:
saveObject
in interfaceXML.ObjectLoader
- Overrides:
saveObject
in classXMLLoader
- Parameters:
control
- XMLControlobj
- Object
-
createObject
Creates an Arrow.- Specified by:
createObject
in interfaceXML.ObjectLoader
- Overrides:
createObject
in classXMLLoader
- Parameters:
control
- XMLControl- Returns:
- Object
-
loadObject
Loads data from the xml control into the Arrow object.- Specified by:
loadObject
in interfaceXML.ObjectLoader
- Overrides:
loadObject
in classXMLLoader
- Parameters:
control
- XMLControlobj
- Object- Returns:
- Object
-