public class FitBuilder extends FunctionTool
java.awt.Component.AccessibleAWTComponent, java.awt.Component.BaselineResizeBehavior, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategyjava.awt.Container.AccessibleAWTContainerjava.awt.Dialog.AccessibleAWTDialog, java.awt.Dialog.ModalExclusionType, java.awt.Dialog.ModalityTypeFunctionTool.DropdownRenderer| Modifier and Type | Field | Description |
|---|---|---|
protected java.util.TreeSet<java.lang.String> |
addedFits |
|
protected javax.swing.JButton |
autoloadButton |
|
protected org.opensourcephysics.tools.FitBuilder.AutoloadManager |
autoloadManager |
|
protected javax.swing.JButton |
cloneFitButton |
|
protected java.lang.String |
defaultFitName |
|
protected javax.swing.JButton |
deleteFitButton |
|
protected javax.swing.JButton |
loadButton |
|
protected javax.swing.JButton |
newFitButton |
|
protected java.awt.Component |
parent |
|
protected javax.swing.JButton |
saveButton |
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENTbuttonbar, closeButton, contentPane, curveFitters, defaultFontSizeItem, dropdown, dropdownbar, dropdownLabel, fontButton, fontLevel, forbiddenNames, helpAction, helpBase, helpButton, helpDialog, helpFrame, helpPath, noData, north, panels, parserNames, parserOperators, popup, redoButton, refreshing, selectedPanel, selectedPanelScroller, toolbar, toolbarComponents, undoButtonABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH| Constructor | Description |
|---|---|
FitBuilder(java.awt.Component c) |
Constructor
|
| Modifier and Type | Method | Description |
|---|---|---|
boolean |
addFitFunction(KnownFunction f) |
Adds a fit function unless already added or loaded.
|
protected FitFunctionPanel |
addFitFunctionPanel(UserFunction f) |
Adds a fit function panel.
|
protected boolean |
chooseFitFunctions(XMLControl control,
java.lang.String description) |
Displays a dialog with a list of fit functions to load or save.
|
protected void |
eliminateExcludedFunctions(XMLControl fitBuilderControl,
java.lang.String filePath) |
Eliminates unwanted function entries from a FitBuilder XMLControl.
|
protected org.opensourcephysics.tools.FitBuilder.AutoloadManager |
getAutoloadManager() |
Gets the autoload manager, creating it the first time called.
|
protected static java.util.Collection<java.lang.String> |
getInitialSearchPaths() |
Gets the autoload search paths.
|
DatasetCurveFitter |
getSelectedCurveFitter() |
Gets the DatasetCurveFitter currently selected in the DataTool.
|
static java.lang.String |
localize(java.lang.String functionName) |
|
void |
refreshDropdown(java.lang.String name) |
Refreshes the dropdown with names of the available fits.
|
protected void |
refreshGUI() |
Refreshes the GUI.
|
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, contains, createImage, createImage, createVolatileImage, createVolatileImage, disable, disableEvents, dispatchEvent, enable, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBaseline, getBaselineResizeBehavior, getBounds, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphicsConfiguration, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocation, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getSize, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isValid, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, prepareImage, prepareImage, printAll, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, requestFocus, requestFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, requestFocusInWindow, resize, resize, revalidate, setComponentOrientation, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeysEnabled, setForeground, setIgnoreRepaint, setLocale, setMaximumSize, setMixingCutoutShape, setName, setPreferredSize, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycleadd, add, add, add, add, addContainerListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalPolicy, getInsets, getLayout, getMaximumSize, getMinimumSize, getMousePosition, getPreferredSize, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, print, printComponents, processContainerEvent, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusTraversalKeys, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setFont, transferFocusDownCycle, validate, validateTreeaddNotify, getModalityType, getTitle, hide, isModal, isResizable, isUndecorated, setBackground, setModal, setModalityType, setOpacity, setResizable, setShape, setTitle, setUndecorated, show, toBackaddForbiddenNames, addPanel, clearPanels, firePropertyChange, getFontLevel, getLoader, getPanel, getPanelNames, getSelectedName, getSelectedPanel, getToolbarComponents, getUniqueName, isEmpty, isVisible, propertyChange, removePanel, renamePanel, setDefaultVariables, setFontLevel, setHelpAction, setHelpPath, setSelectedPanel, setToolbarComponents, setVisibleaddImpl, createRootPane, dialogInit, getAccessibleContext, getContentPane, getDefaultCloseOperation, getGlassPane, getGraphics, getJMenuBar, getLayeredPane, getRootPane, getTransferHandler, isDefaultLookAndFeelDecorated, isRootPaneCheckingEnabled, paramString, processWindowEvent, remove, repaint, setContentPane, setDefaultCloseOperation, setDefaultLookAndFeelDecorated, setGlassPane, setJMenuBar, setLayeredPane, setLayout, setRootPane, setRootPaneCheckingEnabled, setTransferHandler, updateclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitaddPropertyChangeListener, addPropertyChangeListener, addWindowFocusListener, addWindowListener, addWindowStateListener, applyResourceBundle, applyResourceBundle, createBufferStrategy, createBufferStrategy, dispose, getBackground, getBufferStrategy, getFocusableWindowState, getFocusCycleRootAncestor, getFocusOwner, getFocusTraversalKeys, getIconImages, getInputContext, getListeners, getLocale, getModalExclusionType, getMostRecentFocusOwner, getOpacity, getOwnedWindows, getOwner, getOwnerlessWindows, getShape, getToolkit, getType, getWarningString, getWindowFocusListeners, getWindowListeners, getWindows, getWindowStateListeners, isActive, isAlwaysOnTop, isAlwaysOnTopSupported, isAutoRequestFocus, isFocusableWindow, isFocusCycleRoot, isFocused, isLocationByPlatform, isOpaque, isShowing, isValidateRoot, pack, paint, postEvent, processEvent, processWindowFocusEvent, processWindowStateEvent, removeNotify, removeWindowFocusListener, removeWindowListener, removeWindowStateListener, reshape, setAlwaysOnTop, setAutoRequestFocus, setBounds, setBounds, setCursor, setFocusableWindowState, setFocusCycleRoot, setIconImage, setIconImages, setLocation, setLocation, setLocationByPlatform, setLocationRelativeTo, setMinimumSize, setModalExclusionType, setSize, setSize, setType, toFrontprotected javax.swing.JButton newFitButton
protected javax.swing.JButton deleteFitButton
protected javax.swing.JButton cloneFitButton
protected javax.swing.JButton loadButton
protected javax.swing.JButton saveButton
protected javax.swing.JButton autoloadButton
protected java.awt.Component parent
protected java.util.TreeSet<java.lang.String> addedFits
protected java.lang.String defaultFitName
protected org.opensourcephysics.tools.FitBuilder.AutoloadManager autoloadManager
public FitBuilder(java.awt.Component c)
c - a component to determine the dialog ownerpublic DatasetCurveFitter getSelectedCurveFitter()
public void refreshDropdown(java.lang.String name)
refreshDropdown in class FunctionToolname - the selected fit namepublic boolean addFitFunction(KnownFunction f)
f - the fit function to addprotected void eliminateExcludedFunctions(XMLControl fitBuilderControl, java.lang.String filePath)
fitBuilderControl - the XMLControl to modifyfilePath - the path to the XML file read by the XMLControlprotected void refreshGUI()
refreshGUI in class FunctionToolprotected boolean chooseFitFunctions(XMLControl control, java.lang.String description)
control - a FitBuilder XMLControldescription - a description of the purpose (ie load or save)protected FitFunctionPanel addFitFunctionPanel(UserFunction f)
f - the fit function to addprotected org.opensourcephysics.tools.FitBuilder.AutoloadManager getAutoloadManager()
public static java.lang.String localize(java.lang.String functionName)
protected static java.util.Collection<java.lang.String> getInitialSearchPaths()