IshmaelLocator
Class IshOverlayGraphics

java.lang.Object
  extended by PamView.PamDetectionOverlayGraphics
      extended by IshmaelLocator.IshOverlayGraphics
All Implemented Interfaces:
ManagedSymbol, PanelOverlayDraw

public class IshOverlayGraphics
extends PamDetectionOverlayGraphics

Process for choosing a symbol to represent IshLocalizations on the map (and elsewhere).

Author:
Dave Mellinger

Field Summary
 
Fields inherited from class PamView.PamDetectionOverlayGraphics
lineColour
 
Constructor Summary
IshOverlayGraphics(PamDataBlock parentDataBlock)
           
 
Method Summary
 java.awt.Rectangle drawDataUnit(java.awt.Graphics g, PamDataUnit pamDataUnit, GeneralProjector generalProjector)
          Draw a PamDataUnit on a display.
 PamSymbol getPamSymbol()
          Choose a symbol, color, size, etc.
 
Methods inherited from class PamView.PamDetectionOverlayGraphics
canDraw, canDrawOnMap, canDrawOnRadar, canDrawOnSpectrogram, createKeyItem, drawAmplitudeOnRadar, drawLineAndSymbol, drawLineAndSymbol, drawLineOnly, drawOnMap, drawOnSpectrogram, drawRangeOnRadar, getDefaultRange, getHoverText, getHydrophones, getLineColor, getLineColour, getMenuKeyItem, 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
 

Constructor Detail

IshOverlayGraphics

public IshOverlayGraphics(PamDataBlock parentDataBlock)
Method Detail

getPamSymbol

public PamSymbol getPamSymbol()
Choose a symbol, color, size, etc.

Specified by:
getPamSymbol in interface ManagedSymbol
Overrides:
getPamSymbol in class PamDetectionOverlayGraphics

drawDataUnit

public java.awt.Rectangle drawDataUnit(java.awt.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.

Specified by:
drawDataUnit in interface PanelOverlayDraw
Overrides:
drawDataUnit in class PamDetectionOverlayGraphics
Parameters:
g - Graphics handle to draw on
pamDataUnit - PamDataUnit to draw
generalProjector - Projector to use when drawing.
Returns:
A rectange surrouding whatever has just been drawn.