public class IpiPluginPanelProvider.IpiPluginPanel extends DisplayPanel implements PamObserver, PamSettings
Constructor and Description |
---|
IpiPluginPanelProvider.IpiPluginPanel(IpiPluginPanelProvider ipiPluginPanelProvider,
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) |
java.io.Serializable |
getSettingsReference() |
long |
getSettingsVersion() |
PamAxis |
getSouthAxis() |
java.lang.String |
getUnitName() |
java.lang.String |
getUnitType() |
PamAxis |
getWestAxis() |
void |
masterClockUpdate(long milliSeconds,
long sampleNumber) |
void |
noteNewSettings() |
void |
removeObservable(PamObservable o)
called when an Observable (PamDataBlock) is removed from the system
|
boolean |
restoreSettings(PamControlledUnitSettings pamControlledUnitSettings) |
void |
setSampleRate(float sampleRate,
boolean notify)
New sample rate
|
void |
update(PamObservable o,
PamDataUnit arg)
Informs the PamObserver that new data have been added to the Observable
class
|
clearImage, clearImage, clearImage, getDisplayImage, getDisplayPanelContainer, getDisplayPanelProvider, getEastAxis, getInnerHeight, getInnerPanel, getInnerWidth, getNorthAxis, getPanel, getPanelBorder, repaint, repaint, setPanelBorder, spectrogramMousePosition
public IpiPluginPanelProvider.IpiPluginPanel(IpiPluginPanelProvider ipiPluginPanelProvider, DisplayPanelContainer displayPanelContainer)
public PamAxis getWestAxis()
getWestAxis
in class DisplayPanel
public PamAxis getSouthAxis()
getSouthAxis
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)
PamObserver
update
in interface PamObserver
o
- Reference to the Observable (a PamDataBlock)arg
- Reference to the new PamDataUnitpublic java.io.Serializable getSettingsReference()
getSettingsReference
in interface PamSettings
public long getSettingsVersion()
getSettingsVersion
in interface PamSettings
public java.lang.String getUnitName()
getUnitName
in interface PamSettings
public java.lang.String getUnitType()
getUnitType
in interface PamSettings
public boolean restoreSettings(PamControlledUnitSettings pamControlledUnitSettings)
restoreSettings
in interface PamSettings
public PamObserver getObserverObject()
getObserverObject
in interface PamObserver