Package clickDetector
Class NewClickOverlayGraphics
java.lang.Object
PamView.PanelOverlayDraw
PamView.PamDetectionOverlayGraphics
clickDetector.NewClickOverlayGraphics
- Author:
 - Douglas Gillespie Overlay graphics for clicks from clickDetector.
 
- 
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intFields inherited from class PamView.PamDetectionOverlayGraphics
lineColour, locColour, pamSymbol - 
Constructor Summary
ConstructorsConstructorDescriptionNewClickOverlayGraphics(ClickControl clickControl, PamDataBlock parentDataBlock, int drawTypes, String name)  - 
Method Summary
Modifier and TypeMethodDescriptionprotected booleanprotected booleanprotected PamKeyItemcreateMapKey(int keyType) Create a key item specific to the mapprotected PamKeyItemcreateRadarKey(int keyType) create a key item specific to the radarprotected PamKeyItemcreateSpectrogramKey(int keyType) protected RectangledrawAmplitudeOnRadar(Graphics g, PamDataUnit pamDataUnit, GeneralProjector generalProjector) protected RectangledrawOnMap(Graphics g, PamDataUnit pamDetection, GeneralProjector generalProjector) protected RectangledrawOnSpectrogram(Graphics g, PamDataUnit pamDataUnit, GeneralProjector generalProjector) Draw little triangles at top and bottom of spectrogram - better than the boxes for clicks.getName()protected ComponentmakeMultiColourIcon(int iconStyle) Makes a multi coloured icon for use in key items.protected ComponentmakeMultiColourIcon(int iconStyle, PamSymbol forceSymbolType) voidMethods inherited from class PamView.PamDetectionOverlayGraphics
canDraw, canDraw, canDrawOnRadar, createKeyItem, drawDataUnit, drawLineAndSymbol, drawLineAndSymbol, drawLineAndSymbol, drawLineOnly, drawRangeOnRadar, drawSlantOnRadar, getDefaultRange, getHoverImage, getHoverText, getHoverTextWithoutWrap, getHydrophones, getLineColor, getLineColour, getLocColour, getMenuKeyItem, getPamSymbol, getParentDataBlock, getPerspectiveSymbol, getSymbolInfo, hasOptionsDialog, isDetectionData, setDefaultRange, setDetectionData, setLineColor, setLineColour, setLocColour, showOptionsMethods inherited from class PamView.PanelOverlayDraw
getDefaultSymbol, preDrawAnything, setDefaultSymbol 
- 
Field Details
- 
SHOW_MAP
public static final int SHOW_MAP- See Also:
 
 - 
SHOW_SPECTROGRAM
public static final int SHOW_SPECTROGRAM- See Also:
 
 - 
SHOW_RADAR
public static final int SHOW_RADAR- See Also:
 
 
 - 
 - 
Constructor Details
- 
NewClickOverlayGraphics
public NewClickOverlayGraphics(ClickControl clickControl, PamDataBlock parentDataBlock, int drawTypes, String name)  
 - 
 - 
Method Details
- 
canDrawOnMap
protected boolean canDrawOnMap()- Overrides:
 canDrawOnMapin classPamDetectionOverlayGraphics- Returns:
 - true if these data can be drawn on the map. 
 
Thsi shoudl always be true, since it's always possible to draw a symbol at the hydrophone location even if no range or bearing information are available.
 
 - 
canDrawOnSpectrogram
protected boolean canDrawOnSpectrogram()- Overrides:
 canDrawOnSpectrogramin classPamDetectionOverlayGraphics- 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.
 
 - 
drawAmplitudeOnRadar
protected Rectangle drawAmplitudeOnRadar(Graphics g, PamDataUnit pamDataUnit, GeneralProjector generalProjector) - Overrides:
 drawAmplitudeOnRadarin classPamDetectionOverlayGraphics
 - 
makeMultiColourIcon
Makes a multi coloured icon for use in key items.- Parameters:
 iconStyle- full or concise icon- Returns:
 - a multi coloured icon with lots of coloured circles.
 
 - 
makeMultiColourIcon
- Parameters:
 iconStyle- full or concise iconforceSymbolType- force a particular symbol type- Returns:
 - multi coloured icon
 
 - 
createMapKey
Create a key item specific to the map- Parameters:
 keyType-- Returns:
 - key item
 
 - 
createRadarKey
create a key item specific to the radar- Parameters:
 keyType- type of key to draw- Returns:
 - key item
 
 - 
drawOnSpectrogram
protected Rectangle drawOnSpectrogram(Graphics g, PamDataUnit pamDataUnit, GeneralProjector generalProjector) Draw little triangles at top and bottom of spectrogram - better than the boxes for clicks.- Overrides:
 drawOnSpectrogramin classPamDetectionOverlayGraphics- Parameters:
 g-pamDataUnit-generalProjector-- Returns:
 - updated rectangle
 
 - 
createSpectrogramKey
 - 
getName
- Returns:
 - the name
 
 - 
setName
- Parameters:
 name- the name to set
 - 
drawOnMap
protected Rectangle drawOnMap(Graphics g, PamDataUnit pamDetection, GeneralProjector generalProjector) - Overrides:
 drawOnMapin classPamDetectionOverlayGraphics
 
 -