Class TrackControl

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

public class TrackControl extends JDialog implements OSPRuntime.Disposable, PropertyChangeListener
This is a dialog containing buttons for all user tracks.
Author:
Douglas Brown
See Also:
  • Field Details

    • panelTrackcontrols

      protected static Map<Integer,TrackControl> panelTrackcontrols
    • frame

      protected TFrame frame
    • panelID

      protected Integer panelID
    • trackBarPanel

      protected JPanel trackBarPanel
    • trackBars

      protected JToolBar[] trackBars
    • positioned

      protected boolean positioned
    • trackCount

      protected int trackCount
    • wasVisible

      protected boolean wasVisible
    • shiftKeyListener

      protected KeyListener shiftKeyListener
    • newTrackButton

      protected TButton newTrackButton
  • Method Details

    • getControl

      public static TrackControl getControl(TrackerPanel panel)
      Gets the track control for the specified tracker panel.
      Parameters:
      panel - the tracker panel to control
      Returns:
      the track control
    • getPreferredSize

      public Dimension getPreferredSize()
      Overrides:
      getPreferredSize in class Container
    • setVisible

      public void setVisible(boolean vis)
      Overrides:
      setVisible in class Dialog
    • propertyChange

      public void propertyChange(PropertyChangeEvent e)
      Responds to property change events from TrackerPanel.
      Specified by:
      propertyChange in interface PropertyChangeListener
      Parameters:
      e - the property change event
    • isEmpty

      public boolean isEmpty()
      Return true if this has no track buttons.
      Returns:
      true if empty
    • refresh

      protected void refresh()
      Refreshes buttons and vectors.
    • dispose

      public void dispose()
      Disposes of this track control.
      Specified by:
      dispose in interface OSPRuntime.Disposable
      Overrides:
      dispose in class Window
    • finalize

      public void finalize()
      Overrides:
      finalize in class Object