org.opensourcephysics.display
Class ArrowLoader

java.lang.Object
  extended by org.opensourcephysics.controls.XMLLoader
      extended by org.opensourcephysics.display.ArrowLoader
All Implemented Interfaces:
XML.ObjectLoader

public class ArrowLoader
extends XMLLoader

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


Constructor Summary
ArrowLoader()
           
 
Method Summary
 java.lang.Object createObject(XMLControl control)
          Creates an Arrow.
 java.lang.Object loadObject(XMLControl control, java.lang.Object obj)
          Loads data from the xml control into the Arrow object.
 void saveObject(XMLControl control, java.lang.Object obj)
          Saves the Arrow'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

ArrowLoader

public ArrowLoader()
Method Detail

saveObject

public void saveObject(XMLControl control,
                       java.lang.Object obj)
Saves the Arrow'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 an Arrow.

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 Arrow object.

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