Class GuiSymbols

java.lang.Object
org.ka2ddo.yaac.gui.GuiSymbols

public class GuiSymbols extends Object
This singleton class is a caching container for all the types of station symbols supported by APRS.
Author:
Andrew Pavlin, KA2DDO
  • Field Details

    • ICON_PIXEL_SIZE

      public static final int ICON_PIXEL_SIZE
      The default size of an APRS symbol icon in pixels.
      See Also:
  • Method Details

    • loadExtendedSymbols

      public static void loadExtendedSymbols()
      Load the images for all APRS1.2 extended symbols known to this program.
    • getStationIcon

      public static ImageIcon getStationIcon(char symTableId, char symbolCode)
      Get the 16x16 ImageIcon for a given symbol. If an overlaid symbol is specified (that has not been defined as an APRS 1.2 extension), automatically fall back to the corresponding alternate table symbol.
      Parameters:
      symTableId - char symbol table ID (or overlay code)
      symbolCode - char symbol code within the specified table
      Returns:
      ImageIcon for this symbol
    • getDblStationIcon

      public static ImageIcon getDblStationIcon(char symTableId, char symbolCode)
      Get the 32x32 ImageIcon for a given symbol. If an overlaid symbol is specified (that has not been defined as an APRS 1.2 extension), automatically fall back to the corresponding alternate table symbol.
      Parameters:
      symTableId - char symbol table ID (or overlay code)
      symbolCode - char symbol code within the specified table
      Returns:
      ImageIcon for this symbol
    • getQuadStationIcon

      public static ImageIcon getQuadStationIcon(char symTableId, char symbolCode)
      Get the 64x64 ImageIcon for a given symbol. If an overlaid symbol is specified (that has not been defined as an APRS 1.2 extension), automatically fall back to the corresponding alternate table symbol.
      Parameters:
      symTableId - char symbol table ID (or overlay code)
      symbolCode - char symbol code within the specified table
      Returns:
      ImageIcon for this symbol
    • getEmptyDblIcon

      public static ImageIcon getEmptyDblIcon()
      Get a blank icon in double size (32x32).
      Returns:
      ImageIcon of a completely transparent 32x32 image