Class Camera.Loader

java.lang.Object
org.opensourcephysics.display3d.core.Camera.Loader
All Implemented Interfaces:
XML.ObjectLoader
Direct Known Subclasses:
Camera.CameraLoader
Enclosing interface:
Camera

public abstract static class Camera.Loader extends Object implements XML.ObjectLoader
  • Constructor Details

    • Loader

      public Loader()
  • Method Details

    • createObject

      public abstract Object createObject(XMLControl control)
      Description copied from interface: XML.ObjectLoader
      Creates an object from data in an XMLControl. The returned object must be castable to the class control.getObjectClass().
      Specified by:
      createObject in interface XML.ObjectLoader
      Parameters:
      control - the xml control
      Returns:
      a new object
    • saveObject

      public void saveObject(XMLControl control, Object obj)
      Description copied from interface: XML.ObjectLoader
      Saves data from an object to an XMLControl. The object must be castable to the class control.getObjectClass().
      Specified by:
      saveObject in interface XML.ObjectLoader
      Parameters:
      control - the xml control
      obj - the object
    • loadObject

      public Object loadObject(XMLControl control, Object obj)
      Description copied from interface: XML.ObjectLoader
      Loads an object with data from an XMLControl. The object must be castable to the class control.getObjectClass().
      Specified by:
      loadObject in interface XML.ObjectLoader
      Parameters:
      control - the xml control
      obj - the object
      Returns:
      the loaded object