Package radardisplay
Class RadarDisplay
java.lang.Object
Layout.PamFramePlots
userDisplay.UserFramePlots
radardisplay.RadarDisplay
- All Implemented Interfaces:
EventListener
,InternalFrameListener
,PamSettings
,SettingsNameProvider
,PamObserver
-
Field Summary
Fields inherited from class userDisplay.UserFramePlots
FRAME_TYPE_RADAR, FRAME_TYPE_SPECTROGRAM
-
Constructor Summary
ConstructorDescriptionRadarDisplay
(UserDisplayControl userDisplayControl, RadarParameters radarParameters, RadarDisplayComponent radarDisplayComponent) -
Method Summary
Modifier and TypeMethodDescriptionvoid
addData
(PamObservable o, PamDataUnit pamDataUnit) Informs the PamObserver that new data have been added to the Observable classint
getName()
Get a unique name for the displaylong
long
void
masterClockUpdate
(long milliSeconds, long sampleNumber) void
void
void
notifyModelChanged
(int changeType) 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 systemboolean
restoreSettings
(PamControlledUnitSettings pamControlledUnitSettings) void
setLastGpsDataUnit
(GpsDataUnit lastGpsDataUnit) void
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 userDisplay.UserFramePlots
getUserFrameParameters, internalFrameActivated, internalFrameClosed, internalFrameClosing, internalFrameDeactivated, internalFrameDeiconified, internalFrameIconified, internalFrameOpened, setUserFrameParameters
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
-
Constructor Details
-
RadarDisplay
public RadarDisplay(UserDisplayControl userDisplayControl, RadarParameters radarParameters, RadarDisplayComponent radarDisplayComponent)
-
-
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.
-
getName
Description copied from class:PamFramePlots
Get a unique name for the display- Overrides:
getName
in classUserFramePlots
- Returns:
- a unique name for the display.
-
getRadarParameters
-
getFrameType
public int getFrameType()- Specified by:
getFrameType
in classUserFramePlots
-
notifyModelChanged
public void notifyModelChanged(int changeType) - Specified by:
notifyModelChanged
in classUserFramePlots
-
newSettings
public void newSettings() -
getFrameTitle
-
getDataSelectTitle
-
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
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
-
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
-
getLastGpsDataUnit
-
setLastGpsDataUnit
-
getUnitName
- Specified by:
getUnitName
in interfaceSettingsNameProvider
- Returns:
- A Name specific to this instance of the particular class, e.g. Sperm whale detector, Beaked whale detector, etc.
-
getUnitType
- Specified by:
getUnitType
in interfacePamSettings
- Returns:
- A Name specific to the type, e.g. Click detector
-
getSettingsReference
- Specified by:
getSettingsReference
in interfacePamSettings
- Returns:
- The serialisable object that will be stored
-
getSettingsVersion
public long getSettingsVersion()- Specified by:
getSettingsVersion
in interfacePamSettings
- Returns:
- An integer version number for the settings
-
restoreSettings
- Specified by:
restoreSettings
in interfacePamSettings
- 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
-