org.opensourcephysics.display
Class CircleLoader

java.lang.Object
  extended by org.opensourcephysics.controls.XMLLoader
      extended by org.opensourcephysics.display.CircleLoader
All Implemented Interfaces:
XML.ObjectLoader
Direct Known Subclasses:
InteractiveCircle.InteractiveCircleLoader

public class CircleLoader
extends XMLLoader

A class to save and load Circle objects in an XMLControl.


Constructor Summary
CircleLoader()
           
 
Method Summary
 java.lang.Object createObject(XMLControl control)
          Creates a Circle.
 java.lang.Object loadObject(XMLControl control, java.lang.Object obj)
          Loads data from the xml control into the Circle object.
 void saveObject(XMLControl control, java.lang.Object obj)
          Saves the Circle's data in the xml control.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CircleLoader

public CircleLoader()
Method Detail

saveObject

public void saveObject(XMLControl control,
                       java.lang.Object obj)
Saves the Circle's data in the xml control.

Specified by:
saveObject in interface XML.ObjectLoader
Overrides:
saveObject in class XMLLoader
Parameters:
control - XMLControl
obj - Object

createObject

public java.lang.Object createObject(XMLControl control)
Creates a Circle.

Specified by:
createObject in interface XML.ObjectLoader
Overrides:
createObject in class XMLLoader
Parameters:
control - XMLControl
Returns:
Object

loadObject

public java.lang.Object loadObject(XMLControl control,
                                   java.lang.Object obj)
Loads data from the xml control into the Circle object.

Specified by:
loadObject in interface XML.ObjectLoader
Overrides:
loadObject in class XMLLoader
Parameters:
control - XMLControl
obj - Object
Returns:
Object