hep.analysis.partition
Class TwoDDelegatingPartition

java.lang.Object
  |
  +--java.util.Observable
        |
        +--hep.analysis.Partition
              |
              +--hep.analysis.partition.Abstract2DPartition
                    |
                    +--hep.analysis.partition.TwoDDelegatingPartition
All Implemented Interfaces:
OneDFillable, java.io.Serializable, StatisticsProvider, TwoDDataSource, TwoDFillable
Direct Known Subclasses:
FixedPartition2D

public abstract class TwoDDelegatingPartition
extends Abstract2DPartition

See Also:
Serialized Form

Fields inherited from class hep.analysis.partition.Abstract2DPartition
m_dataChanged, m_dataFinalChangedNotificationSent, m_dataNotificationSent, m_rangeFinalChangedNotificationSent, m_xAxisChanged, m_xAxisNotificationSent, m_yAxisChanged, m_yAxisNotificationSent
 
Fields inherited from class hep.analysis.Partition
DATE, DELTATIME, DOUBLE, HORIZONTAL_AXIS, INTEGER, m_owner, STRING, VERTICAL_AXIS
 
Constructor Summary
TwoDDelegatingPartition()
           
 
Method Summary
 void clear()
          Resets the partition to default settings.
 void fill(java.util.Date x, double y)
           
 void fill(double x, double y)
           
 void fillW(java.util.Date x, double y, double weight)
           
 void fillW(double x, double y, double weight)
           
 double getBin(int binX, int binY)
           
 double[][] getBins()
           
 double[][] getMinusErrors()
           
 int getNumberOfXBins()
          Return the number of bins.
 int getNumberOfYBins()
           
 double[][] getPlusErrors()
           
 Statistics getStatistics()
           
 java.lang.String[] getXAxisLabels()
          Override to allow axis labels to be accessed.
 int getXAxisType()
          Get the axis type
 double getXMax()
           
 double getXMin()
           
 java.lang.String[] getYAxisLabels()
           
 int getYAxisType()
           
 double getYMax()
           
 double getYMin()
           
 boolean hasAsymmetricErrorBars()
          Returns false by default.
 boolean hasSimpleQuadraticErrorBars()
          Returns false by default.
 boolean isRebinnable()
          Returns false by default.
protected  void setBinInfoX(BinInfo info)
           
protected  void setBinInfoY(BinInfo info)
           
protected  void setDataSource(TwoDDataSource source)
           
protected  void setFillable(TwoDFillable fillable)
           
protected  void setStatisticsProvider(StatisticsProvider provider)
           
 void setXBinning(int bins, double min, double max)
          Override to allow binning to be set.
 void setYBinning(int bins, double min, double max)
           
 
Methods inherited from class hep.analysis.partition.Abstract2DPartition
clearChanges, clearDataChanged, done, fill, fill, fill, fill, fillW, fillW, fillW, fillW, getRangeChangeListener, notifyObservers, setBothRangesChanged, setDataAndRangeChangedNow, setDataChanged, setXRangeChanged, setYRangeChanged
 
Methods inherited from class hep.analysis.Partition
destroy, getStyle, makeCopy, setStyle
 
Methods inherited from class java.util.Observable
addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, setChanged
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TwoDDelegatingPartition

public TwoDDelegatingPartition()
Method Detail

fill

public void fill(double x,
                 double y)
Overrides:
fill in class Abstract2DPartition

fillW

public void fillW(double x,
                  double y,
                  double weight)
Overrides:
fillW in class Abstract2DPartition

fill

public void fill(java.util.Date x,
                 double y)
Overrides:
fill in class Abstract2DPartition

fillW

public void fillW(java.util.Date x,
                  double y,
                  double weight)
Overrides:
fillW in class Abstract2DPartition

clear

public void clear()
Description copied from class: Abstract2DPartition
Resets the partition to default settings.
Overrides:
clear in class Abstract2DPartition

getStatistics

public Statistics getStatistics()

hasAsymmetricErrorBars

public boolean hasAsymmetricErrorBars()
Description copied from class: Abstract2DPartition
Returns false by default. Override to have asymmetric error bars.
Overrides:
hasAsymmetricErrorBars in class Abstract2DPartition

hasSimpleQuadraticErrorBars

public boolean hasSimpleQuadraticErrorBars()
Description copied from class: Abstract2DPartition
Returns false by default. Override to have simple quadratic error bars.
Overrides:
hasSimpleQuadraticErrorBars in class Abstract2DPartition

getPlusErrors

public double[][] getPlusErrors()

getMinusErrors

public double[][] getMinusErrors()

getBins

public double[][] getBins()

getBin

public double getBin(int binX,
                     int binY)
              throws NoSuchBinException
Overrides:
getBin in class Abstract2DPartition

isRebinnable

public boolean isRebinnable()
Description copied from class: Abstract2DPartition
Returns false by default. Override to have a rebinnable partition.
Overrides:
isRebinnable in class Abstract2DPartition

setXBinning

public void setXBinning(int bins,
                        double min,
                        double max)
Description copied from class: Abstract2DPartition
Override to allow binning to be set. Throws an UnsupportedPartitionMethodException by default.
Overrides:
setXBinning in class Abstract2DPartition
Following copied from class: hep.analysis.partition.Abstract2DPartition
Parameters:
bins - the number of bins to have
min - the minimum of the partition range
max - the maximum of the partition range
Throws:
UnsupportedPartitionMethodException - if not overridden.

setYBinning

public void setYBinning(int bins,
                        double min,
                        double max)
Overrides:
setYBinning in class Abstract2DPartition

getXAxisLabels

public java.lang.String[] getXAxisLabels()
Description copied from class: Abstract2DPartition
Override to allow axis labels to be accessed. Throws an UnsupportedPartitionMethodException by default.
Overrides:
getXAxisLabels in class Abstract2DPartition
Following copied from class: hep.analysis.partition.Abstract2DPartition
Returns:
an array of axis labels

getYAxisLabels

public java.lang.String[] getYAxisLabels()
Overrides:
getYAxisLabels in class Abstract2DPartition

getXAxisType

public int getXAxisType()
Description copied from class: Abstract2DPartition
Get the axis type
Overrides:
getXAxisType in class Abstract2DPartition

getYAxisType

public int getYAxisType()
Overrides:
getYAxisType in class Abstract2DPartition

getNumberOfXBins

public int getNumberOfXBins()
Description copied from class: Abstract2DPartition
Return the number of bins.
Overrides:
getNumberOfXBins in class Abstract2DPartition

getNumberOfYBins

public int getNumberOfYBins()
Overrides:
getNumberOfYBins in class Abstract2DPartition

getXMin

public double getXMin()

getYMin

public double getYMin()

getXMax

public double getXMax()

getYMax

public double getYMax()

setFillable

protected void setFillable(TwoDFillable fillable)

setDataSource

protected void setDataSource(TwoDDataSource source)

setStatisticsProvider

protected void setStatisticsProvider(StatisticsProvider provider)

setBinInfoX

protected void setBinInfoX(BinInfo info)

setBinInfoY

protected void setBinInfoY(BinInfo info)