Data, Drawable, LogMeasurable, Measurablepublic class DataFunction extends Dataset
| Modifier and Type | Class | Description |
|---|---|---|
protected static class |
DataFunction.Loader |
A class to save and load DataFunction data in an XMLControl.
|
AREA, BAR, CIRCLE, columnID, CUSTOM, customMarker, datasetID, errorBars, generalPath, index, maxPoints, maxPointsMultiplier, NO_MARKER, PIXEL, POST, sorted, SQUARE, visible, xColumnDescription, xmax, xmaxLogscale, xmin, xminLogscale, xpoints, yColumnDescription, ymax, ymaxLogscale, ymin, yminLogscale, ypoints| Constructor | Description |
|---|---|
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.
|
| Modifier and Type | Method | Description |
|---|---|---|
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.
|
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getListeners, getTableModelListeners, isCellEditable, removeTableModelListener, setValueAtconvertTableColumnIndex, countColumnsVisible, draw, drawFilledPlot, drawLinePlot, drawScatterPlot, getColumnClass, getColumnCount, getColumnID, getColumnName, getColumnNames, getData2D, getData3D, getDataList, getDatasets, getEdgeColor, getFillColor, getFillColors, getID, getIndex, getLineColor, getLineColors, getMarkerShape, getMarkerSize, getName, getPoints, getRowCount, getValidXPoints, getValidYPoints, getValueAt, getVisible, getXColumnDescription, getXColumnName, getXMax, getXMaxLogscale, getXMin, getXMinLogscale, getXPoints, getYColumnDescription, getYColumnName, getYMax, getYMaxLogscale, getYMin, getYMinLogscale, getYPoints, insertionSort, isConnected, isMeasured, isSorted, isXColumnVisible, isYColumnVisible, moveDatum, read, recalculatePath, setColumnID, setConnected, setCustomMarker, setID, setLineColor, setMarkerColor, setMarkerColor, setMarkerColor, setMarkerShape, setMarkerSize, setMaximumPoints, setName, setSorted, setStride, setVisible, setXColumnDescription, setXColumnVisible, setXYColumnNames, setXYColumnNames, setYColumnDescription, setYColumnVisible, writepublic DataFunction(DatasetManager input)
input - the input datapublic DataFunction(DatasetManager input, java.lang.String name, java.lang.String expression)
input - the input dataname - expression - 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()
Datasetpublic void append(double x,
double y)
public void append(double x,
double y,
double dx,
double dy)
Datasetpublic void append(double[] x,
double[] y)
Datasetpublic void append(double[] x,
double[] y,
double[] dx,
double[] dy)
Datasetpublic void clear()
Datasetpublic static XML.ObjectLoader getLoader()