jas.hep
Class PartitionAdapter

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

public abstract class PartitionAdapter
extends ObserverAdapter
implements DataSource, HasStatistics

Converts a hep.analysis.Partition to a jas.hist.DataSource


Fields inherited from interface jas.hist.DataSource
DATE, DELTATIME, DOUBLE, INTEGER, STRING
 
Method Summary
static DataSource create(Histogram h)
          Create a DataSource from a Histogram
static DataSource create(Partition partition, java.lang.String title)
          Create a DataSource from a Partition and a String (title)
 Statistics getStatistics()
           
 java.lang.String getTitle()
          Return the caption to be used in the legend for this data.
 void notifyObservers(java.lang.Object arg)
           
 java.lang.String 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
 

Method Detail

create

public static DataSource create(Histogram h)
Create a DataSource from a Histogram

create

public static DataSource create(Partition partition,
                                java.lang.String title)
Create a DataSource from a Partition and a String (title)

notifyObservers

public void notifyObservers(java.lang.Object arg)
Overrides:
notifyObservers in class java.util.Observable

getStatistics

public Statistics getStatistics()
Specified by:
getStatistics in interface HasStatistics

getTitle

public java.lang.String getTitle()
Description copied from interface: DataSource
Return the caption to be used in the legend for this data.
Specified by:
getTitle in interface DataSource

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object