public class LineKeyItem extends java.lang.Object implements PamKeyItem
KEY_SHORT, KEY_VERBOSE
Constructor and Description |
---|
LineKeyItem(java.awt.Color color,
java.lang.String text) |
Modifier and Type | Method and Description |
---|---|
java.awt.Component |
getIcon(int keyType,
int component) |
int |
getNumItems(int keyType) |
java.lang.String |
getText(int keyType,
int component) |
public java.awt.Component getIcon(int keyType, int component)
getIcon
in interface PamKeyItem
keyType
- type of key - verbose or shortcomponent
- 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 component)
getText
in interface PamKeyItem
keyType
- type of key - verbose or shortcomponent
- component number (where there are > 1)