whistleDetector
Class WhistleEventGraphics

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

public class WhistleEventGraphics
extends PamDetectionOverlayGraphics


Field Summary
(package private)  PamSymbol mapSymbol
           
(package private)  WhistleEventDetector whistleEventDetector
           
 
Fields inherited from class PamView.PamDetectionOverlayGraphics
lineColour
 
Constructor Summary
WhistleEventGraphics(WhistleEventDetector whistleEventDetector)
           
 
Method Summary
 boolean canDraw(GeneralProjector generalProjector)
          Used to tell the various displays whether or not the data in the parentDataBlock can be drawn on each of those displays.
 
Methods inherited from class PamView.PamDetectionOverlayGraphics
canDrawOnMap, canDrawOnRadar, canDrawOnSpectrogram, createKeyItem, drawAmplitudeOnRadar, drawDataUnit, drawLineAndSymbol, drawLineAndSymbol, drawLineOnly, drawOnMap, drawOnSpectrogram, drawRangeOnRadar, getDefaultRange, 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

mapSymbol

PamSymbol mapSymbol

whistleEventDetector

WhistleEventDetector whistleEventDetector
Constructor Detail

WhistleEventGraphics

public WhistleEventGraphics(WhistleEventDetector whistleEventDetector)
Method Detail

canDraw

public boolean canDraw(GeneralProjector generalProjector)
Description copied from class: PamDetectionOverlayGraphics
Used to tell the various displays whether or not the data in the parentDataBlock can be drawn on each of those displays. This is based purely on the axis types of the displays and whether or not the parentDataBlock's data untits are likely to have data which can transform into those axis types.

For simplicity I've broken it up into the three main display types currently existing in Pamguard.

Specified by:
canDraw in interface PanelOverlayDraw
Overrides:
canDraw in class PamDetectionOverlayGraphics
Returns:
Returns whether or not the object can be drawn using the given projector. The implementation of CanDraw should examine the parameter types in GeneralProjector and check that it will know how to prvide those parameters before returning true, or false otherwise.