jas.hist.util
Class ScatterAdapter
java.lang.Object
java.util.Observable
jas.hist.util.ObserverAdapter
jas.hist.util.TwoDAdapter
jas.hist.util.ScatterAdapter
- All Implemented Interfaces:
- DataSource, HasScatterPlotData, HasSlices, HasStatistics, HasStyle, Rebinnable2DHistogramData, Observer
- Direct Known Subclasses:
- TwoDSliceAdapter
public class ScatterAdapter
- extends TwoDAdapter
- implements HasScatterPlotData
A ScatterAdapter takes a Rebinnable2DHistogramData source which (optionally)
also implements HasScatterPlotData, and in turn provides the same interface
to its observers.
It is designed to be used as a base class for classes that do some more interesting
transformation of the data.
Method Summary |
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. |
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.TwoDAdapter |
addSlice, canAddRemoveSlices, getNSlices, getSlice, getSliceParameters, getStatistics, getStyle, getTitle, getXAxisLabels, getXAxisType, getXBins, getXMax, getXMin, getYAxisLabels, getYAxisType, getYBins, getYMax, getYMin, isRebinnable, rebin, removeSlice, toString |
Methods inherited from interface jas.hist.Rebinnable2DHistogramData |
getXAxisLabels, getXAxisType, getXBins, getXMax, getXMin, getYAxisLabels, getYAxisType, getYBins, getYMax, getYMin, isRebinnable, rebin |
scatter
protected HasScatterPlotData scatter
ScatterAdapter
public ScatterAdapter(Rebinnable2DHistogramData source)
startEnumeration
public ScatterEnumeration startEnumeration(double xMin,
double xMax,
double yMin,
double yMax)
- Description copied from interface:
HasScatterPlotData
- Starts the enumeration of points from the beginning, and the enumeration
will include only points in the given range.
- Specified by:
startEnumeration
in interface HasScatterPlotData
startEnumeration
public ScatterEnumeration startEnumeration()
- Description copied from interface:
HasScatterPlotData
- Starts the enumeration of points from the beginning, and the enumeration
will include all points stored in the partition.
- Specified by:
startEnumeration
in interface HasScatterPlotData
hasScatterPlotData
public boolean hasScatterPlotData()
- Description copied from interface:
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.
- Specified by:
hasScatterPlotData
in interface HasScatterPlotData
Copyright © 2000-2009 FreeHEP. All Rights Reserved.