hep.analysis
Class Partition

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

public abstract class Partition
extends java.util.Observable
implements java.io.Serializable, TwoDFillable, OneDFillable, StatisticsProvider

The base class for all partitions. A partition is used by all histograms to determine binning of data.

See Also:
Abstract1DPartition, Abstract2DPartition, Serialized Form

Field Summary
static int DATE
           
static int DELTATIME
           
static int DOUBLE
          Constants used to mark the axis type
static int HORIZONTAL_AXIS
           
static int INTEGER
           
protected  Histogram m_owner
           
static int STRING
           
static int VERTICAL_AXIS
           
 
Constructor Summary
Partition()
           
 
Method Summary
abstract  void clear()
          Resets the partition to default settings.
 void destroy()
          Indicate that this partition is no longer needed.
abstract  void done()
          Called when event loop is finished; should send a final update of any range and/or data change.
 Style getStyle()
          Get the style associated with this partition
abstract  Partition makeCopy()
          Make a copy of this partition, maintaining the partition class and initial state, but not the data stored in the partition.
 void setStyle(Style style)
          Associate a style with this partition
 
Methods inherited from class java.util.Observable
addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, 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.TwoDFillable
fill, fill, fillW, fillW
 
Methods inherited from interface hep.analysis.partition.OneDFillable
fill, fill, fill, fill, fillW, fillW, fillW, fillW
 
Methods inherited from interface hep.analysis.partition.StatisticsProvider
getStatistics
 

Field Detail

m_owner

protected transient Histogram m_owner

DOUBLE

public static final int DOUBLE
Constants used to mark the axis type

STRING

public static final int STRING

DATE

public static final int DATE

INTEGER

public static final int INTEGER

DELTATIME

public static final int DELTATIME

HORIZONTAL_AXIS

public static final int HORIZONTAL_AXIS

VERTICAL_AXIS

public static final int VERTICAL_AXIS
Constructor Detail

Partition

public Partition()
Method Detail

clear

public abstract void clear()
Resets the partition to default settings.
Specified by:
clear in interface TwoDFillable

done

public abstract void done()
Called when event loop is finished; should send a final update of any range and/or data change.

destroy

public final void destroy()
Indicate that this partition is no longer needed.

makeCopy

public abstract Partition makeCopy()
Make a copy of this partition, maintaining the partition class and initial state, but not the data stored in the partition.

getStyle

public Style getStyle()
Get the style associated with this partition
See Also:
Style

setStyle

public void setStyle(Style style)
Associate a style with this partition
See Also:
Style