Class TrackedGroupOverlayGraphics

java.lang.Object
PamView.PanelOverlayDraw
PamView.PamDetectionOverlayGraphics
difar.trackedGroups.TrackedGroupOverlayGraphics

public class TrackedGroupOverlayGraphics extends PamDetectionOverlayGraphics
TrackedGroupOverlayGraphics show a summary of all the bearings to each tracked group (on the map)
  • Field Details Link icon

    • defaultSymbol Link icon

      public static final SymbolData defaultSymbol
  • Constructor Details Link icon

  • Method Details Link icon

    • drawOnMap Link icon

      protected Rectangle drawOnMap(Graphics g, PamDataUnit pamDetection, GeneralProjector generalProjector)
      Draw a wedge that is centred on the mean bearing for the group. The width of the wedge is +/- 2 standard deviations from the mean of all the bearings to the group (2 standard deviations clockwise and again 2 more standard deviations anticlockwise). TODO: A few things for the future: 1. Colour lines by groups 2. Make a key item to show different groups 3. Improve on the tooltiptext.
      Overrides:
      drawOnMap in class PamDetectionOverlayGraphics
    • canDrawOnSpectrogram Link icon

      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.

    • getHoverText Link icon

      public String getHoverText(GeneralProjector generalProjector, PamDataUnit dataUnit, int iSide)
      Description copied from class: PamDetectionOverlayGraphics
      Get tool tip content for the data unit for this projector.
      Overrides:
      getHoverText in class PamDetectionOverlayGraphics
      Parameters:
      generalProjector - projector
      dataUnit - dataunit
      iSide - left or right (0 or 1 I think, might be -1 or +1 though !)
      Returns:
      tooltip content consisting of text and / or an image.