Package clickDetector

Class NewClickOverlayGraphics


public class NewClickOverlayGraphics extends PamDetectionOverlayGraphics
Author:
Douglas Gillespie Overlay graphics for clicks from clickDetector.
  • Field Details

  • Constructor Details

  • Method Details

    • canDrawOnMap

      protected boolean canDrawOnMap()
      Overrides:
      canDrawOnMap in class PamDetectionOverlayGraphics
      Returns:
      true if these data can be drawn on the map.

      Thsi shoudl always be true, since it's always possible to draw a symbol at the hydrophone location even if no range or bearing information are available.

    • canDrawOnSpectrogram

      protected boolean canDrawOnSpectrogram()
      Overrides:
      canDrawOnSpectrogram in class PamDetectionOverlayGraphics
      Returns:
      true if these data can be drawn on the spectrogram.

      Generally, this is always true since it will just draw a rectangle with the time and frequency limits of the sound. If it is not the case, then override this function and return false.

    • drawAmplitudeOnRadar

      protected Rectangle drawAmplitudeOnRadar(Graphics g, PamDataUnit pamDataUnit, GeneralProjector generalProjector)
      Overrides:
      drawAmplitudeOnRadar in class PamDetectionOverlayGraphics
    • makeMultiColourIcon

      protected Component makeMultiColourIcon(int iconStyle)
      Makes a multi coloured icon for use in key items.
      Parameters:
      iconStyle - full or concise icon
      Returns:
      a multi coloured icon with lots of coloured circles.
    • makeMultiColourIcon

      protected Component makeMultiColourIcon(int iconStyle, PamSymbol forceSymbolType)
      Parameters:
      iconStyle - full or concise icon
      forceSymbolType - force a particular symbol type
      Returns:
      multi coloured icon
    • createMapKey

      protected PamKeyItem createMapKey(int keyType)
      Create a key item specific to the map
      Parameters:
      keyType -
      Returns:
      key item
    • createRadarKey

      protected PamKeyItem createRadarKey(int keyType)
      create a key item specific to the radar
      Parameters:
      keyType - type of key to draw
      Returns:
      key item
    • drawOnSpectrogram

      protected Rectangle drawOnSpectrogram(Graphics g, PamDataUnit pamDataUnit, GeneralProjector generalProjector)
      Draw little triangles at top and bottom of spectrogram - better than the boxes for clicks.
      Overrides:
      drawOnSpectrogram in class PamDetectionOverlayGraphics
      Parameters:
      g -
      pamDataUnit -
      generalProjector -
      Returns:
      updated rectangle
    • createSpectrogramKey

      protected PamKeyItem createSpectrogramKey(int keyType)
    • getName

      public String getName()
      Returns:
      the name
    • setName

      public void setName(String name)
      Parameters:
      name - the name to set
    • drawOnMap

      protected Rectangle drawOnMap(Graphics g, PamDataUnit pamDetection, GeneralProjector generalProjector)
      Overrides:
      drawOnMap in class PamDetectionOverlayGraphics