MCPcopy Create free account
hub / github.com/OpenSourcePhysics/osp / createTab

Method createTab

src/org/opensourcephysics/tools/DataTool.java:526–537  ·  view source on GitHub ↗

Creates a tab for the specified Data object. The tab name will be that of the Data object if it defines a getName() method. @param data the Data @return the new tab

(Data data)

Source from the content-addressed store, hash-verified

524 * @return the new tab
525 */
526 protected DataToolTab createTab(Data data) {
527 // be sure fitBuilder is instantiated
528 fitBuilder = getFitBuilder();
529 DataToolTab tab = new DataToolTab(data, this);
530 if (data != null) {
531 String name = data.getName();
532 if ((name != null) && !name.equals("")) { //$NON-NLS-1$ )
533 tab.setName(name);
534 }
535 }
536 return tab;
537 }
538
539 /**
540 * Removes the tab at the specified index.

Callers 10

addTabsMethod · 0.95
createTabsMethod · 0.95
loadDataMethod · 0.95
openMethod · 0.95
loadDatasetMethod · 0.95
sendMethod · 0.95
acceptMethod · 0.95
actionPerformedMethod · 0.95
pasteActionMethod · 0.95
windowOpenedMethod · 0.80

Calls 4

getFitBuilderMethod · 0.95
setNameMethod · 0.95
getNameMethod · 0.65
equalsMethod · 0.65

Tested by

no test coverage detected