|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javax.swing.table.AbstractTableModel org.opensourcephysics.display.Dataset org.opensourcephysics.display.DataFunction
public class DataFunction
This is a dataset whose values are determined by a multivariable function evaluated with input constants and linked datasets.
Nested Class Summary | |
---|---|
protected static class |
DataFunction.Loader
A class to save and load DataFunction data in an XMLControl. |
Field Summary |
---|
Fields inherited from class org.opensourcephysics.display.Dataset |
---|
AREA, BAR, CIRCLE, columnID, CUSTOM, customMarker, datasetID, errorBars, generalPath, index, maxPoints, NO_MARKER, PIXEL, POST, sorted, SQUARE, visible, xmax, xmaxLogscale, xmin, xminLogscale, xpoints, ymax, ymaxLogscale, ymin, yminLogscale, ypoints |
Fields inherited from class javax.swing.table.AbstractTableModel |
---|
listenerList |
Constructor Summary | |
---|---|
DataFunction(DatasetManager input)
Constructs a DataFunction for the specified input data. |
|
DataFunction(DatasetManager input,
java.lang.String name,
java.lang.String expression)
Constructs a DataFunction for the specified input data, name and expression. |
Method Summary | |
---|---|
void |
append(double[] x,
double[] y)
Appends (x,y) arrays to the Dataset. |
void |
append(double[] x,
double[] y,
double[] dx,
double[] dy)
Appends arrays of data points and uncertainties to the Dataset. |
void |
append(double x,
double y)
Overrides Dataset methods. |
void |
append(double x,
double y,
double dx,
double dy)
Appends a data point and its uncertainty to the Dataset. |
void |
clear()
Clear all data from this Dataset. |
java.lang.String |
getExpression()
Gets the expression. |
java.lang.String |
getInputString()
Gets the current input string. |
static XML.ObjectLoader |
getLoader()
Returns the XML.ObjectLoader for this class. |
void |
refreshFunctionData()
Refreshes the data points. |
void |
setExpression(java.lang.String e)
Sets the expression. |
void |
setYColumnName(java.lang.String name)
Sets the y-column name (ie the function name). |
java.lang.String |
toString()
Creates a string representation of the data. |
Methods inherited from class javax.swing.table.AbstractTableModel |
---|
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getListeners, getTableModelListeners, isCellEditable, removeTableModelListener, setValueAt |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public DataFunction(DatasetManager input)
input
- the input datapublic DataFunction(DatasetManager input, java.lang.String name, java.lang.String expression)
input
- the input dataname
- expression
- Method Detail |
---|
public void setExpression(java.lang.String e)
e
- the expression stringpublic java.lang.String getExpression()
public void setYColumnName(java.lang.String name)
name
- the namepublic java.lang.String getInputString()
public void refreshFunctionData()
public java.lang.String toString()
Dataset
toString
in class Dataset
public void append(double x, double y)
append
in class Dataset
public void append(double x, double y, double dx, double dy)
Dataset
append
in class Dataset
public void append(double[] x, double[] y)
Dataset
append
in class Dataset
public void append(double[] x, double[] y, double[] dx, double[] dy)
Dataset
append
in class Dataset
public void clear()
Dataset
clear
in class Dataset
public static XML.ObjectLoader getLoader()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |