Package seismicVeto
Class VetoPluginPanelProvider.VetoPluginPanel
java.lang.Object
Layout.DisplayPanel
seismicVeto.VetoPluginPanelProvider.VetoPluginPanel
- All Implemented Interfaces:
PamObserver
- Enclosing class:
VetoPluginPanelProvider
The class that actually does the display work.
- Author:
- Doug
-
Constructor Summary
ConstructorDescriptionVetoPluginPanel
(VetoPluginPanelProvider vetoPluginPanelProvider, DisplayPanelContainer displayPanelContainer) -
Method Summary
Modifier and TypeMethodDescriptionvoid
addData
(PamObservable o, PamDataUnit arg) new data have arrived - work out what channel it's from and plot it.void
containerNotification
(DisplayPanelContainer displayContainer, int noteType) Called by the DisplayPanelContainer whenever the scales change - e.g.void
The displayPanelContainer should call destroyPanel when the panel is no longer required so that the displayPanel can unsubscribe to any data it was observing.long
void
masterClockUpdate
(long milliSeconds, long sampleNumber) void
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 Layout.DisplayPanel
clearImage, clearImage, clearImage, getDisplayImage, getDisplayPanelContainer, getDisplayPanelProvider, getEastAxis, getInnerHeight, getInnerPanel, getInnerWidth, getNorthAxis, getPanel, getPanelBorder, getSouthAxis, prepareImage, repaint, repaint, setPanelBorder, spectrogramMousePosition
-
Constructor Details
-
VetoPluginPanel
public VetoPluginPanel(VetoPluginPanelProvider vetoPluginPanelProvider, DisplayPanelContainer displayPanelContainer)
-
-
Method Details
-
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.
-
getWestAxis
- Overrides:
getWestAxis
in classDisplayPanel
-
containerNotification
Description copied from class:DisplayPanel
Called 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:
containerNotification
in classDisplayPanel
-
destroyPanel
public void destroyPanel()Description copied from class:DisplayPanel
The 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:
destroyPanel
in classDisplayPanel
-
getObserverName
- Specified by:
getObserverName
in interfacePamObserver
-
getRequiredDataHistory
- Specified by:
getRequiredDataHistory
in interfacePamObserver
- Parameters:
arg
- optional argument from PamObservable- Returns:
- time in milliseconds required by data held in PamObservable
-
noteNewSettings
public void noteNewSettings()- Specified by:
noteNewSettings
in interfacePamObserver
-
removeObservable
Description copied from interface:PamObserver
called when an Observable (PamDataBlock) is removed from the system- Specified by:
removeObservable
in interfacePamObserver
-
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
-
addData
new data have arrived - work out what channel it's from and plot it.- 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
-
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
-