Class CenterOfMassInspector

All Implemented Interfaces:
ImageObserver, MenuContainer, PropertyChangeListener, Serializable, EventListener, Accessible, RootPaneContainer, WindowConstants

public class CenterOfMassInspector extends JDialog implements PropertyChangeListener
This displays and sets CenterOfMass properties.
Author:
Douglas Brown
See Also:
  • Field Details

    • frame

      protected TFrame frame
    • panelID

      protected Integer panelID
    • cm

      protected CenterOfMass cm
    • okButton

      protected JButton okButton
    • checkboxPanel

      protected JPanel checkboxPanel
    • listener

      protected ActionListener listener
    • isVisible

      protected boolean isVisible
  • Constructor Details

    • CenterOfMassInspector

      public CenterOfMassInspector(CenterOfMass track)
      Constructs a CenterOfMassInspector.
      Parameters:
      track - the center of mass track
  • Method Details

    • initialize

      public void initialize()
      Initializes this inpector.
    • propertyChange

      public void propertyChange(PropertyChangeEvent e)
      Responds to property change events. This listens for the following events: TFrame.PROPERTY_TFRAME_TAB.
      Specified by:
      propertyChange in interface PropertyChangeListener
      Parameters:
      e - the property change event
    • setVisible

      public void setVisible(boolean vis)
      Overrides JDialog setVisible method.
      Overrides:
      setVisible in class Dialog
      Parameters:
      vis - true to show this inspector
    • dispose

      public void dispose()
      Disposes of this inspector.
      Overrides:
      dispose in class Window
    • updateDisplay

      protected void updateDisplay()
      Updates this inspector to show cm's current masses.