Package radardisplay

Class RadarDisplay

All Implemented Interfaces:
EventListener, InternalFrameListener, PamSettings, SettingsNameProvider, PamObserver

public class RadarDisplay extends UserFramePlots implements PamObserver, PamSettings
  • Constructor Details Link icon

  • Method Details Link icon

    • getObserverObject Link icon

      public PamObserver getObserverObject()
      Specified by:
      getObserverObject in interface PamObserver
      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 Link icon

      public String getName()
      Description copied from class: PamFramePlots
      Get a unique name for the display
      Overrides:
      getName in class UserFramePlots
      Returns:
      a unique name for the display.
    • getRadarParameters Link icon

      public RadarParameters getRadarParameters()
    • getFrameType Link icon

      public int getFrameType()
      Specified by:
      getFrameType in class UserFramePlots
    • notifyModelChanged Link icon

      public void notifyModelChanged(int changeType)
      Specified by:
      notifyModelChanged in class UserFramePlots
    • newSettings Link icon

      public void newSettings()
    • getFrameTitle Link icon

      public String getFrameTitle()
    • getDataSelectTitle Link icon

      public String getDataSelectTitle()
    • getObserverName Link icon

      public String getObserverName()
      Specified by:
      getObserverName in interface PamObserver
    • getRequiredDataHistory Link icon

      public long getRequiredDataHistory(PamObservable o, Object arg)
      Specified by:
      getRequiredDataHistory in interface PamObserver
      Parameters:
      arg - optional argument from PamObservable
      Returns:
      time in milliseconds required by data held in PamObservable
    • noteNewSettings Link icon

      public void noteNewSettings()
      Specified by:
      noteNewSettings in interface PamObserver
    • removeObservable Link icon

      public void removeObservable(PamObservable o)
      Description copied from interface: PamObserver
      called when an Observable (PamDataBlock) is removed from the system
      Specified by:
      removeObservable in interface PamObserver
    • setSampleRate Link icon

      public void setSampleRate(float sampleRate, boolean notify)
      Description copied from interface: PamObserver
      New sample rate
      Specified by:
      setSampleRate in interface PamObserver
      Parameters:
      notify - Notify other PamObservers and PamObservables in the chain.
    • masterClockUpdate Link icon

      public void masterClockUpdate(long milliSeconds, long sampleNumber)
      Specified by:
      masterClockUpdate in interface PamObserver
    • addData Link icon

      public void addData(PamObservable o, PamDataUnit pamDataUnit)
      Description copied from interface: PamObserver
      Informs the PamObserver that new data have been added to the Observable class
      Specified by:
      addData in interface PamObserver
    • updateData Link icon

      public void updateData(PamObservable observable, PamDataUnit pamDataUnit)
      Description copied from interface: PamObserver
      Informs the PamObserver that existing data have been updated
      Specified by:
      updateData in interface PamObserver
    • receiveSourceNotification Link icon

      public void receiveSourceNotification(int type, Object object)
      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 interface PamObserver
      Parameters:
      type - the type of change
      object - generic object added here so that we can include anything in the future
    • getLastGpsDataUnit Link icon

      public GpsDataUnit getLastGpsDataUnit()
    • setLastGpsDataUnit Link icon

      public void setLastGpsDataUnit(GpsDataUnit lastGpsDataUnit)
    • getUnitName Link icon

      public String getUnitName()
      Specified by:
      getUnitName in interface SettingsNameProvider
      Returns:
      A Name specific to this instance of the particular class, e.g. Sperm whale detector, Beaked whale detector, etc.
    • getUnitType Link icon

      public String getUnitType()
      Specified by:
      getUnitType in interface PamSettings
      Returns:
      A Name specific to the type, e.g. Click detector
    • getSettingsReference Link icon

      public Serializable getSettingsReference()
      Specified by:
      getSettingsReference in interface PamSettings
      Returns:
      The serialisable object that will be stored
    • getSettingsVersion Link icon

      public long getSettingsVersion()
      Specified by:
      getSettingsVersion in interface PamSettings
      Returns:
      An integer version number for the settings
    • restoreSettings Link icon

      public boolean restoreSettings(PamControlledUnitSettings pamControlledUnitSettings)
      Specified by:
      restoreSettings in interface PamSettings
      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