Package annotationMark
Class MarkOverlayDraw
java.lang.Object
PamView.PanelOverlayDraw
PamView.PamDetectionOverlayGraphics
annotationMark.MarkOverlayDraw
- Direct Known Subclasses:
QuickAnnotationOverlayDraw
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
canDraw
(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) getHoverText
(GeneralProjector generalProjector, PamDataUnit dataUnit, int iSide) Get tool tip content for the data unit for this projector.boolean
hasOptionsDialog
(GeneralProjector generalProjector) boolean
showOptions
(Window parentWindow, GeneralProjector generalProjector) Show an options dialog for a particular projector.Methods inherited from class PamView.PamDetectionOverlayGraphics
canDraw, drawDataUnit, getDefaultRange, getHoverImage, getHoverTextWithoutWrap, getLineColor, getLineColour, getLocColour, getMenuKeyItem, getPamSymbol, getParentDataBlock, getPerspectiveSymbol, getSymbolInfo, isDetectionData, setDefaultRange, setDetectionData, setLineColor, setLineColour, setLocColour
Methods 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) -
canDraw
public boolean canDraw(GeneralProjector.ParameterType[] parameterTypes, GeneralProjector.ParameterUnits[] parameterUnits) Description copied from class:PamDetectionOverlayGraphics
Used 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:
canDraw
in classPamDetectionOverlayGraphics
- Parameters:
parameterTypes
- parameter typesparameterUnits
- parameter units.- Returns:
- true if the data can be (probably) drawn using this projector.
-
createKeyItem
Description copied from class:PamDetectionOverlayGraphics
Gets information for making up a key on various displays. PamKeyItem is not yet implemented.- Overrides:
createKeyItem
in 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:PamDetectionOverlayGraphics
Get tool tip content for the data unit for this projector.- Overrides:
getHoverText
in 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:
hasOptionsDialog
in 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:PanelOverlayDraw
Show an options dialog for a particular projector.- Overrides:
showOptions
in classPamDetectionOverlayGraphics
- Parameters:
parentWindow
- parent window or framegeneralProjector
- projector- Returns:
-
getDefaultSymbol
- Overrides:
getDefaultSymbol
in classPanelOverlayDraw
-