org.opensourcephysics.display
Class GeneralPathLoader
java.lang.Object
org.opensourcephysics.controls.XMLLoader
org.opensourcephysics.display.GeneralPathLoader
- All Implemented Interfaces:
- XML.ObjectLoader
- public class GeneralPathLoader
- extends XMLLoader
A class that saves and loads a GeneralPath in an XMLControl.
-
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GeneralPathLoader
public GeneralPathLoader()
saveObject
public void saveObject(XMLControl control,
java.lang.Object obj)
- Description copied from class:
XMLLoader
- Empty method.
- Specified by:
saveObject in interface XML.ObjectLoader- Overrides:
saveObject in class XMLLoader
- Parameters:
control - the controlobj - the object
createObject
public java.lang.Object createObject(XMLControl control)
- Description copied from class:
XMLLoader
- Creates a new object if the class type has a no-arg constructor.
- Specified by:
createObject in interface XML.ObjectLoader- Overrides:
createObject in class XMLLoader
- Parameters:
control - the control
- Returns:
- the new object
loadObject
public java.lang.Object loadObject(XMLControl control,
java.lang.Object obj)
- Description copied from class:
XMLLoader
- Empty method.
- Specified by:
loadObject in interface XML.ObjectLoader- Overrides:
loadObject in class XMLLoader
- Parameters:
control - the controlobj - the object