|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.opensourcephysics.controls.XMLLoader
org.opensourcephysics.display.DrawableShapeLoader
A class to save and load DrawableShapes in an XMLControl.
Constructor Summary | |
DrawableShapeLoader()
|
Method Summary | |
java.lang.Object |
createObject(XMLControl control)
Creates the DrawableShape containing a GeneralPath. |
java.lang.Object |
loadObject(XMLControl control,
java.lang.Object obj)
Loads the DrawableShape using the path stored in the control. |
void |
saveObject(XMLControl control,
java.lang.Object obj)
Saves a DrawableShape by saving the general path. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public DrawableShapeLoader()
Method Detail |
public void saveObject(XMLControl control, java.lang.Object obj)
saveObject
in interface XML.ObjectLoader
saveObject
in class XMLLoader
control
- XMLControlobj
- Objectpublic java.lang.Object createObject(XMLControl control)
createObject
in interface XML.ObjectLoader
createObject
in class XMLLoader
control
- XMLControl
public java.lang.Object loadObject(XMLControl control, java.lang.Object obj)
loadObject
in interface XML.ObjectLoader
loadObject
in class XMLLoader
control
- XMLControlobj
- Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |