|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.ObjectPamView.PamDetectionOverlayGraphics
clickDetector.NewClickOverlayGraphics
public class NewClickOverlayGraphics
| Field Summary | |
|---|---|
(package private) ClickControl |
clickControl
|
(package private) int |
drawTypes
|
private java.lang.String |
name
|
static int |
SHOW_MAP
|
static int |
SHOW_RADAR
|
static int |
SHOW_SPECTROGRAM
|
private PamSymbol |
specSymbol
|
private static int |
specSymbolSize
|
| Fields inherited from class PamView.PamDetectionOverlayGraphics |
|---|
lineColour |
| Constructor Summary | |
|---|---|
NewClickOverlayGraphics(ClickControl clickControl,
PamDataBlock parentDataBlock,
int drawTypes,
java.lang.String name)
|
|
| Method Summary | |
|---|---|
protected boolean |
canDrawOnMap()
|
protected boolean |
canDrawOnSpectrogram()
|
PamKeyItem |
createKeyItem(GeneralProjector projector,
int keyType)
Gets information for making up a key on various displays. |
protected PamKeyItem |
createMapKey(int keyType)
Create a key item specific to the map |
protected PamKeyItem |
createRadarKey(int keyType)
create a key item specific to the radar |
protected PamKeyItem |
createSpectrogramKey(int keyType)
|
protected java.awt.Rectangle |
drawAmplitudeOnRadar(java.awt.Graphics g,
PamDataUnit pamDataUnit,
GeneralProjector generalProjector)
|
protected java.awt.Rectangle |
drawOnMap(java.awt.Graphics g,
PamDataUnit pamDetection,
GeneralProjector generalProjector)
|
protected java.awt.Rectangle |
drawOnSpectrogram(java.awt.Graphics g,
PamDataUnit pamDataUnit,
GeneralProjector generalProjector)
Draw little triangles at top and bottom of spectrogram - better than the boxes for clicks. |
double |
getDefaultRange()
|
PamSymbol |
getDefPamSymbol(int whaleId)
|
java.lang.String |
getName()
|
PamSymbol |
getPamSymbol(PamDataUnit pamDataUnit)
|
protected java.awt.Component |
makeMultiColourIcon(int iconStyle)
Makes a multi coloured icon for use in key items. |
protected java.awt.Component |
makeMultiColourIcon(int iconStyle,
PamSymbol forceSymbolType)
|
void |
setName(java.lang.String name)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int SHOW_MAP
public static final int SHOW_SPECTROGRAM
public static final int SHOW_RADAR
int drawTypes
ClickControl clickControl
private java.lang.String name
private static int specSymbolSize
private PamSymbol specSymbol
| Constructor Detail |
|---|
public NewClickOverlayGraphics(ClickControl clickControl,
PamDataBlock parentDataBlock,
int drawTypes,
java.lang.String name)
| Method Detail |
|---|
protected boolean canDrawOnMap()
canDrawOnMap in class PamDetectionOverlayGraphicsThsi shoudl always be true, since it's always possible to draw a symbol at the hydrophone location even if no range or bearing information are available.
protected boolean canDrawOnSpectrogram()
canDrawOnSpectrogram in class PamDetectionOverlayGraphicsGenerally, this is always true since it will just draw a rectangle with the time and frequency limits of the sound. If it is not the case, then override this function and return false.
public PamSymbol getPamSymbol(PamDataUnit pamDataUnit)
getPamSymbol in class PamDetectionOverlayGraphics
protected java.awt.Rectangle drawAmplitudeOnRadar(java.awt.Graphics g,
PamDataUnit pamDataUnit,
GeneralProjector generalProjector)
drawAmplitudeOnRadar in class PamDetectionOverlayGraphics
public PamKeyItem createKeyItem(GeneralProjector projector,
int keyType)
PamDetectionOverlayGraphics
createKeyItem in interface PanelOverlayDrawcreateKeyItem in class PamDetectionOverlayGraphicsprojector - Reference to a GeneralProjector responsible
for drawing with the PAnelOverlayDraw implementationkeyType - Draw a more complicated key, giving more detail
WhistleGraphics,
PamSymbolprotected java.awt.Component makeMultiColourIcon(int iconStyle)
iconStyle - full or concise icon
protected java.awt.Component makeMultiColourIcon(int iconStyle,
PamSymbol forceSymbolType)
iconStyle - full or concise iconforceSymbolType - force a particular symbol type
public PamSymbol getDefPamSymbol(int whaleId)
protected PamKeyItem createMapKey(int keyType)
keyType -
protected PamKeyItem createRadarKey(int keyType)
keyType - type of key to draw
protected java.awt.Rectangle drawOnSpectrogram(java.awt.Graphics g,
PamDataUnit pamDataUnit,
GeneralProjector generalProjector)
drawOnSpectrogram in class PamDetectionOverlayGraphicsprotected PamKeyItem createSpectrogramKey(int keyType)
public java.lang.String getName()
public void setName(java.lang.String name)
name - the name to setpublic double getDefaultRange()
getDefaultRange in class PamDetectionOverlayGraphics
protected java.awt.Rectangle drawOnMap(java.awt.Graphics g,
PamDataUnit pamDetection,
GeneralProjector generalProjector)
drawOnMap in class PamDetectionOverlayGraphics
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||