Package annotationMark
Class MarkOverlayDraw
java.lang.Object
PamView.PanelOverlayDraw
PamView.PamDetectionOverlayGraphics
annotationMark.MarkOverlayDraw
- Direct Known Subclasses:
 QuickAnnotationOverlayDraw
- 
Field Summary
FieldsFields inherited from class PamView.PamDetectionOverlayGraphics
lineColour, locColour, pamSymbol - 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionbooleancanDraw(GeneralProjector.ParameterType[] parameterTypes, GeneralProjector.ParameterUnits[] parameterUnits) Used to tell the various displays whether or not the data in the parentDataBlock can be drawn on each of those displays.createKeyItem(GeneralProjector generalProjector, int keyType) Gets information for making up a key on various displays.drawOnSpectrogram(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.getHoverText(GeneralProjector generalProjector, PamDataUnit dataUnit, int iSide) Get tool tip content for the data unit for this projector.booleanhasOptionsDialog(GeneralProjector generalProjector) booleanshowOptions(Window parentWindow, GeneralProjector generalProjector) Show an options dialog for a particular projector.Methods inherited from class PamView.PamDetectionOverlayGraphics
canDraw, canDrawOnMap, canDrawOnRadar, canDrawOnSpectrogram, drawAmplitudeOnRadar, drawDataUnit, drawLineAndSymbol, drawLineAndSymbol, drawLineAndSymbol, drawLineOnly, drawOnMap, drawRangeOnRadar, drawSlantOnRadar, getDefaultRange, getHoverImage, getHoverTextWithoutWrap, getHydrophones, getLineColor, getLineColour, getLocColour, getMenuKeyItem, getPamSymbol, getParentDataBlock, getPerspectiveSymbol, getSymbolInfo, isDetectionData, setDefaultRange, setDetectionData, setLineColor, setLineColour, setLocColourMethods inherited from class PamView.PanelOverlayDraw
preDrawAnything, setDefaultSymbol 
- 
Field Details
- 
defaultSymbolData
 
 - 
 - 
Constructor Details
- 
MarkOverlayDraw
 
 - 
 - 
Method Details
- 
drawOnSpectrogram
public 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
 
 - 
canDraw
public boolean canDraw(GeneralProjector.ParameterType[] parameterTypes, GeneralProjector.ParameterUnits[] parameterUnits) Description copied from class:PamDetectionOverlayGraphicsUsed to tell the various displays whether or not the data in the parentDataBlock can be drawn on each of those displays. This is based purely on the axis types of the displays and whether or not the parentDataBlock's data untits are likely to have data which can transform into those axis types.- Overrides:
 canDrawin classPamDetectionOverlayGraphics- Parameters:
 parameterTypes- parameter typesparameterUnits- parameter units.- Returns:
 - true if the data can be (probably) drawn using this projector.
 
 - 
createKeyItem
Description copied from class:PamDetectionOverlayGraphicsGets information for making up a key on various displays. PamKeyItem is not yet implemented.- Overrides:
 createKeyItemin classPamDetectionOverlayGraphics- Parameters:
 generalProjector- 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:
 
 - 
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.
 
 - 
hasOptionsDialog
- Overrides:
 hasOptionsDialogin classPamDetectionOverlayGraphics- Parameters:
 generalProjector- projector- Returns:
 - true if the drawing methods have options relevant to this projection which can be shown in a dialog of some sort (see showOptions)
 
 - 
showOptions
Description copied from class:PanelOverlayDrawShow an options dialog for a particular projector.- Overrides:
 showOptionsin classPamDetectionOverlayGraphics- Parameters:
 parentWindow- parent window or framegeneralProjector- projector- Returns:
 
 - 
getDefaultSymbol
- Overrides:
 getDefaultSymbolin classPanelOverlayDraw
 
 -