Package org.opensourcephysics.display
Class BoundedShape.BoundedShapeLoader
java.lang.Object
org.opensourcephysics.controls.XMLLoader
org.opensourcephysics.display.InteractiveShape.InteractiveShapeLoader
org.opensourcephysics.display.BoundedShape.BoundedShapeLoader
- All Implemented Interfaces:
XML.ObjectLoader
- Enclosing class:
- BoundedShape
protected static class BoundedShape.BoundedShapeLoader
extends InteractiveShape.InteractiveShapeLoader
A class to save and load BoundedShape in an XMLControl.
-
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.void
saveObject
(XMLControl control, Object obj) Empty method.Methods inherited from class org.opensourcephysics.display.InteractiveShape.InteractiveShapeLoader
getShape
-
Constructor Details
-
BoundedShapeLoader
protected BoundedShapeLoader()
-
-
Method Details
-
saveObject
Description copied from class:XMLLoader
Empty method.- Specified by:
saveObject
in interfaceXML.ObjectLoader
- Overrides:
saveObject
in classInteractiveShape.InteractiveShapeLoader
- Parameters:
control
- the controlobj
- the object
-
createObject
Description copied from class:XMLLoader
Creates a new object if the class type has a no-arg constructor.- Specified by:
createObject
in interfaceXML.ObjectLoader
- Overrides:
createObject
in classInteractiveShape.InteractiveShapeLoader
- Parameters:
control
- the control- Returns:
- the new object
-
loadObject
Description copied from class:XMLLoader
Loads the object with xml data. Calculations and Animations should reinitialize after they are loaded.- Specified by:
loadObject
in interfaceXML.ObjectLoader
- Overrides:
loadObject
in classInteractiveShape.InteractiveShapeLoader
- Parameters:
control
- the controlobj
- the object- Returns:
- the loaded object
-