public class MapCommentOverlayGraphics extends PamDetectionOverlayGraphics
Constructor and Description |
---|
MapCommentOverlayGraphics(PamDataBlock parentDataBlock) |
Modifier and Type | Method and Description |
---|---|
boolean |
canDraw(GeneralProjector projector)
Used to tell the various displays whether or not the data in the
parentDataBlock can be drawn on each of those displays.
|
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 side)
Get tool tip content for the data unit for this projector.
|
createKeyItem, getDefaultRange, getHoverImage, getHoverTextWithoutWrap, getLineColor, getLineColour, getMenuKeyItem, getPamSymbol, getPamSymbol, getParentDataBlock, getSymbolInfo, hasOptionsDialog, isDetectionData, isDrawLineToLocations, setDefaultRange, setDetectionData, setDrawLineToLocations, setLineColor, setLineColour, setPamSymbol, showOptions
public MapCommentOverlayGraphics(PamDataBlock parentDataBlock)
public boolean canDraw(GeneralProjector projector)
PamDetectionOverlayGraphics
For simplicity I've broken it up into the three main display types currently existing in Pamguard.
canDraw
in interface PanelOverlayDraw
canDraw
in class PamDetectionOverlayGraphics
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 side)
PamDetectionOverlayGraphics
getHoverText
in interface PanelOverlayDraw
getHoverText
in class PamDetectionOverlayGraphics
generalProjector
- projectordataUnit
- dataunitside
- left or right (0 or 1 I think, might be -1 or +1 though !)