Package UserInput

Class UserInputOverlayGraphics


public class UserInputOverlayGraphics extends PamDetectionOverlayGraphics
  • Constructor Details Link icon

    • UserInputOverlayGraphics Link icon

      public UserInputOverlayGraphics(PamDataBlock parentDataBlock)
  • Method Details Link icon

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

    • drawOnSpectrogram Link icon

      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 Link icon

      public String getName()
      Returns:
      the name
    • setName Link icon

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