Class PlotTrackView

All Implemented Interfaces:
ImageObserver, MenuContainer, PropertyChangeListener, Serializable, EventListener, Accessible, ScrollPaneConstants

public class PlotTrackView extends TrackView
This displays plot views of a track.
Author:
Douglas Brown
See Also:
  • Field Details

    • datasetManager

      protected DatasetManager datasetManager
    • xAxesLinked

      protected boolean xAxesLinked
    • plots

      protected TrackPlottingPanel[] plots
    • plotsButton

      protected JButton plotsButton
      for TrackChooserTView.viewButton
  • Constructor Details

    • PlotTrackView

      public PlotTrackView(TTrack track, TrackerPanel panel, PlotTView view)
      Constructs a PlotTrackView for the specified track and trackerPanel.
      Parameters:
      track - the track being viewed
      panel - the tracker panel interpreting the track
  • Method Details

    • refresh

      public void refresh(int frameNumber, int mode)
      Parameters:
      frameNumber -
      mode -
    • dispose

      protected void dispose()
      Overrides:
      dispose in class TrackView
    • getViewButton

      public JButton getViewButton()
      Gets the view button for TrackChooserTView
      Returns:
      the view button
    • isCustomState

      public boolean isCustomState()
      Returns true if this trackview is in a custom state.
      Returns:
      true if in a custom state, false if in the default state
    • setPlotCount

      public void setPlotCount(int plotCount)
      Sets the number of plots.
      Parameters:
      plotCount - the number of plot panels desired
    • getPlots

      public TrackPlottingPanel[] getPlots()
      Gets the visible plots.
      Returns:
      the visible plot panels
    • propertyChange

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

      protected void setXAxesLinked(boolean linked)
      Sets the xAxesLinked property.
      Parameters:
      linked - true to link x-axes of all plots
    • syncXAxesTo

      protected void syncXAxesTo(TrackPlottingPanel plot)
      Syncs the x-axes to another plot if xAxesLinked is true.
      Parameters:
      plot - the plot to sync to
    • syncYAxes

      protected void syncYAxes(TrackPlottingPanel... plots)
      Syncs the y-axes of two or more plots.
      Parameters:
      plots - the plots to sync
    • getLoader

      public static XML.ObjectLoader getLoader()
      Returns an XML.ObjectLoader to save and load object data.
      Returns:
      the XML.ObjectLoader
    • getPanelSize

      public Dimension getPanelSize()
    • exportImage

      public BufferedImage exportImage(int w, int h)
    • getPlotCount

      public int getPlotCount()
    • isRefreshEnabled

      protected boolean isRefreshEnabled()
      Overrides:
      isRefreshEnabled in class TrackView
    • finalize

      public void finalize()
      Overrides:
      finalize in class TrackView