Class TrackDataBuilder

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

public class TrackDataBuilder extends FunctionTool
A FunctionTool for building data functions for track data.
See Also:
  • Constructor Details

    • TrackDataBuilder

      protected TrackDataBuilder(TrackerPanel trackerPanel)
      Constructor.
      Parameters:
      trackerPanel - the TrackerPanel with the tracks
  • Method Details

    • createGUI

      protected void createGUI()
      Description copied from class: FunctionTool
      Creates the GUI.
      Overrides:
      createGUI in class FunctionTool
    • createButtons

      protected void createButtons()
      Creates the save, load and autoload buttons.
    • savePanelAction

      protected void savePanelAction(XMLControl control)
    • saveBuilderAction

      protected void saveBuilderAction(XMLControl control)
    • loadXMLFromDialog

      protected void loadXMLFromDialog()
    • loadXMLTrackData

      protected void loadXMLTrackData(XMLControl control)
    • loadXMLDataFunction

      protected void loadXMLDataFunction(XMLControl control)
    • setTitles

      protected void setTitles()
      Overrides:
      setTitles in class FunctionTool
    • refreshGUI

      protected void refreshGUI()
      Refreshes the GUI.
      Overrides:
      refreshGUI in class FunctionTool
    • setFontLevel

      public void setFontLevel(int level)
      Description copied from class: FunctionTool
      Sets the font level.
      Overrides:
      setFontLevel in class FunctionTool
      Parameters:
      level - the level
    • addPanel

      public void addPanel(String name, FunctionPanel panel)
      Adds a FunctionPanel.
      Overrides:
      addPanel in class FunctionTool
      Parameters:
      name - a descriptive name
      panel - the FunctionPanel
    • choosePanelDataFunctions

      protected void choosePanelDataFunctions(XMLControl control, String description, Collection<String[]> selectedFunctions, ActionListener listener)
      Chooses data functions from a DataFunctionPanel XMLControl.
      Parameters:
      control - the XMLControl
      description - "Save" or "Load"
      selectedFunctions - collection of DataFunction choices
    • chooseBuilderDataFunctions

      protected void chooseBuilderDataFunctions(XMLControl control, String description, Collection<String[]> selectedFunctions, ActionListener listener)
      Chooses data functions from a DataBuilder XMLControl.
      Parameters:
      control - the XMLControl
      description - "Save" or "Load"
      selectedFunctions - collection of DataFunction choices
    • getAutoloadManager

      protected org.opensourcephysics.cabrillo.tracker.TrackDataBuilder.AutoloadManager getAutoloadManager()
      Gets the autoload manager, creating it the first time called.
      Returns:
      the autoload manageer
    • addPanelWithoutAutoloading

      protected void addPanelWithoutAutoloading(String name, FunctionPanel panel)
      Adds a FunctionPanel without autoloading any data functions.
      Parameters:
      name - a descriptive name
      panel - the FunctionPanel
    • dispose

      public void dispose()
      Disposes of this data builder.
      Overrides:
      dispose in class FunctionTool
    • finalize

      public void finalize()
      Overrides:
      finalize in class Object