Package clickDetector
Class TrackedClickGraphics
java.lang.Object
PamView.PanelOverlayDraw
PamView.PamDetectionOverlayGraphics
clickDetector.TrackedClickGraphics
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiondrawDataUnit
(Graphics g, PamDataUnit pamDataUnit, GeneralProjector generalProjector) Draw a PamDataUnit on a display.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, createKeyItem, getDefaultRange, getHoverImage, getHoverTextWithoutWrap, 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
-
Constructor Details
-
TrackedClickGraphics
-
-
Method Details
-
drawDataUnit
public Rectangle drawDataUnit(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.
- Overrides:
drawDataUnit
in classPamDetectionOverlayGraphics
- Parameters:
g
- Graphics handle to draw onpamDataUnit
- PamDataUnit to drawgeneralProjector
- Projector to use when drawing.- Returns:
- A rectangle surrouding whatever has just been drawn.
-
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.
-