public class TrackedClickGraphics extends PamDetectionOverlayGraphics
Constructor and Description |
---|
TrackedClickGraphics(PamDataBlock parentDataBlock) |
Modifier and Type | Method and Description |
---|---|
java.awt.Rectangle |
drawDataUnit(java.awt.Graphics g,
PamDataUnit pamDataUnit,
GeneralProjector generalProjector)
Draw a PamDataUnit on a display.
|
java.lang.String |
getHoverText(GeneralProjector generalProjector,
PamDataUnit dataUnit,
int iSide)
Get tool tip content for the data unit for this projector.
|
canDraw, createKeyItem, getDefaultRange, getHoverImage, getHoverTextWithoutWrap, getLineColor, getLineColour, getMenuKeyItem, getPamSymbol, getPamSymbol, getParentDataBlock, getSymbolInfo, hasOptionsDialog, isDetectionData, isDrawLineToLocations, setDefaultRange, setDetectionData, setDrawLineToLocations, setLineColor, setLineColour, setPamSymbol, showOptions
public TrackedClickGraphics(PamDataBlock parentDataBlock)
public java.awt.Rectangle drawDataUnit(java.awt.Graphics g, PamDataUnit pamDataUnit, GeneralProjector generalProjector)
PamDetectionOverlayGraphics
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.
drawDataUnit
in interface PanelOverlayDraw
drawDataUnit
in class PamDetectionOverlayGraphics
g
- Graphics handle to draw onpamDataUnit
- PamDataUnit to drawgeneralProjector
- Projector to use when drawing.public java.lang.String getHoverText(GeneralProjector generalProjector, PamDataUnit dataUnit, int iSide)
PamDetectionOverlayGraphics
getHoverText
in interface PanelOverlayDraw
getHoverText
in class PamDetectionOverlayGraphics
generalProjector
- projectordataUnit
- dataunitiSide
- left or right (0 or 1 I think, might be -1 or +1 though !)