jas2.hist.util
Class ScatterAdapter
- java.lang.Object
-
- java.util.Observable
-
- jas2.hist.util.ObserverAdapter
-
- jas2.hist.util.TwoDAdapter
-
- jas2.hist.util.ScatterAdapter
-
- All Implemented Interfaces:
- DataSource, HasScatterPlotData, HasSlices, HasStatistics, HasStyle, Rebinnable2DHistogramData, java.util.Observer
- 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.
-
-
Constructor Summary
Constructors Constructor and Description ScatterAdapter(Rebinnable2DHistogramData source)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description booleanhasScatterPlotData()Even if a DataSource implements this interface it may not have any ScatterPlot data available at this time, hence the need for this method.ScatterEnumerationstartEnumeration()Starts the enumeration of points from the beginning, and the enumeration will include all points stored in the partition.ScatterEnumerationstartEnumeration(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 jas2.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 jas2.hist.util.ObserverAdapter
addObserver, clearObservable, deleteObserver, deleteObservers, setObservable, update
-
Methods inherited from class java.util.Observable
countObservers, hasChanged, notifyObservers, notifyObservers
-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface jas2.hist.Rebinnable2DHistogramData
getXAxisLabels, getXAxisType, getXBins, getXMax, getXMin, getYAxisLabels, getYAxisType, getYBins, getYMax, getYMin, isRebinnable, rebin
-
Methods inherited from interface jas2.hist.DataSource
getTitle
-
-
-
-
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:HasScatterPlotDataStarts the enumeration of points from the beginning, and the enumeration will include only points in the given range.- Specified by:
startEnumerationin interfaceHasScatterPlotData
-
startEnumeration
public ScatterEnumeration startEnumeration()
Description copied from interface:HasScatterPlotDataStarts the enumeration of points from the beginning, and the enumeration will include all points stored in the partition.- Specified by:
startEnumerationin interfaceHasScatterPlotData
-
hasScatterPlotData
public boolean hasScatterPlotData()
Description copied from interface:HasScatterPlotDataEven 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:
hasScatterPlotDatain interfaceHasScatterPlotData
-
-
DataMelt 3.0 © DataMelt by jWork.ORG