Package clickDetector

Class TrackedClickGraphics


public class TrackedClickGraphics extends PamDetectionOverlayGraphics
  • Constructor Details

    • TrackedClickGraphics

      public TrackedClickGraphics(PamDataBlock parentDataBlock)
  • Method Details

    • drawDataUnit

      public Rectangle drawDataUnit(Graphics g, PamDataUnit pamDataUnit, GeneralProjector generalProjector)
      Description copied from class: PamDetectionOverlayGraphics
      Draw a PamDataUnit on a display.

      This is split into separate routines for the three main display types for simplicity both of reading this code and for overriding the various functions.

      If display types are added to PAMGUARD, these functions will need to be added to.

      Overrides:
      drawDataUnit in class PamDetectionOverlayGraphics
      Parameters:
      g - Graphics handle to draw on
      pamDataUnit - PamDataUnit to draw
      generalProjector - Projector to use when drawing.
      Returns:
      A rectangle surrouding whatever has just been drawn.
    • getHoverText

      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.