Package org.opensourcephysics.display
Class Stripchart
java.lang.Object
org.opensourcephysics.display.DataTable.DataModel
org.opensourcephysics.display.Dataset
org.opensourcephysics.display.Stripchart
- All Implemented Interfaces:
Data,Drawable,LogMeasurable,Measurable
Stripchart stores data having increasing x values.
Only data within the interval [lastx-xrange, lastx] is retained.
- Version:
- 1.0
- Author:
- Wolfgang Christian
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class org.opensourcephysics.display.Dataset
Dataset.Loader, Dataset.Model -
Field Summary
Fields inherited from class org.opensourcephysics.display.Dataset
AREA, BAR, CIRCLE, columnID, CUSTOM, customMarker, datasetID, errorBars, generalPath, id, index, maxPoints, maxPointsMultiplier, model, NO_MARKER, PIXEL, POST, shift, sorted, SQUARE, update, visible, xColumnDescription, xmax, xmaxLogscale, xmin, xminLogscale, xpoints, yColumnDescription, ymax, ymaxLogscale, ymin, yminLogscale, ypoints -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedConstructs a Stripchart for use by the XML loader.Stripchart(double _xrange, double _yrange) Constructs a Stripchart witht he given ranges. -
Method Summary
Modifier and TypeMethodDescriptionvoidappend(double[] _xpoints, double[] _ypoints) Appends (x,y) data-arrays to the Stipchart.voidappend(double x, double y) Appends an (x,y) datum to the Stipchart.voidclear()Clears all data from this Dataset.voidenable(boolean enabled) static XML.ObjectLoaderReturns the XML.ObjectLoader for this class.voidsetRange(double _xrange, double _yrange) Sets the range of the stipchart.Methods inherited from class org.opensourcephysics.display.Dataset
append, append, append, convertTableColumnIndex, countColumnsVisible, draw, drawable, drawClip, drawData, drawScatterPlot, findDataSet, getColumnCount, getColumnID, getColumnName, getColumnNames, getData2D, getData3D, getDataList, getDatasets, getEdgeColor, getFillColor, getFillColors, getID, getIndex, getLineColor, getLineColors, getMarkerShape, getMarkerSize, getMean, getName, getNaNCount, getPoints, getRowCount, getShift, getTranslateInstance, getValidXPoints, getValidYPoints, getValueAt, getVisible, getX, getXColumnDescription, getXColumnName, getXMax, getXMaxLogscale, getXMin, getXMinLogscale, getXPoints, getXPointsRaw, getY, getYColumnDescription, getYColumnName, getYMax, getYMaxLogscale, getYMin, getYMinLogscale, getYPoints, getYPointsRaw, getYShifted, insertionSort, isConnected, isMeasured, isShifted, isSorted, isXColumnVisible, isYColumnVisible, loadDatasets, read, recalculatePath, set, setColumnID, setConnected, setCustomMarker, setID, setLineColor, setMarkerColor, setMarkerColor, setMarkerColor, setMarkerShape, setMarkerSize, setMaximumPoints, setName, setShift, setShifted, setShiftedValue, setSorted, setStride, setVisible, setXColumnDescription, setXColumnVisible, setXYColumnNames, setXYColumnNames, setYColumnDescription, setYColumnVisible, toBoolArray, toString, writeMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.opensourcephysics.display.Drawable
isInteractive
-
Constructor Details
-
Stripchart
public Stripchart(double _xrange, double _yrange) Constructs a Stripchart witht he given ranges.- Parameters:
_xrange- double_yrange- double
-
Stripchart
protected Stripchart()Constructs a Stripchart for use by the XML loader.
-
-
Method Details
-
setRange
public void setRange(double _xrange, double _yrange) Sets the range of the stipchart.- Parameters:
_xrange- double_yrange- double
-
enable
public void enable(boolean enabled) -
append
public void append(double x, double y) Appends an (x,y) datum to the Stipchart. -
append
public void append(double[] _xpoints, double[] _ypoints) Appends (x,y) data-arrays to the Stipchart. -
clear
public void clear()Clears all data from this Dataset. -
getLoader
Returns the XML.ObjectLoader for this class.- Returns:
- the object loader
-