Package fftManager
Class FFTPluginPanelProvider.FFTPluginPanel
java.lang.Object
Layout.DisplayPanel
fftManager.FFTPluginPanelProvider.FFTPluginPanel
- All Implemented Interfaces:
 PamSettings,SettingsNameProvider,PamObserver
- Enclosing class:
 FFTPluginPanelProvider
public class FFTPluginPanelProvider.FFTPluginPanel
extends DisplayPanel
implements PamObserver, PamSettings
- 
Field Summary
Fields inherited from class Layout.DisplayPanel
displayPanelContainer, displayPanelProvider, plotBackground - 
Constructor Summary
ConstructorsConstructorDescriptionFFTPluginPanel(FFTPluginPanelProvider fFTPluginPanelProvider, DisplayPanelContainer displayPanelContainer)  - 
Method Summary
Modifier and TypeMethodDescriptionvoidaddData(PamObservable o, PamDataUnit arg) Informs the PamObserver that new data have been added to the Observable classvoidcontainerNotification(DisplayPanelContainer displayContainer, int noteType) Called by the DisplayPanelContainer whenever the scales change - e.g.protected JPopupMenuCreate a popup menu.voidThe displayPanelContainer should call destroyPanel when the panel is no longer required so that the displayPanel can unsubscribe to any data it was observing.longlongvoidmasterClockUpdate(long milliSeconds, long sampleNumber) 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 systembooleanrestoreSettings(PamControlledUnitSettings pamControlledUnitSettings) voidsetSampleRate(float sampleRate, boolean notify) New sample ratevoidspectrogramMousePosition(int chan, Point point, long mouseTime, double mouseFreq) Called when the mouse is clicked or dragged on a spectrogram display during viewer operation.voidupdateData(PamObservable observable, PamDataUnit pamDataUnit) Informs the PamObserver that existing data have been updatedMethods inherited from class Layout.DisplayPanel
clearImage, clearImage, clearImage, getDisplayImage, getDisplayPanelContainer, getDisplayPanelProvider, getEastAxis, getInnerHeight, getInnerPanel, getInnerWidth, getNorthAxis, getPanel, getPanelBorder, prepareImage, repaint, repaint, setPanelBorder 
- 
Constructor Details
- 
FFTPluginPanel
public FFTPluginPanel(FFTPluginPanelProvider fFTPluginPanelProvider, DisplayPanelContainer displayPanelContainer)  
 - 
 - 
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.
 
 - 
getWestAxis
- Overrides:
 getWestAxisin classDisplayPanel
 - 
getSouthAxis
- Overrides:
 getSouthAxisin classDisplayPanel
 - 
createPopupMenu
Description copied from class:DisplayPanelCreate a popup menu.This should be overridden in any sub classes that want to present a menu for setting any display options.
- Overrides:
 createPopupMenuin classDisplayPanel- Returns:
 - reference to the popup menu for the display panel
 
 - 
containerNotification
Description copied from class:DisplayPanelCalled by the DisplayPanelContainer whenever the scales change - e.g. every time new data is drawn on the spectrogram.The display panel can use this information in two ways:
Firstly, it should clear the region of the display just ahead of the current spectrogram x coordinate. Secondly, it may draw additional data on the display.
- Specified by:
 containerNotificationin classDisplayPanel- Parameters:
 displayContainer-noteType-
 - 
destroyPanel
public void destroyPanel()Description copied from class:DisplayPanelThe displayPanelContainer should call destroyPanel when the panel is no longer required so that the displayPanel can unsubscribe to any data it was observing.- Specified by:
 destroyPanelin classDisplayPanel
 - 
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
 - 
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
 - 
getSettingsReference
- Specified by:
 getSettingsReferencein interfacePamSettings- Returns:
 - The serialisable object that will be stored
 
 - 
getSettingsVersion
public long getSettingsVersion()- Specified by:
 getSettingsVersionin interfacePamSettings- Returns:
 - An integer version number for the settings
 
 - 
getUnitName
- Specified by:
 getUnitNamein interfaceSettingsNameProvider- Returns:
 - A Name specific to this instance of the particular class, e.g. Sperm whale detector, Beaked whale detector, etc.
 
 - 
getUnitType
- Specified by:
 getUnitTypein interfacePamSettings- Returns:
 - A Name specific to the type, e.g. Click detector
 
 - 
restoreSettings
- Specified by:
 restoreSettingsin interfacePamSettings- Parameters:
 pamControlledUnitSettings-- Returns:
 - true if successful The object performs final checks (if needed) and then casts the settings data pamcontrolledunitSettings.settings into the correct type and uses as required
 
 - 
spectrogramMousePosition
Description copied from class:DisplayPanelCalled when the mouse is clicked or dragged on a spectrogram display during viewer operation.- Overrides:
 spectrogramMousePositionin classDisplayPanel- Parameters:
 chan- channel for that panelpoint- point on the screen (from the mouse adapter)mouseTime- time of the mouse position in millisecondsmouseFreq- frequency of the mouse position in Hz.
 
 -