Package PamView
Interface PamKeyItem
- All Known Implementing Classes:
BasicKeyItem
,LineKeyItem
,PanelOverlayKeyItem
,SymbolKeyItem
,TextKeyItem
public interface PamKeyItem
Interface for passing information from overlay graphics to plots to give information to include in
keys for the various displays.
Currently just a place holder class to include in PanelOverlayDraw implementations. Will need to work out what members and member functions to put in it later.
- Author:
- Doug Gillespie
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
A shortened keystatic final int
A full key -
Method Summary
Modifier and TypeMethodDescriptiongetIcon
(int keyType, int nComponent) int
getNumItems
(int keyType) getText
(int keyType, int nComponent)
-
Field Details
-
KEY_VERBOSE
static final int KEY_VERBOSEA full key- See Also:
-
KEY_SHORT
static final int KEY_SHORTA shortened key- See Also:
-
-
Method Details
-
getNumItems
int getNumItems(int keyType) - Returns:
- Get's the total number of key items associated with this detection
This can be > 1 for things like the click detector which may want to show different symbols for different species.
-
getIcon
- Parameters:
keyType
- type of key - verbose or shortnComponent
- component number (where there are > 1)- Returns:
- a graphics component to include in the key
-
getText
- Parameters:
keyType
- type of key - verbose or shortnComponent
- component number (where there are > 1)- Returns:
- text to include in the key
-