Class DataTrackClipControl

java.lang.Object
java.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JPanel
org.opensourcephysics.cabrillo.tracker.DataTrackClipControl
All Implemented Interfaces:
ImageObserver, MenuContainer, PropertyChangeListener, Serializable, EventListener, Accessible

public class DataTrackClipControl extends JPanel implements PropertyChangeListener
See Also:
  • Field Details

    • dataTrack

      protected DataTrack dataTrack
    • drawingPanel

      protected DrawingPanel drawingPanel
    • spinnerPanel

      protected JPanel spinnerPanel
    • mappingGraphic

      protected Interactive mappingGraphic
    • videoInLabel

      protected JLabel videoInLabel
    • dataInLabel

      protected JLabel dataInLabel
    • dataClipLengthLabel

      protected JLabel dataClipLengthLabel
    • dataStrideLabel

      protected JLabel dataStrideLabel
    • videoInSpinner

      protected JSpinner videoInSpinner
    • dataInSpinner

      protected JSpinner dataInSpinner
    • dataClipLengthSpinner

      protected JSpinner dataClipLengthSpinner
    • dataStrideSpinner

      protected JSpinner dataStrideSpinner
    • refreshing

      protected boolean refreshing
    • drawVideoClip

      protected boolean drawVideoClip
    • particleDT

      protected ParticleDataTrack particleDT
  • Constructor Details

    • DataTrackClipControl

      public DataTrackClipControl(DataTrack model)
      Constructor.
      Parameters:
      model - the DataTrack
  • Method Details

    • createGUI

      protected void createGUI()
      Creates the GUI.
    • refreshSpinners

      protected void refreshSpinners()
      Refreshes the spinners.
    • refreshGUI

      protected void refreshGUI()
      Refreshes the GUI.
    • addMouseListenerToAll

      protected void addMouseListenerToAll(MouseListener listener)
      Adds a mouse listener to all JPanels associated with this control.
    • getMaximumSize

      public Dimension getMaximumSize()
      Overrides:
      getMaximumSize in class JComponent
    • propertyChange

      public void propertyChange(PropertyChangeEvent e)
      Specified by:
      propertyChange in interface PropertyChangeListener
    • setGraphic

      public void setGraphic(Interactive graphic)
      Sets the interactive graphic element that displays data elements and video frames.
      Parameters:
      graphic - the graphic element