Package PamView

Class TextKeyItem

java.lang.Object
PamView.TextKeyItem
All Implemented Interfaces:
PamKeyItem

public class TextKeyItem extends Object implements PamKeyItem
  • Constructor Details

    • TextKeyItem

      public TextKeyItem(String text)
  • Method Details

    • getText

      public String getText()
    • setText

      public void setText(String text)
    • getIcon

      public Component getIcon(int keyType, int nComponent)
      Specified by:
      getIcon in interface PamKeyItem
      Parameters:
      keyType - type of key - verbose or short
      nComponent - component number (where there are > 1)
      Returns:
      a graphics component to include in the key
    • getNumItems

      public int getNumItems(int keyType)
      Specified by:
      getNumItems in interface PamKeyItem
      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.

    • getText

      public String getText(int keyType, int nComponent)
      Specified by:
      getText in interface PamKeyItem
      Parameters:
      keyType - type of key - verbose or short
      nComponent - component number (where there are > 1)
      Returns:
      text to include in the key