jas.hep
Class Partition2DAdapter

java.lang.Object
  |
  +--java.util.Observable
        |
        +--jas.hist.util.ObserverAdapter
              |
              +--jas.hep.PartitionAdapter
                    |
                    +--jas.hep.Partition2DAdapter
All Implemented Interfaces:
DataSource, HasStatistics, HasStyle, java.util.Observer, Rebinnable2DHistogramData

public class Partition2DAdapter
extends PartitionAdapter
implements Rebinnable2DHistogramData, HasStyle


Fields inherited from interface jas.hist.DataSource
DATE, DELTATIME, DOUBLE, INTEGER, STRING
 
Constructor Summary
Partition2DAdapter(Abstract2DPartition p)
           
 
Method Summary
protected  JASHist2DHistogramStyle createStyle()
           
 JASHistStyle getStyle()
          This method is called by the plot to determine what style to be used for a plot.
 java.lang.String[] getXAxisLabels()
           
 int getXAxisType()
           
 int getXBins()
           
 double getXMax()
           
 double getXMin()
           
 java.lang.String[] getYAxisLabels()
           
 int getYAxisType()
           
 int getYBins()
           
 double getYMax()
           
 double getYMin()
           
 boolean isRebinnable()
           
 double[][][] rebin(int xbins, double xmin, double xmax, int ybins, double ymin, double ymax, boolean wantErrors, boolean hurry, boolean overflow)
           
 
Methods inherited from class jas.hep.PartitionAdapter
create, create, getStatistics, getTitle, notifyObservers, 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, setChanged
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface jas.hist.DataSource
getTitle
 

Constructor Detail

Partition2DAdapter

public Partition2DAdapter(Abstract2DPartition p)
Method Detail

rebin

public double[][][] rebin(int xbins,
                          double xmin,
                          double xmax,
                          int ybins,
                          double ymin,
                          double ymax,
                          boolean wantErrors,
                          boolean hurry,
                          boolean overflow)
Specified by:
rebin in interface Rebinnable2DHistogramData

isRebinnable

public boolean isRebinnable()
Specified by:
isRebinnable in interface Rebinnable2DHistogramData

getXMin

public double getXMin()
Specified by:
getXMin in interface Rebinnable2DHistogramData

getXMax

public double getXMax()
Specified by:
getXMax in interface Rebinnable2DHistogramData

getYMin

public double getYMin()
Specified by:
getYMin in interface Rebinnable2DHistogramData

getYMax

public double getYMax()
Specified by:
getYMax in interface Rebinnable2DHistogramData

getXBins

public int getXBins()
Specified by:
getXBins in interface Rebinnable2DHistogramData

getYBins

public int getYBins()
Specified by:
getYBins in interface Rebinnable2DHistogramData

getXAxisType

public int getXAxisType()
Specified by:
getXAxisType in interface Rebinnable2DHistogramData

getYAxisType

public int getYAxisType()
Specified by:
getYAxisType in interface Rebinnable2DHistogramData

getXAxisLabels

public java.lang.String[] getXAxisLabels()
Specified by:
getXAxisLabels in interface Rebinnable2DHistogramData

getYAxisLabels

public java.lang.String[] getYAxisLabels()
Specified by:
getYAxisLabels in interface Rebinnable2DHistogramData

getStyle

public JASHistStyle getStyle()
Description copied from interface: HasStyle
This method is called by the plot to determine what style to be used for a plot. It is the programmers responsibility to return the correct subclass of JASHistStyle corresponding to the type of data being implemented by the DataSource.
Specified by:
getStyle in interface HasStyle
Following copied from interface: jas.hist.HasStyle
Returns:
The style to be used, or null to use the default style.
See Also:
JASHist1DHistogramStyle, JASHist2DHistogramStyle, JASHistScatterPlotStyle

createStyle

protected JASHist2DHistogramStyle createStyle()