Package UserInput

Class UserInputOverlayGraphics


public class UserInputOverlayGraphics extends PamDetectionOverlayGraphics
  • Constructor Details

    • UserInputOverlayGraphics

      public UserInputOverlayGraphics(PamDataBlock parentDataBlock)
  • Method Details

    • 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.

    • drawOnSpectrogram

      protected Rectangle drawOnSpectrogram(Graphics g, PamDataUnit pamDataUnit, GeneralProjector generalProjector)
      Draw little triangles at top and bottom of spectrogram - better than boxes for things that only have a start timestamps.
      Overrides:
      drawOnSpectrogram in class PamDetectionOverlayGraphics
      Parameters:
      g -
      pamDataUnit -
      generalProjector -
      Returns:
      updated rectangle
    • getName

      public String getName()
      Returns:
      the name
    • setName

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