| 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.util.Observable
jas.hist.util.ObserverAdapter
jas.hist.util.OneDAdapter
public class OneDAdapter
A class which simply acts as a proxy for the DataSource provided as an argument to its constructor. Not very useful in itself, but can be used as a base class for more interesting adapters.
| Field Summary | |
|---|---|
protected  Rebinnable1DHistogramData | 
source
 | 
| Fields inherited from interface jas.hist.DataSource | 
|---|
DATE, DELTATIME, DOUBLE, INTEGER, STRING | 
| Constructor Summary | |
|---|---|
OneDAdapter(Rebinnable1DHistogramData source)
 | 
|
| Method Summary | |
|---|---|
 String[] | 
getAxisLabels()
Returns the axis labels.  | 
 int | 
getAxisType()
Returns one of DOUBLE,INTEGER,STRING,DATE or DELTATIME  | 
 int | 
getBins()
Returns the (suggested) number of bins to use  | 
 double | 
getMax()
Returns the (suggested) maximum value for the X axis  | 
 double | 
getMin()
Returns the (suggested) minimum value for the X axis  | 
 Statistics | 
getStatistics()
 | 
 JASHistStyle | 
getStyle()
This method is called by the plot to determine what style to be used for a plot.  | 
 String | 
getTitle()
Return the caption to be used in the legend for this data.  | 
 boolean | 
isRebinnable()
Returns true if the data source is capable of recalculating the bin contents, or false of the interface is not-capable of recalculating the bin contents.  | 
 double[][] | 
rebin(int bins,
      double min,
      double max,
      boolean wantErrors,
      boolean hurry)
Called to request the binned data be returned.  | 
 String | 
toString()
 | 
| Methods inherited from class jas.hist.util.ObserverAdapter | 
|---|
addObserver, clearObservable, deleteObserver, deleteObservers, setObservable, update | 
| Methods inherited from class java.util.Observable | 
|---|
clearChanged, countObservers, hasChanged, notifyObservers, notifyObservers, setChanged | 
| Methods inherited from class java.lang.Object | 
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait | 
| Field Detail | 
|---|
protected Rebinnable1DHistogramData source
| Constructor Detail | 
|---|
public OneDAdapter(Rebinnable1DHistogramData source)
| Method Detail | 
|---|
public double[][] rebin(int bins,
                        double min,
                        double max,
                        boolean wantErrors,
                        boolean hurry)
Rebinnable1DHistogramDataThe routine returns a two dimensional array where the first dimension has the following meaning:
rebin in interface Rebinnable1DHistogramDatamin - The min of the range over which to binmax - The max of the range over which to binwantErrors - If false indicates that the errors are not required and need not be calculated (most implementations will ignore this parameter)hurry - If true indicates the results should be provided as fast as possible, even if some approximation is needed (most implementations will ignore this parameter)
public double getMin()
Rebinnable1DHistogramData
getMin in interface Rebinnable1DHistogramDatapublic double getMax()
Rebinnable1DHistogramData
getMax in interface Rebinnable1DHistogramDatapublic int getBins()
Rebinnable1DHistogramData
getBins in interface Rebinnable1DHistogramDatapublic boolean isRebinnable()
Rebinnable1DHistogramData
isRebinnable in interface Rebinnable1DHistogramDatapublic int getAxisType()
Rebinnable1DHistogramData
getAxisType in interface Rebinnable1DHistogramDatapublic String[] getAxisLabels()
Rebinnable1DHistogramData
getAxisLabels in interface Rebinnable1DHistogramDatapublic String getTitle()
DataSource
getTitle in interface DataSourcepublic Statistics getStatistics()
getStatistics in interface HasStatisticspublic JASHistStyle getStyle()
HasStyle
getStyle in interface HasStyleJASHist1DHistogramStyle, 
JASHist2DHistogramStyle, 
JASHistScatterPlotStylepublic String toString()
toString in class Object
  | 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||