|
||||||||||
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.ScatterTwoDAdapter
public class ScatterTwoDAdapter
An adaptor that converts a ScatterPlotSource to a DataSource that implements both Rebinnable2DHistogramData and HasScatterPlotData
Field Summary | |
---|---|
protected ScatterPlotSource |
source
|
Fields inherited from interface jas.hist.DataSource |
---|
DATE, DELTATIME, DOUBLE, INTEGER, STRING |
Constructor Summary | |
---|---|
ScatterTwoDAdapter(ScatterPlotSource source)
|
Method Summary | |
---|---|
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. |
String[] |
getXAxisLabels()
|
int |
getXAxisType()
Currently we only support DATE and DOUBLE types |
int |
getXBins()
|
double |
getXMax()
|
double |
getXMin()
|
String[] |
getYAxisLabels()
|
int |
getYAxisType()
Currently we only support DOUBLE |
int |
getYBins()
|
double |
getYMax()
|
double |
getYMin()
|
boolean |
hasScatterPlotData()
Even if a DataSource implements this interface it may not have any ScatterPlot data available at this time, hence the need for this method. |
boolean |
isRebinnable()
|
double[][][] |
rebin(int Xbins,
double Xmin,
double Xmax,
int Ybins,
double Ymin,
double Ymax,
boolean wantErrors,
boolean hurry,
boolean overflow)
|
ScatterEnumeration |
startEnumeration()
Starts the enumeration of points from the beginning, and the enumeration will include all points stored in the partition. |
ScatterEnumeration |
startEnumeration(double xMin,
double xMax,
double yMin,
double yMax)
Starts the enumeration of points from the beginning, and the enumeration will include only points in the given range. |
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, toString, wait, wait, wait |
Methods inherited from interface jas.hist.HasScatterPlotData |
---|
startEnumeration, startEnumeration |
Methods inherited from interface jas.hist.Rebinnable2DHistogramData |
---|
getXAxisType, getXMax, getXMin, getYAxisType, getYMax, getYMin |
Methods inherited from interface jas.hist.DataSource |
---|
getTitle |
Field Detail |
---|
protected ScatterPlotSource source
Constructor Detail |
---|
public ScatterTwoDAdapter(ScatterPlotSource source)
Method Detail |
---|
public double[][][] rebin(int Xbins, double Xmin, double Xmax, int Ybins, double Ymin, double Ymax, boolean wantErrors, boolean hurry, boolean overflow)
rebin
in interface Rebinnable2DHistogramData
public int getXBins()
getXBins
in interface Rebinnable2DHistogramData
public int getYBins()
getYBins
in interface Rebinnable2DHistogramData
public boolean isRebinnable()
isRebinnable
in interface Rebinnable2DHistogramData
public String[] getXAxisLabels()
getXAxisLabels
in interface Rebinnable2DHistogramData
public String[] getYAxisLabels()
getYAxisLabels
in interface Rebinnable2DHistogramData
public boolean hasScatterPlotData()
HasScatterPlotData
hasScatterPlotData
in interface HasScatterPlotData
public ScatterEnumeration startEnumeration(double xMin, double xMax, double yMin, double yMax)
ScatterPlotSource
startEnumeration
in interface ScatterPlotSource
public ScatterEnumeration startEnumeration()
ScatterPlotSource
startEnumeration
in interface ScatterPlotSource
public double getXMin()
getXMin
in interface ScatterPlotSource
public double getXMax()
getXMax
in interface ScatterPlotSource
public double getYMin()
getYMin
in interface ScatterPlotSource
public double getYMax()
getYMax
in interface ScatterPlotSource
public int getXAxisType()
ScatterPlotSource
getXAxisType
in interface ScatterPlotSource
public int getYAxisType()
ScatterPlotSource
getYAxisType
in interface ScatterPlotSource
public String getTitle()
DataSource
getTitle
in interface DataSource
public JASHistStyle getStyle()
HasStyle
getStyle
in interface HasStyle
JASHist1DHistogramStyle
,
JASHist2DHistogramStyle
,
JASHistScatterPlotStyle
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |