Package clickDetector
Class ClickWaveform
java.lang.Object
Layout.PamFramePlots
clickDetector.ClickDisplay
clickDetector.ClickWaveform
- All Implemented Interfaces:
 PamObserver
Display which shows the raw click waveform.
- Author:
 - Doug Gillespie
 
- 
Field Summary
Fields - 
Constructor Summary
ConstructorsConstructorDescriptionClickWaveform(ClickControl clickControl, ClickDisplayManager clickDisplayManager, clickDetector.ClickDisplayManager.ClickDisplayInfo clickDisplayInfo) ClickWaveform(STClickControl clickControl, ClickDisplayManager clickDisplayManager, clickDetector.ClickDisplayManager.ClickDisplayInfo clickDisplayInfo) Constructor needed when creating the SoundTrap Click Detector - need to explicitly cast from STClickControl to ClickControl, or else constructor fails - 
Method Summary
Modifier and TypeMethodDescriptionvoidaddData(PamObservable o, PamDataUnit arg) Informs the PamObserver that new data have been added to the Observable classvoidclickedOnClick(ClickDetection click) getName()Get a unique name for the displaylongvoidmasterClockUpdate(long milliSeconds, long sampleNumber) voidnewClick(ClickDetection newClick) voidvoidreceiveSourceNotification(int type, Object object) Receive a notification from the data source - typically a change in DAQ status.voidcalled when an Observable (PamDataBlock) is removed from the systemvoidrepaint(int tm) Repaint all windows in the frame plot with delay tmvoidsetSampleRate(float sampleRate, boolean notify) New sample ratevoidshowClick(ClickDetection click) voidupdateData(PamObservable observable, PamDataUnit pamDataUnit) Informs the PamObserver that existing data have been updatedMethods inherited from class clickDetector.ClickDisplay
created, getClickDisplayInfo, offlineDataChanged, pamStart, pamStopMethods inherited from class Layout.PamFramePlots
checkDualDisplay, getAxisPanel, getCopyMenuItem, getEastPanel, getFrame, getLeftPlotPanel, getNorthPanel, getPlotPanel, getRightPlotPanel, getSouthPanel, getWestPanel, setAxisPanel, setEastPanel, setFrame, setLeftPlotPanel, setNorthPanel, setPlotPanel, setRightPlotPanel, setSouthPanel, setWestPanel 
- 
Field Details
- 
isViewer
protected boolean isViewer 
 - 
 - 
Constructor Details
- 
ClickWaveform
public ClickWaveform(ClickControl clickControl, ClickDisplayManager clickDisplayManager, clickDetector.ClickDisplayManager.ClickDisplayInfo clickDisplayInfo)  - 
ClickWaveform
public ClickWaveform(STClickControl clickControl, ClickDisplayManager clickDisplayManager, clickDetector.ClickDisplayManager.ClickDisplayInfo clickDisplayInfo) Constructor needed when creating the SoundTrap Click Detector - need to explicitly cast from STClickControl to ClickControl, or else constructor fails- Parameters:
 clickControl-clickDisplayManager-clickDisplayInfo-
 
 - 
 - 
Method Details
- 
getObserverObject
- Specified by:
 getObserverObjectin interfacePamObserver- 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.
 
 - 
newClick
 - 
showClick
 - 
repaint
public void repaint(int tm) Description copied from class:PamFramePlotsRepaint all windows in the frame plot with delay tm- Overrides:
 repaintin classPamFramePlots- Parameters:
 tm- time delay in millis
 - 
getName
Description copied from class:PamFramePlotsGet a unique name for the display- Specified by:
 getNamein classPamFramePlots- Returns:
 - a unique name for the display.
 
 - 
getObserverName
- Specified by:
 getObserverNamein interfacePamObserver
 - 
getRequiredDataHistory
- Specified by:
 getRequiredDataHistoryin interfacePamObserver- Parameters:
 arg- optional argument from PamObservable- Returns:
 - time in milliseconds required by data held in PamObservable
 
 - 
noteNewSettings
public void noteNewSettings()- Specified by:
 noteNewSettingsin interfacePamObserver- Specified by:
 noteNewSettingsin classClickDisplay
 - 
removeObservable
Description copied from interface:PamObservercalled when an Observable (PamDataBlock) is removed from the system- Specified by:
 removeObservablein interfacePamObserver
 - 
setSampleRate
public void setSampleRate(float sampleRate, boolean notify) Description copied from interface:PamObserverNew sample rate- Specified by:
 setSampleRatein interfacePamObserver- Parameters:
 sampleRate-notify- Notify other PamObservers and PamObservables in the chain.
 - 
masterClockUpdate
public void masterClockUpdate(long milliSeconds, long sampleNumber) - Specified by:
 masterClockUpdatein interfacePamObserver
 - 
addData
Description copied from interface:PamObserverInforms the PamObserver that new data have been added to the Observable class- Specified by:
 addDatain interfacePamObserver
 - 
updateData
Description copied from interface:PamObserverInforms the PamObserver that existing data have been updated- Specified by:
 updateDatain interfacePamObserver
 - 
receiveSourceNotification
Description copied from interface:PamObserverReceive a notification from the data source - typically a change in DAQ status. See the constants listed in AcquisitionProcess for potential change types.- Specified by:
 receiveSourceNotificationin interfacePamObserver- Parameters:
 type- the type of changeobject- generic object added here so that we can include anything in the future
 - 
clickedOnClick
- Overrides:
 clickedOnClickin classClickDisplay
 
 -