|
|||||||||
| 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.InteractiveShape.InteractiveShapeLoader
protected static class InteractiveShape.InteractiveShapeLoader
A class to save and load InteractiveShape in an XMLControl.
| Constructor Summary | |
|---|---|
protected |
InteractiveShape.InteractiveShapeLoader()
|
| Method Summary | |
|---|---|
java.lang.Object |
createObject(XMLControl control)
Creates a new object if the class type has a no-arg constructor. |
protected java.awt.Shape |
getShape(java.lang.String type,
double x,
double y,
double w,
double h)
|
java.lang.Object |
loadObject(XMLControl control,
java.lang.Object obj)
Loads the object with xml data. |
void |
saveObject(XMLControl control,
java.lang.Object obj)
Empty method. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected InteractiveShape.InteractiveShapeLoader()
| Method Detail |
|---|
public void saveObject(XMLControl control,
java.lang.Object obj)
XMLLoader
saveObject in interface XML.ObjectLoadersaveObject in class XMLLoadercontrol - the controlobj - the objectpublic java.lang.Object createObject(XMLControl control)
XMLLoader
createObject in interface XML.ObjectLoadercreateObject in class XMLLoadercontrol - the control
protected java.awt.Shape getShape(java.lang.String type,
double x,
double y,
double w,
double h)
public java.lang.Object loadObject(XMLControl control,
java.lang.Object obj)
XMLLoader
loadObject in interface XML.ObjectLoaderloadObject in class XMLLoadercontrol - the controlobj - the object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||