Class DynamicSystemInspector

java.lang.Object
java.awt.Component
java.awt.Container
java.awt.Window
java.awt.Dialog
javax.swing.JDialog
org.opensourcephysics.cabrillo.tracker.DynamicSystemInspector
All Implemented Interfaces:
ImageObserver, MenuContainer, PropertyChangeListener, Serializable, EventListener, Accessible, RootPaneContainer, WindowConstants

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

    • frame

      protected TFrame frame
    • panelID

      protected Integer panelID
    • system

      protected DynamicSystem system
    • isVisible

      protected boolean isVisible
    • particleCount

      protected int particleCount
    • closeButton

      protected JButton closeButton
    • helpButton

      protected JButton helpButton
    • changeParticleListener

      protected ActionListener changeParticleListener
    • particlePanels

      protected JPanel[] particlePanels
    • changeButtons

      protected JButton[] changeButtons
    • selectedParticles

      protected DynamicParticle[] selectedParticles
    • particleLabels

      protected JLabel[] particleLabels
    • particleButtons

      protected TButton[] particleButtons
    • labelPanels

      protected JPanel[] labelPanels
    • newParticle

      protected DynamicParticle newParticle
    • systemButton

      protected TButton systemButton
    • selectListener

      protected MouseListener selectListener
  • Constructor Details

    • DynamicSystemInspector

      public DynamicSystemInspector(DynamicSystem track)
      Constructs a DynamicSystemInspector.
      Parameters:
      track - the DynamicSystem
  • Method Details

    • initialize

      public void initialize()
      Initializes this inspector.
    • propertyChange

      public void propertyChange(PropertyChangeEvent e)
      Responds to property change events. This listens for the following events: TFrame.PROPERTY_TFRAME_TAB from TFrame.
      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 the system's current particles.