|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.util.Observable | +--hep.analysis.Partition | +--hep.analysis.partition.Abstract2DPartition
The base class for all two-dimensional partitions.
All fill
methods will throw a PartitionFillException
if not overridden. Therefore,
subclasses should override the methods corresponding to the data
types the subclass supports and leave the remaining ones to throw
exceptions. Similarly, all getBinAt
methods throw a
NoSuchBinException unless overridden so subclasses should override the
methods corresponding to the types that the subclass supports.
PartitionFillException
,
NoSuchBinException
, Serialized FormField Summary | |
protected boolean |
m_dataChanged
|
protected boolean |
m_dataFinalChangedNotificationSent
|
protected boolean |
m_dataNotificationSent
|
protected boolean |
m_rangeFinalChangedNotificationSent
|
protected boolean |
m_xAxisChanged
|
protected boolean |
m_xAxisNotificationSent
|
protected boolean |
m_yAxisChanged
|
protected boolean |
m_yAxisNotificationSent
|
Fields inherited from class hep.analysis.Partition |
DATE, DELTATIME, DOUBLE, HORIZONTAL_AXIS, INTEGER, m_owner, STRING, VERTICAL_AXIS |
Constructor Summary | |
Abstract2DPartition()
|
Method Summary | |
void |
clear()
Resets the partition to default settings. |
void |
clearChanges()
|
protected void |
clearDataChanged()
Indicate that all data changes have been acknowledged by the observer and that the partition should resume sending new updates. |
void |
done()
Called when event loop is finished; sends a final update of any range and/or data change. |
void |
fill(java.util.Date x)
Invokes the fill(Date, double) method with
a weighting value of 1. |
void |
fill(java.util.Date x,
double y)
|
void |
fill(double x)
Invokes the fill(double, double) method with
a weighting value of 1. |
void |
fill(double x,
double y)
|
void |
fill(int x)
Invokes the fill(int, double) method with
a weighting value of 1. |
void |
fill(java.lang.String x)
Invokes the fill(String, double) method with
a weighting value of 1. |
void |
fillW(java.util.Date x,
double v)
Fills the associated histogram with a date value. |
void |
fillW(java.util.Date x,
double y,
double weight)
|
void |
fillW(double x,
double v)
Fills the associated histogram with a numerical value. |
void |
fillW(double x,
double y,
double weight)
|
void |
fillW(int x,
double v)
Converts the given int parameter to type
double and calls fill(double, double) . |
void |
fillW(java.lang.String x,
double v)
Fills the associated histogram with a string value. |
double |
getBin(int binX,
int binY)
|
abstract int |
getNumberOfXBins()
Return the number of bins. |
abstract int |
getNumberOfYBins()
|
protected RangeChangeListener |
getRangeChangeListener(int axis)
|
java.lang.String[] |
getXAxisLabels()
Override to allow axis labels to be accessed. |
int |
getXAxisType()
Get the axis type |
java.lang.String[] |
getYAxisLabels()
|
int |
getYAxisType()
|
boolean |
hasAsymmetricErrorBars()
Returns false by default. |
boolean |
hasSimpleQuadraticErrorBars()
Returns false by default. |
boolean |
isRebinnable()
Returns false by default. |
void |
notifyObservers(java.lang.Object arg)
|
protected void |
setBothRangesChanged()
|
protected void |
setDataAndRangeChangedNow()
Indicate that the data and range have changed and notify observers of the change with a final update. |
void |
setDataChanged()
|
void |
setXBinning(int bins,
double min,
double max)
Override to allow binning to be set. |
protected void |
setXRangeChanged()
|
void |
setYBinning(int bins,
double min,
double max)
|
protected void |
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 |
Methods inherited from interface hep.analysis.partition.TwoDDataSource |
getBins, getMinusErrors, getPlusErrors, getXMax, getXMin, getYMax, getYMin |
Methods inherited from interface hep.analysis.partition.StatisticsProvider |
getStatistics |
Field Detail |
protected transient boolean m_dataChanged
protected transient boolean m_xAxisChanged
protected transient boolean m_yAxisChanged
protected transient boolean m_dataNotificationSent
protected transient boolean m_xAxisNotificationSent
protected transient boolean m_yAxisNotificationSent
protected transient boolean m_dataFinalChangedNotificationSent
protected transient boolean m_rangeFinalChangedNotificationSent
Constructor Detail |
public Abstract2DPartition()
Method Detail |
public void fillW(double x, double v)
x
- the value to fillv
- a partition-specific value (normally some weighting value)PartitionFillException
- if this method is not overriddenPartitionFillException
public void fillW(int x, double v)
int
parameter to type
double
and calls fill(double, double)
.x
- the value to fillv
- a partition-specific value (normally some weighting value)PartitionFillException
- if thrown from fill(double, double)
fill(double, double)
,
PartitionFillException
public void fillW(java.lang.String x, double v)
x
- the value to fillv
- a partition-specific value (normally some weighting value)PartitionFillException
- if not overriddenPartitionFillException
public void fillW(java.util.Date x, double v)
x
- the value to fillv
- a partition-specific value (normally some weighting value)PartitionFillException
- if not overriddenPartitionFillException
public void fill(double x)
fill(double, double)
method with
a weighting value of 1.x
- the value to fillfillW(double, double)
public void fill(int x)
fill(int, double)
method with
a weighting value of 1.x
- the value to fillfillW(int, double)
public void fill(java.lang.String x)
fill(String, double)
method with
a weighting value of 1.x
- the value to fillfillW(String, double)
public void fill(java.util.Date x)
fill(Date, double)
method with
a weighting value of 1.x
- the value to fillfillW(Date, double)
public void fill(double x, double y)
public void fillW(double x, double y, double weight)
public void fill(java.util.Date x, double y)
public void fillW(java.util.Date x, double y, double weight)
public double getBin(int binX, int binY) throws NoSuchBinException
public boolean isRebinnable()
isRebinnable
in interface TwoDDataSource
public void setXBinning(int bins, double min, double max)
setXBinning
in interface TwoDDataSource
bins
- the number of bins to havemin
- the minimum of the partition rangemax
- the maximum of the partition rangeUnsupportedPartitionMethodException
- if not overridden.public void setYBinning(int bins, double min, double max)
setYBinning
in interface TwoDDataSource
public int getXAxisType()
getXAxisType
in interface TwoDDataSource
public int getYAxisType()
getYAxisType
in interface TwoDDataSource
public boolean hasAsymmetricErrorBars()
hasAsymmetricErrorBars
in interface TwoDDataSource
public boolean hasSimpleQuadraticErrorBars()
hasSimpleQuadraticErrorBars
in interface TwoDDataSource
public java.lang.String[] getXAxisLabels()
getXAxisLabels
in interface TwoDDataSource
public java.lang.String[] getYAxisLabels()
getYAxisLabels
in interface TwoDDataSource
public abstract int getNumberOfXBins()
public abstract int getNumberOfYBins()
protected RangeChangeListener getRangeChangeListener(int axis)
protected void setBothRangesChanged()
protected void setXRangeChanged()
protected void setYRangeChanged()
public void setDataChanged()
protected void clearDataChanged()
public void clearChanges()
public void clear()
clear
in class Partition
protected final void setDataAndRangeChangedNow()
public void done()
done
in class Partition
public final void notifyObservers(java.lang.Object arg)
notifyObservers
in class java.util.Observable
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |