whistleClassifier
Class ClassifierHistoryWindow

java.lang.Object
  extended by whistleClassifier.ClassifierHistoryWindow
All Implemented Interfaces:
PamObserver

public class ClassifierHistoryWindow
extends java.lang.Object
implements PamObserver

Provides a history window for classification results.

Author:
Douglas Gillespie

Nested Class Summary
(package private)  class ClassifierHistoryWindow.HistoryAxisPanel
           
(package private)  class ClassifierHistoryWindow.HistoryPlotPanel
           
(package private)  class ClassifierHistoryWindow.HistoryWindowBorder
           
private  class ClassifierHistoryWindow.ScrollObserver
          Observs the scroll bar.
(package private)  class ClassifierHistoryWindow.TimerAction
           
private  class ClassifierHistoryWindow.TimeRangeListener
          Observes the time range spinner
 
Field Summary
(package private)  PamAxis eastAxis
           
(package private)  Classifier fragmentClassifier
           
(package private)  ClassifierHistoryWindow.HistoryAxisPanel historyAxisPanel
           
(package private)  double historyMinutes
           
(package private)  ClassifierHistoryWindow.HistoryPlotPanel historyPlotPanel
           
(package private)  double historyStart
           
(package private)  ClassifierHistoryWindow.HistoryWindowBorder historyWindowBorder
           
private  boolean isViewer
           
(package private)  KeyPanel keyPanel
           
(package private)  double maxPlotProbability
           
(package private)  double minPlotProbability
           
private  PamScroller pamScroller
           
private  RangeSpinner rangeSpinner
           
(package private)  PamAxis southAxis
           
(package private)  PamSymbol[] speciesSymbols
           
(package private)  javax.swing.Timer timer
           
(package private)  PamAxis westAxis
           
(package private)  WhistleClasificationDataBlock whistleClasificationDataBlock
           
private  WhistleClassifierControl whistleClassifierControl
           
 
Constructor Summary
ClassifierHistoryWindow(WhistleClassifierControl whistleClassifierControl)
           
 
Method Summary
private  void createSymbols(java.lang.String[] speciesList)
           
 java.awt.Component getGraphicComponent()
           
 java.lang.String getObserverName()
           
 PamObserver getObserverObject()
           
 long getRequiredDataHistory(PamObservable o, java.lang.Object arg)
           
private  java.lang.String[] getSpeciesList()
           
 void masterClockUpdate(long milliSeconds, long sampleNumber)
           
private  void newSettings()
           
 void noteNewSettings()
           
private  void rebuildKey()
           
 void removeObservable(PamObservable o)
          called when an Observable (PamDataBlock) is removed from the system
private  void repaintPlots()
           
 void setSampleRate(float sampleRate, boolean notify)
          New sample rate
 void update(PamObservable o, PamDataUnit arg)
          Informs the PamObserver that new data have been added to the Observable class
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

whistleClassifierControl

private WhistleClassifierControl whistleClassifierControl

historyWindowBorder

ClassifierHistoryWindow.HistoryWindowBorder historyWindowBorder

historyAxisPanel

ClassifierHistoryWindow.HistoryAxisPanel historyAxisPanel

historyPlotPanel

ClassifierHistoryWindow.HistoryPlotPanel historyPlotPanel

southAxis

PamAxis southAxis

westAxis

PamAxis westAxis

eastAxis

PamAxis eastAxis

historyMinutes

double historyMinutes

historyStart

double historyStart

minPlotProbability

double minPlotProbability

maxPlotProbability

double maxPlotProbability

speciesSymbols

PamSymbol[] speciesSymbols

keyPanel

KeyPanel keyPanel

fragmentClassifier

Classifier fragmentClassifier

timer

javax.swing.Timer timer

whistleClasificationDataBlock

WhistleClasificationDataBlock whistleClasificationDataBlock

isViewer

private boolean isViewer

pamScroller

private PamScroller pamScroller

rangeSpinner

private RangeSpinner rangeSpinner
Constructor Detail

ClassifierHistoryWindow

public ClassifierHistoryWindow(WhistleClassifierControl whistleClassifierControl)
Method Detail

getObserverObject

public PamObserver getObserverObject()
Specified by:
getObserverObject in interface PamObserver
Returns:
the actual observer. In most cases concrete classes will just return 'this' in response. The exception is the Threaded observer, which will return the single thread observer.

createSymbols

private void createSymbols(java.lang.String[] speciesList)

getSpeciesList

private java.lang.String[] getSpeciesList()

rebuildKey

private void rebuildKey()

getGraphicComponent

public java.awt.Component getGraphicComponent()

getObserverName

public java.lang.String getObserverName()
Specified by:
getObserverName in interface PamObserver

getRequiredDataHistory

public long getRequiredDataHistory(PamObservable o,
                                   java.lang.Object arg)
Specified by:
getRequiredDataHistory in interface PamObserver
Parameters:
o - PamObservable class requiring the data
arg - optional argument from PamObservable
Returns:
time in milliseconds requried by data held in PamObservable

noteNewSettings

public void noteNewSettings()
Specified by:
noteNewSettings in interface PamObserver

newSettings

private void newSettings()

removeObservable

public void removeObservable(PamObservable o)
Description copied from interface: PamObserver
called when an Observable (PamDataBlock) is removed from the system

Specified by:
removeObservable in interface PamObserver

setSampleRate

public void setSampleRate(float sampleRate,
                          boolean notify)
Description copied from interface: PamObserver
New sample rate

Specified by:
setSampleRate in interface PamObserver
notify - Notify other PamObservers and PamObservables in the chain.

masterClockUpdate

public void masterClockUpdate(long milliSeconds,
                              long sampleNumber)
Specified by:
masterClockUpdate in interface PamObserver

update

public void update(PamObservable o,
                   PamDataUnit arg)
Description copied from interface: PamObserver
Informs the PamObserver that new data have been added to the Observable class

Specified by:
update in interface PamObserver
Parameters:
o - Reference to the Observable (a PamDataBlock)
arg - Reference to the new PamDataUnit

repaintPlots

private void repaintPlots()