Class CameraInspector

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible, InteractionListener

public class CameraInspector extends JPanel implements InteractionListener

Title: CameraInspector

Description: This class creates an inspector for the camera. The inspector is provided in a javax.swing.JPanel, so that it can be used in other applications. A convenience class is provided to create a JFrame that contains the inspector.

Version:
July 2005
Author:
Francisco Esquembre
See Also:
  • Constructor Details

    • CameraInspector

      public CameraInspector(DrawingPanel3D panel)
      Creates a JPanel with a CameraInspector
      Parameters:
      panel - DrawingPanel3D The drawing panel 3D with the inspected camera
  • Method Details

    • createFrame

      public static JFrame createFrame(DrawingPanel3D panel)
      Creates a frame and, inside it, a CameraInspector.
      Parameters:
      panel - DrawingPanel3D The drawing panel 3D with the inspected camera
      Returns:
      JFrame
    • createFrame

      public static JFrame createFrame(CameraInspector inspector)
      Creates a frame with the given CameraInspector.
      Parameters:
      inspector - CameraInspector The inspector provided
      Returns:
      JFrame
    • setFormat

      public void setFormat(NumberFormat format)
      Sets the format for the fields in the inspector
      Parameters:
      format - NumberFormat
    • addActionListener

      public void addActionListener(ActionListener listener)
      Adds a listener to any change in the camera settings
      Parameters:
      defaultFormat - NumberFormat
    • removeActionListener

      public void removeActionListener(ActionListener listener)
      Removes a listener to any change in the camera settings
      Parameters:
      defaultFormat - NumberFormat
    • interactionPerformed

      public void interactionPerformed(InteractionEvent _event)
      Public as result of the implementation. Not to be used directly by final users.
      Specified by:
      interactionPerformed in interface InteractionListener
      Parameters:
      _event - InteractionEvent
    • updateFields

      public void updateFields()