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

    Fields
    Modifier and Type
    Field
    Description
    static final int
    A shortened key
    static final int
    A full key
  • Method Summary

    Modifier and Type
    Method
    Description
    getIcon(int keyType, int nComponent)
     
    int
    getNumItems(int keyType)
     
    getText(int keyType, int nComponent)
     
  • Field Details

  • 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

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

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