Class TrackView

All Implemented Interfaces:
ImageObserver, MenuContainer, PropertyChangeListener, Serializable, EventListener, Accessible, ScrollPaneConstants
Direct Known Subclasses:
PlotTrackView, TableTrackView

public abstract class TrackView extends JScrollPane implements PropertyChangeListener
This displays a view of a single track on a TrackerPanel.
Author:
Douglas Brown
See Also:
  • Field Details

    • viewParent

      protected TrackChooserTView viewParent
    • frame

      protected TFrame frame
    • panelID

      protected Integer panelID
    • myType

      protected int myType
    • forceRefresh

      protected boolean forceRefresh
    • highlightVisible

      protected boolean highlightVisible
    • highlightFrames

      protected final BitSet highlightFrames
    • highlightRows

      protected final BitSet highlightRows
    • toolbarComponents

      protected ArrayList<Component> toolbarComponents
    • trackIcon

      protected Icon trackIcon
    • myID

      protected int myID
    • myDatasetIndex

      protected int myDatasetIndex
    • prevDatasetIndex

      protected int prevDatasetIndex
    • clipAdjusting

      protected boolean clipAdjusting
  • Constructor Details

  • Method Details

    • dispose

      protected void dispose()
    • getName

      public String getName()
      Overrides:
      getName in class Component
    • getIcon

      public Icon getIcon()
    • setDatasetIndex

      public void setDatasetIndex(int index)
    • getOwner

      protected TViewChooser getOwner()
      Gets the TViewChooser that owns (displays) this track view.
      Returns:
      the TViewChooser. May return null if this is not displayed
    • getToolBarComponents

      public ArrayList<Component> getToolBarComponents()
      Gets toolbar components for toolbar of parent view
      Returns:
      an ArrayList of components to be added to a toolbar
    • propertyChange

      public void propertyChange(PropertyChangeEvent e)
      Responds to property change events. TrackView receives the following events: "step" or "steps" from the track.
      Specified by:
      propertyChange in interface PropertyChangeListener
      Parameters:
      e - the property change event
    • isRefreshEnabled

      protected boolean isRefreshEnabled()
    • trimDefined

      public static String trimDefined(String name)
    • setClipAdjusting

      public void setClipAdjusting(int frameNo, boolean adjusting)
      The user is adjusting the clip using the carets under the VideoPlayer slider. Minimize the amount of updates.
      Parameters:
      frameNo -
      adjusting -
    • highlightFrames

      public void highlightFrames(int frameNumber)
      While this is sufficient for PlotTrackView, TableTrackView will still have to convert this to row numbers;
      Parameters:
      frameNumber -
    • toString

      public String toString()
      Overrides:
      toString in class Component
    • finalize

      public void finalize()
      Overrides:
      finalize in class Object