Class OSPInspector

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

public class OSPInspector extends Object
Inspects an object's state using XML.
Version:
1.0
Author:
W. Christian
  • Constructor Details

    • OSPInspector

      protected OSPInspector(Object obj)
  • Method Details

    • getInspector

      public static OSPInspector getInspector(Object obj)
      Gets an OSPInspector if the oject has an XMLLoader.
      Parameters:
      obj - Object
      Returns:
      OSPInspector
    • getShortObjectName

      public String getShortObjectName()
      Gets the short name of the object that is being inspected.
      Returns:
      String
    • toXML

      public String toXML()
      Gets the XML string for the object being inspected.
      Returns:
      String
    • show

      public Object show()
      Shows the inspector.
      Returns:
      Object the object being inspected.