|
|||||||||
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.HistogramDataset
public class HistogramDataset
HistogramDataset creates a histogram of appended data points.
Nested Class Summary | |
---|---|
protected static class |
HistogramDataset.HistogramDatasetLoader
|
Nested classes/interfaces inherited from class org.opensourcephysics.display.Dataset |
---|
Dataset.Loader |
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 | |
---|---|
protected |
HistogramDataset()
Constructs a HistogramDataset for values from 0 through 100. |
|
HistogramDataset(double binMin,
double binMax,
double binSize)
Constructor HistogramDataset |
Method Summary | |
---|---|
void |
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 data from the histogram. |
static XML.ObjectLoader |
getLoader()
Returns the XML.ObjectLoader for this class. |
double |
getXMax()
Gets the x world coordinate for the right hand side of the panel. |
double |
getXMin()
Gets the x world coordinate for the left hand side of the panel. |
void |
setBinWidth(double binMin,
double binMax,
double binSize)
|
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 HistogramDataset(double binMin, double binMax, double binSize)
binMin
- binMax
- binSize
- protected HistogramDataset()
Method Detail |
---|
public void append(double x, double y)
append
in class Dataset
x
- y
- public void append(double[] xpoints, double[] ypoints)
append
in class Dataset
xpoints
- ypoints
- public double getXMin()
getXMin
in interface Measurable
getXMin
in class Dataset
public double getXMax()
getXMax
in interface Measurable
getXMax
in class Dataset
public void setBinWidth(double binMin, double binMax, double binSize)
public void clear()
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 |