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 int
static final int
static final int
Fields inherited from class PamView.PamDetectionOverlayGraphics
lineColour, locColour, pamSymbol
-
Constructor Summary
ConstructorsConstructorDescriptionNewClickOverlayGraphics
(ClickControl clickControl, PamDataBlock parentDataBlock, int drawTypes, String name) -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
protected boolean
protected PamKeyItem
createMapKey
(int keyType) Create a key item specific to the mapprotected PamKeyItem
createRadarKey
(int keyType) create a key item specific to the radarprotected PamKeyItem
createSpectrogramKey
(int keyType) protected Rectangle
drawAmplitudeOnRadar
(Graphics g, PamDataUnit pamDataUnit, GeneralProjector generalProjector) protected Rectangle
drawOnMap
(Graphics g, PamDataUnit pamDetection, GeneralProjector generalProjector) protected Rectangle
drawOnSpectrogram
(Graphics g, PamDataUnit pamDataUnit, GeneralProjector generalProjector) Draw little triangles at top and bottom of spectrogram - better than the boxes for clicks.getName()
protected Component
makeMultiColourIcon
(int iconStyle) Makes a multi coloured icon for use in key items.protected Component
makeMultiColourIcon
(int iconStyle, PamSymbol forceSymbolType) void
Methods 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, showOptions
Methods 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:
canDrawOnMap
in 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:
canDrawOnSpectrogram
in 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:
drawAmplitudeOnRadar
in 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:
drawOnSpectrogram
in 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:
drawOnMap
in classPamDetectionOverlayGraphics
-