Class AttachmentDialog

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

public class AttachmentDialog extends JDialog implements PropertyChangeListener
This displays and sets point attachments.
Author:
Douglas Brown
See Also:
  • Field Details

    • trackID

      protected int trackID
    • frame

      protected TFrame frame
    • panelID

      protected Integer panelID
    • isVisible

      protected boolean isVisible
    • closeButton

      protected JButton closeButton
    • helpButton

      protected JButton helpButton
    • attachableTracks

      protected ArrayList<TTrack> attachableTracks
    • table

      protected JTable table
    • cellheight

      protected int cellheight
    • rendererDropdown

      protected JComboBox<Object> rendererDropdown
    • editorDropdown

      protected JComboBox<Object> editorDropdown
    • measuringToolDropdown

      protected JComboBox<TTrack> measuringToolDropdown
    • dummyMass

      protected TTrack dummyMass
    • dummyIcon

      protected Icon dummyIcon
    • scrollPane

      protected JScrollPane scrollPane
    • attachmentCellRenderer

      protected org.opensourcephysics.cabrillo.tracker.AttachmentDialog.AttachmentCellRenderer attachmentCellRenderer
    • trackCellRenderer

      protected org.opensourcephysics.cabrillo.tracker.AttachmentDialog.TTrackRenderer trackCellRenderer
    • trackEditorRenderer

      protected org.opensourcephysics.cabrillo.tracker.AttachmentDialog.TTrackRenderer trackEditorRenderer
      in JavaScript, editor must have its own renderer
    • toolRenderer

      protected org.opensourcephysics.cabrillo.tracker.AttachmentDialog.TTrackRenderer toolRenderer
    • attachmentsPanel

      protected JPanel attachmentsPanel
    • circleFitterPanel

      protected JPanel circleFitterPanel
    • circleFitterStartStopPanel

      protected JPanel circleFitterStartStopPanel
    • stepsButton

      protected JRadioButton stepsButton
    • tracksButton

      protected JRadioButton tracksButton
    • relativeCheckbox

      protected JCheckBox relativeCheckbox
    • startField

      protected IntegerField startField
    • countField

      protected IntegerField countField
    • startLabel

      protected JLabel startLabel
    • countLabel

      protected JLabel countLabel
    • refreshing

      protected boolean refreshing
  • Constructor Details

    • AttachmentDialog

      public AttachmentDialog(TTrack track)
      Constructs an AttachmentDialog.
      Parameters:
      track - the measuring tool
  • Method Details

    • propertyChange

      public void propertyChange(PropertyChangeEvent e)
      Responds to property change events.
      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 dialog.
      Overrides:
      dispose in class Window
    • setMeasuringTool

      protected void setMeasuringTool(TTrack tool)
      Sets the measuring tool.
    • refreshDropdowns

      protected void refreshDropdowns()
      Refreshes the attachment and measuring tool dropdowns.
    • refreshFieldsAndButtons

      protected void refreshFieldsAndButtons(CircleFitter fitter)
      Refreshes the start and end fields based on the state of a CircleFitter. Also refreshes the button state.
      Parameters:
      fitter - the CircleFitter
    • refreshGUI

      protected void refreshGUI()
      Updates this dialog to show the system's current attachments.
    • setFontLevel

      public void setFontLevel(int level)