Package difar.display
Class DifarOverlayGraphics
java.lang.Object
PamView.PanelOverlayDraw
PamView.PamDetectionOverlayGraphics
difar.display.DifarOverlayGraphics
- 
Field Summary
FieldsFields inherited from class PamView.PamDetectionOverlayGraphics
lineColour, locColour, pamSymbol - 
Constructor Summary
ConstructorsConstructorDescriptionDifarOverlayGraphics(DifarControl difarControl, DifarDataBlock difarDataBlock, boolean isQueue)  - 
Method Summary
Modifier and TypeMethodDescriptioncreateKeyItem(GeneralProjector projector, int keyType) Gets information for making up a key on various displays.protected PamKeyItemcreateMapKey(int keyType) protected RectangledrawAmplitudeOnRadar(Graphics g, PamDataUnit pamDataUnit, GeneralProjector generalProjector) protected RectangledrawOnMap(Graphics g, PamDataUnit pamDetection, GeneralProjector generalProjector) protected RectangledrawOnSpectrogram(Graphics g, PamDataUnit pamDataUnit, GeneralProjector generalProjector) Draw on spectrogram changed March 2010 so that the default time unit is milliseconds (Java time from 1970) rather than samples.protected RectangledrawRangeOnRadar(Graphics g, PamDataUnit pamDataUnit, GeneralProjector generalProjector) getHoverText(GeneralProjector generalProjector, PamDataUnit dataUnit, int iSide) Get tool tip content for the data unit for this projector.getPamSymbol(PamDataUnit pamDataUnit, GeneralProjector generalProjector) Methods inherited from class PamView.PamDetectionOverlayGraphics
canDraw, canDraw, canDrawOnMap, canDrawOnRadar, canDrawOnSpectrogram, drawDataUnit, drawLineAndSymbol, drawLineAndSymbol, drawLineAndSymbol, drawLineOnly, drawSlantOnRadar, getDefaultRange, getHoverImage, getHoverTextWithoutWrap, getHydrophones, getLineColor, getLineColour, getLocColour, getMenuKeyItem, getParentDataBlock, getPerspectiveSymbol, getSymbolInfo, hasOptionsDialog, isDetectionData, setDefaultRange, setDetectionData, setLineColor, setLineColour, setLocColour, showOptionsMethods inherited from class PamView.PanelOverlayDraw
getDefaultSymbol, preDrawAnything, setDefaultSymbol 
- 
Field Details
- 
defaultSymbol
 
 - 
 - 
Constructor Details
- 
DifarOverlayGraphics
public DifarOverlayGraphics(DifarControl difarControl, DifarDataBlock difarDataBlock, boolean isQueue)  
 - 
 - 
Method Details
- 
drawOnMap
protected Rectangle drawOnMap(Graphics g, PamDataUnit pamDetection, GeneralProjector generalProjector) - Overrides:
 drawOnMapin classPamDetectionOverlayGraphics
 - 
getPamSymbol
- Overrides:
 getPamSymbolin classPamDetectionOverlayGraphics- Parameters:
 pamDataUnit-- Returns:
 - PamSymbol to use in plotting. Generally this is just the set symbol for the overlay, but can be overridden if a detector has some complicated way of using different symbols for different dataUnits.
 
 - 
getHoverText
Description copied from class:PamDetectionOverlayGraphicsGet tool tip content for the data unit for this projector.- Overrides:
 getHoverTextin 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.
 
 - 
drawOnSpectrogram
protected Rectangle drawOnSpectrogram(Graphics g, PamDataUnit pamDataUnit, GeneralProjector generalProjector) Description copied from class:PamDetectionOverlayGraphicsDraw on spectrogram changed March 2010 so that the default time unit is milliseconds (Java time from 1970) rather than samples. This makes it posible to work with data collected over multiple files when operating in viewer mode.- Overrides:
 drawOnSpectrogramin classPamDetectionOverlayGraphics- Parameters:
 g-pamDataUnit-generalProjector-- Returns:
 - updated rectangle
 
 - 
drawAmplitudeOnRadar
protected Rectangle drawAmplitudeOnRadar(Graphics g, PamDataUnit pamDataUnit, GeneralProjector generalProjector) - Overrides:
 drawAmplitudeOnRadarin classPamDetectionOverlayGraphics
 - 
drawRangeOnRadar
protected Rectangle drawRangeOnRadar(Graphics g, PamDataUnit pamDataUnit, GeneralProjector generalProjector) - Overrides:
 drawRangeOnRadarin classPamDetectionOverlayGraphics
 - 
createKeyItem
Description copied from class:PamDetectionOverlayGraphicsGets information for making up a key on various displays. PamKeyItem is not yet implemented.- Overrides:
 createKeyItemin classPamDetectionOverlayGraphics- Parameters:
 projector- Reference to a GeneralProjector responsible for drawing with the PAnelOverlayDraw implementationkeyType- Draw a more complicated key, giving more detail- Returns:
 - java.awt compnent (usually a JPanel).
 - See Also:
 
 - 
createMapKey
 
 -