Class TTrackBar

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

public class TTrackBar extends JToolBar implements OSPRuntime.Disposable, PropertyChangeListener
This is a toolbar that display selected track properties in the NORTH section of a MainTView.
Author:
Douglas Brown
See Also:
  • Field Details

    • newVersionButton

      protected static JButton newVersionButton
    • selectTrackIcon

      protected static Icon selectTrackIcon
    • testButton

      protected static JButton testButton
    • testTimer

      protected static Timer testTimer
    • showOutOfMemoryDialog

      protected static boolean showOutOfMemoryDialog
    • toolbarEnd

      protected final Component toolbarEnd
    • toolbarComponentHeight

      protected int toolbarComponentHeight
    • numberFieldWidth

      protected int numberFieldWidth
    • trackButton

      protected TButton trackButton
    • maximizeButton

      protected JButton maximizeButton
    • selectButton

      protected TButton selectButton
    • emptyLabel

      protected JLabel emptyLabel
    • selectPopup

      protected JPopupMenu selectPopup
  • Method Details

    • finalize

      public void finalize()
      Overrides:
      finalize in class Object
    • buildUpgradePopup

      protected static void buildUpgradePopup(JPopupMenu popup)
    • setFontLevel

      public void setFontLevel(int level)
      Sets the font level.
      Parameters:
      level - the desired font level
    • getPopup

      protected JPopupMenu getPopup(TTrack track)
      Gets the popup menu for the specified track.
      Parameters:
      track - the track
      Returns:
      the popup menu
    • createGUI

      protected void createGUI()
      Creates the GUI.
    • getSelectTrackPopup

      protected JPopupMenu getSelectTrackPopup()
      Refreshes and returns the "select track" popup menu.
      Returns:
      the popup
    • refresh

      protected void refresh()
      Refreshes the GUI.
    • rebuild

      protected void rebuild()
    • paint

      public void paint(Graphics g)
      Overrides:
      paint in class JComponent
    • resizeField

      protected void resizeField(NumberField field)
      Resizes a NumberField.
      Parameters:
      field - the number field
    • propertyChange

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

      public void dispose()
      Cleans up this trackbar
      Specified by:
      dispose in interface OSPRuntime.Disposable
    • panel

      protected TrackerPanel panel()
    • toString

      public String toString()
      Overrides:
      toString in class Component