Class FitFunctionPanel

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

public class FitFunctionPanel extends FunctionPanel
This is a FunctionPanel used to manage fits for a DatasetCurveFitter.
Author:
Douglas Brown
See Also:
  • Field Details

    • originalName

      protected String originalName
  • Constructor Details

    • FitFunctionPanel

      public FitFunctionPanel(UserFunctionEditor editor)
      Constructor with user function editor. The editor must be preloaded with at least one main function (the fit function);
      Parameters:
      editor - the user function editor
  • Method Details

    • getFitFunctionEditor

      public UserFunctionEditor getFitFunctionEditor()
      Returns the fit function editor.
      Returns:
      the editor
    • getFitFunction

      public UserFunction getFitFunction()
      Returns the fit function.
      Returns:
      the fit UserFunction
    • getSupportFunctions

      public UserFunction[] getSupportFunctions()
      Returns the support functions.
      Returns:
      the fit UserFunction
    • getLabel

      public String getLabel()
      Gets an appropriate label for the FunctionTool dropdown.
      Overrides:
      getLabel in class FunctionPanel
      Returns:
      a label string
    • propertyChange

      public void propertyChange(PropertyChangeEvent e)
      Listens for property change "edit".
      Specified by:
      propertyChange in interface PropertyChangeListener
      Overrides:
      propertyChange in class FunctionPanel
      Parameters:
      e - the event
    • refreshFunctions

      protected void refreshFunctions()
      Refreshes the functions.
      Overrides:
      refreshFunctions in class FunctionPanel
    • refreshParameters

      protected void refreshParameters()
      Refreshes the parameters.
    • getLoader

      public static XML.ObjectLoader getLoader()
      Returns an ObjectLoader to save and load data for this class.
      Returns:
      the object loader