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
ConstructorsModifierConstructorDescriptionprotected
Constructs a Stripchart for use by the XML loader.Stripchart
(double _xrange, double _yrange) Constructs a Stripchart witht he given ranges. -
Method Summary
Modifier and TypeMethodDescriptionvoid
append
(double[] _xpoints, double[] _ypoints) Appends (x,y) data-arrays to the Stipchart.void
append
(double x, double y) Appends an (x,y) datum to the Stipchart.void
clear()
Clears all data from this Dataset.void
enable
(boolean enabled) static XML.ObjectLoader
Returns the XML.ObjectLoader for this class.void
setRange
(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, write
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods 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
-