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
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 |
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