public class PanelOverlayKeyItem extends java.lang.Object implements PamKeyItem
KEY_SHORT, KEY_VERBOSE
Constructor and Description |
---|
PanelOverlayKeyItem(PamDetectionOverlayGraphics pamDetectionOverlayGraphics) |
Modifier and Type | Method and Description |
---|---|
java.awt.Component |
getIcon(int keyType,
int nComponent) |
int |
getNumItems(int keyType) |
java.lang.String |
getText(int keyType,
int nComponent) |
public PanelOverlayKeyItem(PamDetectionOverlayGraphics pamDetectionOverlayGraphics)
public java.awt.Component getIcon(int keyType, int nComponent)
getIcon
in interface PamKeyItem
keyType
- type of key - verbose or shortnComponent
- component number (where there are > 1)public int getNumItems(int keyType)
getNumItems
in interface PamKeyItem
This can be > 1 for things like the click detector which may want to show different symbols for different species.
public java.lang.String getText(int keyType, int nComponent)
getText
in interface PamKeyItem
keyType
- type of key - verbose or shortnComponent
- component number (where there are > 1)