org.opensourcephysics.controls
Class OSPInspector

java.lang.Object
  extended by org.opensourcephysics.controls.OSPInspector

public class OSPInspector
extends java.lang.Object

Inspects an object's state using XML.

Version:
1.0
Author:
W. Christian

Constructor Summary
protected OSPInspector(java.lang.Object obj)
           
 
Method Summary
static OSPInspector getInspector(java.lang.Object obj)
          Gets an OSPInspector if the oject has an XMLLoader.
 java.lang.String getShortObjectName()
          Gets the short name of the object that is being inspected.
 java.lang.Object show()
          Shows the inspector.
 java.lang.String toXML()
          Gets the XML string for the object being inspected.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OSPInspector

protected OSPInspector(java.lang.Object obj)
Method Detail

getInspector

public static OSPInspector getInspector(java.lang.Object obj)
Gets an OSPInspector if the oject has an XMLLoader.

Parameters:
obj - Object
Returns:
OSPInspector

getShortObjectName

public java.lang.String getShortObjectName()
Gets the short name of the object that is being inspected.

Returns:
String

toXML

public java.lang.String toXML()
Gets the XML string for the object being inspected.

Returns:
String

show

public java.lang.Object show()
Shows the inspector.

Returns:
Object the object being inspected.