public class VetoPluginPanelProvider.VetoPluginPanel extends DisplayPanel implements PamObserver
Constructor and Description |
---|
VetoPluginPanelProvider.VetoPluginPanel(VetoPluginPanelProvider vetoPluginPanelProvider,
DisplayPanelContainer displayPanelContainer) |
Modifier and Type | Method and Description |
---|---|
void |
containerNotification(DisplayPanelContainer displayContainer,
int noteType)
Called by the DisplayPanelContainer whenever the scales
change - e.g.
|
void |
destroyPanel()
The displayPanelContainer should call destroyPanel
when the panel is no longer required so that the
displayPanel can unsubscribe to any data it was
observing.
|
java.lang.String |
getObserverName() |
PamObserver |
getObserverObject() |
long |
getRequiredDataHistory(PamObservable o,
java.lang.Object arg) |
PamAxis |
getWestAxis() |
void |
masterClockUpdate(long milliSeconds,
long sampleNumber) |
void |
noteNewSettings() |
void |
removeObservable(PamObservable o)
called when an Observable (PamDataBlock) is removed from the system
|
void |
setSampleRate(float sampleRate,
boolean notify)
New sample rate
|
void |
update(PamObservable o,
PamDataUnit arg)
new data have arrived - work out what channel it's from and plot it.
|
clearImage, clearImage, clearImage, getDisplayImage, getDisplayPanelContainer, getDisplayPanelProvider, getEastAxis, getInnerHeight, getInnerPanel, getInnerWidth, getNorthAxis, getPanel, getPanelBorder, getSouthAxis, repaint, repaint, setPanelBorder, spectrogramMousePosition
public VetoPluginPanelProvider.VetoPluginPanel(VetoPluginPanelProvider vetoPluginPanelProvider, DisplayPanelContainer displayPanelContainer)
public PamObserver getObserverObject()
getObserverObject
in interface PamObserver
public PamAxis getWestAxis()
getWestAxis
in class DisplayPanel
public void containerNotification(DisplayPanelContainer displayContainer, int noteType)
DisplayPanel
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.
containerNotification
in class DisplayPanel
public void destroyPanel()
DisplayPanel
destroyPanel
in class DisplayPanel
public java.lang.String getObserverName()
getObserverName
in interface PamObserver
public long getRequiredDataHistory(PamObservable o, java.lang.Object arg)
getRequiredDataHistory
in interface PamObserver
o
- PamObservable class requiring the dataarg
- optional argument from PamObservablepublic void noteNewSettings()
noteNewSettings
in interface PamObserver
public void removeObservable(PamObservable o)
PamObserver
removeObservable
in interface PamObserver
public void setSampleRate(float sampleRate, boolean notify)
PamObserver
setSampleRate
in interface PamObserver
notify
- Notify other PamObservers and PamObservables in the chain.public void masterClockUpdate(long milliSeconds, long sampleNumber)
masterClockUpdate
in interface PamObserver
public void update(PamObservable o, PamDataUnit arg)
update
in interface PamObserver
o
- Reference to the Observable (a PamDataBlock)arg
- Reference to the new PamDataUnit