Package org.opensourcephysics.controls
Class OSPInspector
java.lang.Object
org.opensourcephysics.controls.OSPInspector
Inspects an object's state using XML.
- Version:
- 1.0
- Author:
- W. Christian
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic OSPInspector
getInspector
(Object obj) Gets an OSPInspector if the oject has an XMLLoader.Gets the short name of the object that is being inspected.show()
Shows the inspector.toXML()
Gets the XML string for the object being inspected.
-
Constructor Details
-
OSPInspector
-
-
Method Details
-
getInspector
Gets an OSPInspector if the oject has an XMLLoader.- Parameters:
obj
- Object- Returns:
- OSPInspector
-
getShortObjectName
Gets the short name of the object that is being inspected.- Returns:
- String
-
toXML
Gets the XML string for the object being inspected.- Returns:
- String
-
show
Shows the inspector.- Returns:
- Object the object being inspected.
-