Package difar.trackedGroups
Class TrackedGroupOverlayGraphics
java.lang.Object
PamView.PanelOverlayDraw
PamView.PamDetectionOverlayGraphics
difar.trackedGroups.TrackedGroupOverlayGraphics
TrackedGroupOverlayGraphics show a summary of all the bearings
to each tracked group (on the map)
-
Field Summary
FieldsFields inherited from class PamView.PamDetectionOverlayGraphics
lineColour, locColour, pamSymbol
-
Constructor Summary
ConstructorsConstructorDescriptionTrackedGroupOverlayGraphics
(DifarControl difarControl, TrackedGroupDataBlock trackedGroupDataBlock) -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
protected Rectangle
drawOnMap
(Graphics g, PamDataUnit pamDetection, GeneralProjector generalProjector) Draw a wedge that is centred on the mean bearing for the group.getHoverText
(GeneralProjector generalProjector, PamDataUnit dataUnit, int iSide) Get tool tip content for the data unit for this projector.Methods inherited from class PamView.PamDetectionOverlayGraphics
canDraw, canDraw, canDrawOnMap, canDrawOnRadar, createKeyItem, drawAmplitudeOnRadar, drawDataUnit, drawLineAndSymbol, drawLineAndSymbol, drawLineAndSymbol, drawLineOnly, drawOnSpectrogram, drawRangeOnRadar, drawSlantOnRadar, getDefaultRange, getHoverImage, 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
-
Constructor Details
-
TrackedGroupOverlayGraphics
public TrackedGroupOverlayGraphics(DifarControl difarControl, TrackedGroupDataBlock trackedGroupDataBlock)
-
-
Method Details
-
drawOnMap
protected Rectangle drawOnMap(Graphics g, PamDataUnit pamDetection, GeneralProjector generalProjector) Draw a wedge that is centred on the mean bearing for the group. The width of the wedge is +/- 2 standard deviations from the mean of all the bearings to the group (2 standard deviations clockwise and again 2 more standard deviations anticlockwise). TODO: A few things for the future: 1. Colour lines by groups 2. Make a key item to show different groups 3. Improve on the tooltiptext.- Overrides:
drawOnMap
in classPamDetectionOverlayGraphics
-
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.
-
getHoverText
Description copied from class:PamDetectionOverlayGraphics
Get tool tip content for the data unit for this projector.- Overrides:
getHoverText
in classPamDetectionOverlayGraphics
- Parameters:
generalProjector
- projectordataUnit
- dataunitiSide
- left or right (0 or 1 I think, might be -1 or +1 though !)- Returns:
- tooltip content consisting of text and / or an image.
-