jas.hist.normalization
Class DataSourceNormalizer

java.lang.Object
  |
  +--java.util.Observable
        |
        +--jas.hist.normalization.SimpleNormalizer
              |
              +--jas.hist.normalization.DataSourceNormalizer
All Implemented Interfaces:
Normalizer, java.util.Observer
Direct Known Subclasses:
AreaNormalizer, BinNormalizer, MaxBinNormalizer, StatisticsNormalizer

public abstract class DataSourceNormalizer
extends SimpleNormalizer
implements java.util.Observer

A base class for Normalizers which depend upon a DataSource


Field Summary
protected  DataSource source
           
 
Constructor Summary
DataSourceNormalizer(DataSource source)
          Creates a new DataSourceNormalizer
 
Method Summary
protected abstract  double calculateNormalization()
          Calculates the normalization factor.
 double getNormalizationFactor()
          The displayed data will be divided by this factor
protected  void init()
          To be called by superclasses, typically at the end of the constructor.
 void update(java.util.Observable obs, java.lang.Object arg)
           
 
Methods inherited from class jas.hist.normalization.SimpleNormalizer
normalizationChanged, setFactor
 
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
 

Field Detail

source

protected DataSource source
Constructor Detail

DataSourceNormalizer

public DataSourceNormalizer(DataSource source)
Creates a new DataSourceNormalizer
Parameters:
source - The Data Source
Method Detail

init

protected void init()
To be called by superclasses, typically at the end of the constructor.

update

public void update(java.util.Observable obs,
                   java.lang.Object arg)
Specified by:
update in interface java.util.Observer

getNormalizationFactor

public double getNormalizationFactor()
Description copied from interface: Normalizer
The displayed data will be divided by this factor
Overrides:
getNormalizationFactor in class SimpleNormalizer

calculateNormalization

protected abstract double calculateNormalization()
Calculates the normalization factor.
Returns:
The normalization factor.