public class ClipOverlayGraphics extends PamDetectionOverlayGraphics
Constructor and Description |
---|
ClipOverlayGraphics(ClipControl clipControl,
ClipDataBlock clipDataBlock) |
Modifier and Type | Method and Description |
---|---|
boolean |
canDraw(GeneralProjector generalProjector)
Used to tell the various displays whether or not the data in the
parentDataBlock can be drawn on each of those displays.
|
PamKeyItem |
createKeyItem(GeneralProjector generalProjector,
int keyType)
Gets information for making up a key on various displays.
|
java.awt.Rectangle |
drawDataUnit(java.awt.Graphics g,
PamDataUnit pamDataUnit,
GeneralProjector generalProjector)
Draw a PamDataUnit on a display.
|
java.awt.image.BufferedImage |
getHoverImage(GeneralProjector generalProjector,
PamDataUnit dataUnit,
int iSide)
GEt an image for the data unit to include in overlay text.
|
boolean |
hasOptionsDialog(GeneralProjector generalProjector) |
boolean |
showOptions(java.awt.Window parentWindow,
GeneralProjector generalProjector)
Show an options dialog for a particular projector.
|
getDefaultRange, getHoverText, getHoverTextWithoutWrap, getLineColor, getLineColour, getMenuKeyItem, getPamSymbol, getPamSymbol, getParentDataBlock, getSymbolInfo, isDetectionData, isDrawLineToLocations, setDefaultRange, setDetectionData, setDrawLineToLocations, setLineColor, setLineColour, setPamSymbol
public ClipOverlayGraphics(ClipControl clipControl, ClipDataBlock clipDataBlock)
clipControl
- public boolean canDraw(GeneralProjector generalProjector)
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 PamKeyItem createKeyItem(GeneralProjector generalProjector, int keyType)
PamDetectionOverlayGraphics
createKeyItem
in interface PanelOverlayDraw
createKeyItem
in class PamDetectionOverlayGraphics
generalProjector
- Reference to a GeneralProjector responsible
for drawing with the PAnelOverlayDraw implementationkeyType
- Draw a more complicated key, giving more detailWhistleGraphics
,
PamSymbol
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.awt.image.BufferedImage getHoverImage(GeneralProjector generalProjector, PamDataUnit dataUnit, int iSide)
PamDetectionOverlayGraphics
getHoverImage
in class PamDetectionOverlayGraphics
generalProjector
- projectordataUnit
- dataunitiSide
- left or right (0 or 1 I think, might be -1 or +1 though !)public boolean hasOptionsDialog(GeneralProjector generalProjector)
hasOptionsDialog
in interface PanelOverlayDraw
hasOptionsDialog
in class PamDetectionOverlayGraphics
generalProjector
- projectorpublic boolean showOptions(java.awt.Window parentWindow, GeneralProjector generalProjector)
PanelOverlayDraw
showOptions
in interface PanelOverlayDraw
showOptions
in class PamDetectionOverlayGraphics
parentWindow
- parent window or framegeneralProjector
- projector