Package clickDetector
Class ClickTrigger
java.lang.Object
Layout.PamFramePlots
clickDetector.ClickDisplay
clickDetector.ClickTrigger
- All Implemented Interfaces:
PamObserver
- Author:
- Doug Gillespie
Display window for click detector trigger information.
-
Field Summary
-
Constructor Summary
ConstructorDescriptionClickTrigger
(ClickControl clickControl, ClickDisplayManager clickDisplayManager, clickDetector.ClickDisplayManager.ClickDisplayInfo clickDisplayInfo) ClickTrigger
(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 TypeMethodDescriptionvoid
addData
(PamObservable obs, PamDataUnit newData) Informs the PamObserver that new data have been added to the Observable classvoid
displayTriggerHistogram
(TriggerHistogram[] triggerHistogram) getName()
Get a unique name for the displaylong
void
masterClockUpdate
(long milliSeconds, long sampleNumber) void
void
pamStart()
void
receiveSourceNotification
(int type, Object object) Receive a notification from the data source - typically a change in DAQ status.void
called when an Observable (PamDataBlock) is removed from the systemvoid
setSampleRate
(float sampleRate, boolean notify) New sample ratevoid
updateData
(PamObservable observable, PamDataUnit pamDataUnit) Informs the PamObserver that existing data have been updatedMethods inherited from class clickDetector.ClickDisplay
clickedOnClick, created, getClickDisplayInfo, offlineDataChanged, pamStop
Methods inherited from class Layout.PamFramePlots
checkDualDisplay, getAxisPanel, getCopyMenuItem, getEastPanel, getFrame, getLeftPlotPanel, getNorthPanel, getPlotPanel, getRightPlotPanel, getSouthPanel, getWestPanel, repaint, setAxisPanel, setEastPanel, setFrame, setLeftPlotPanel, setNorthPanel, setPlotPanel, setRightPlotPanel, setSouthPanel, setWestPanel
-
Field Details
-
progressBars
-
-
Constructor Details
-
ClickTrigger
public ClickTrigger(ClickControl clickControl, ClickDisplayManager clickDisplayManager, clickDetector.ClickDisplayManager.ClickDisplayInfo clickDisplayInfo) -
ClickTrigger
public ClickTrigger(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
-
getRequiredDataHistory
- Specified by:
getRequiredDataHistory
in interfacePamObserver
- Parameters:
arg
- optional argument from PamObservable- Returns:
- time in milliseconds required by data held in PamObservable
-
getObserverObject
- Specified by:
getObserverObject
in 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.
-
addData
Description copied from interface:PamObserver
Informs the PamObserver that new data have been added to the Observable class- Specified by:
addData
in interfacePamObserver
-
updateData
Description copied from interface:PamObserver
Informs the PamObserver that existing data have been updated- Specified by:
updateData
in interfacePamObserver
-
getObserverName
- Specified by:
getObserverName
in interfacePamObserver
-
displayTriggerHistogram
-
setSampleRate
public void setSampleRate(float sampleRate, boolean notify) Description copied from interface:PamObserver
New sample rate- Specified by:
setSampleRate
in interfacePamObserver
- Parameters:
notify
- Notify other PamObservers and PamObservables in the chain.
-
masterClockUpdate
public void masterClockUpdate(long milliSeconds, long sampleNumber) - Specified by:
masterClockUpdate
in interfacePamObserver
-
receiveSourceNotification
Description copied from interface:PamObserver
Receive a notification from the data source - typically a change in DAQ status. See the constants listed in AcquisitionProcess for potential change types.- Specified by:
receiveSourceNotification
in interfacePamObserver
- Parameters:
type
- the type of changeobject
- generic object added here so that we can include anything in the future
-
getName
Description copied from class:PamFramePlots
Get a unique name for the display- Specified by:
getName
in classPamFramePlots
- Returns:
- a unique name for the display.
-
noteNewSettings
public void noteNewSettings()- Specified by:
noteNewSettings
in interfacePamObserver
- Specified by:
noteNewSettings
in classClickDisplay
-
removeObservable
Description copied from interface:PamObserver
called when an Observable (PamDataBlock) is removed from the system- Specified by:
removeObservable
in interfacePamObserver
-
pamStart
public void pamStart()- Overrides:
pamStart
in classClickDisplay
-