whistleDetector
Class WhistleGraphics

java.lang.Object
  extended by PamView.PamDetectionOverlayGraphics
      extended by whistleDetector.WhistleGraphics
All Implemented Interfaces:
ManagedSymbol, PanelOverlayDraw

public class WhistleGraphics
extends PamDetectionOverlayGraphics

Author:
Doug Gillespie Implementation of PanelOverlayDraw for whistles so that the spectrogram can draw whistles over the spectrogram data

Field Summary
(package private)  java.awt.Color[] whistleColours
           
(package private)  WhistleDetector whistleDetector
           
 
Fields inherited from class PamView.PamDetectionOverlayGraphics
lineColour
 
Constructor Summary
WhistleGraphics(WhistleDetector whistleDetector)
           
 
Method Summary
protected  java.awt.Rectangle drawAmplitudeOnRadar(java.awt.Graphics g, PamDataUnit pamDataUnit, GeneralProjector generalProjector)
           
protected  java.awt.Rectangle drawOnMap(java.awt.Graphics g, PamDataUnit pamDetection, GeneralProjector generalProjector)
           
protected  java.awt.Rectangle drawOnSpectrogram(java.awt.Graphics g, PamDataUnit pamDataUnit, GeneralProjector generalProjector)
          Draw on spectrogram changed March 2010 so that the default time unit is milliseconds (Jave time from 1970) rather than samples.
protected  java.awt.Rectangle drawRangeOnRadar(java.awt.Graphics g, PamDataUnit pamDataUnit, GeneralProjector generalProjector)
           
(package private)  java.awt.Rectangle drawWhistleShape(java.awt.Graphics g, ShapeDataUnit pamDataUnit, GeneralProjector projector)
           
 double getDefaultRange()
           
 
Methods inherited from class PamView.PamDetectionOverlayGraphics
canDraw, canDrawOnMap, canDrawOnRadar, canDrawOnSpectrogram, createKeyItem, drawDataUnit, drawLineAndSymbol, drawLineAndSymbol, drawLineOnly, getHoverText, getHydrophones, getLineColor, getLineColour, getMenuKeyItem, getPamSymbol, getPamSymbol, getParentDataBlock, getSymbolInfo, isDetectionData, isDrawLineToLocations, setDefaultRange, setDetectionData, setDrawLineToLocations, setLineColor, setLineColour, setPamSymbol
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

whistleDetector

WhistleDetector whistleDetector

whistleColours

java.awt.Color[] whistleColours
Constructor Detail

WhistleGraphics

public WhistleGraphics(WhistleDetector whistleDetector)
Method Detail

drawOnSpectrogram

protected java.awt.Rectangle drawOnSpectrogram(java.awt.Graphics g,
                                               PamDataUnit pamDataUnit,
                                               GeneralProjector generalProjector)
Description copied from class: PamDetectionOverlayGraphics
Draw on spectrogram changed March 2010 so that the default time unit is milliseconds (Jave time from 1970) rather than samples. This makes it posible to work with data colected over multiple files when operating in viewer mode.

Overrides:
drawOnSpectrogram in class PamDetectionOverlayGraphics
Returns:

drawWhistleShape

java.awt.Rectangle drawWhistleShape(java.awt.Graphics g,
                                    ShapeDataUnit pamDataUnit,
                                    GeneralProjector projector)

getDefaultRange

public double getDefaultRange()
Overrides:
getDefaultRange in class PamDetectionOverlayGraphics

drawOnMap

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

drawAmplitudeOnRadar

protected java.awt.Rectangle drawAmplitudeOnRadar(java.awt.Graphics g,
                                                  PamDataUnit pamDataUnit,
                                                  GeneralProjector generalProjector)
Overrides:
drawAmplitudeOnRadar in class PamDetectionOverlayGraphics

drawRangeOnRadar

protected java.awt.Rectangle drawRangeOnRadar(java.awt.Graphics g,
                                              PamDataUnit pamDataUnit,
                                              GeneralProjector generalProjector)
Overrides:
drawRangeOnRadar in class PamDetectionOverlayGraphics