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, java.util.Observer, Rebinnable2DHistogramData
Direct Known Subclasses:
ScatterTreeData, 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.


Field Summary
protected  HasScatterPlotData scatter
           
 
Fields inherited from class jas.hist.util.TwoDAdapter
source
 
Fields inherited from interface jas.hist.DataSource
DATE, DELTATIME, DOUBLE, INTEGER, STRING
 
Constructor Summary
ScatterAdapter(Rebinnable2DHistogramData source)
           
 
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 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
 
Methods inherited from interface jas.hist.Rebinnable2DHistogramData
getXAxisLabels, getXAxisType, getXBins, getXMax, getXMin, getYAxisLabels, getYAxisType, getYBins, getYMax, getYMin, isRebinnable, rebin
 
Methods inherited from interface jas.hist.DataSource
getTitle
 

Field Detail

scatter

protected HasScatterPlotData scatter
Constructor Detail

ScatterAdapter

public ScatterAdapter(Rebinnable2DHistogramData source)
Method Detail

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