Package org.ka2ddo.yaac.gui
Class GuiSymbols
java.lang.Object
org.ka2ddo.yaac.gui.GuiSymbols
This singleton class is a caching container for all the types of station symbols
supported by APRS.
- Author:
- Andrew Pavlin, KA2DDO
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
This class collects a symbol icon image with read-only attributes of the symbol that are commonly used but expensive to compute. -
Field Summary
Modifier and TypeFieldDescriptionstatic final int
The default size of an APRS symbol icon in pixels. -
Method Summary
Modifier and TypeMethodDescriptionstatic ImageIcon
getDblStationIcon
(char symTableId, char symbolCode) Get the 32x32 ImageIcon for a given symbol.static ImageIcon
Get a blank icon in double size (32x32).static ImageIcon
getQuadStationIcon
(char symTableId, char symbolCode) Get the 64x64 ImageIcon for a given symbol.static ImageIcon
getStationIcon
(char symTableId, char symbolCode) Get the 16x16 ImageIcon for a given symbol.static void
Load the images for all APRS1.2 extended symbols known to this program.
-
Field Details
-
ICON_PIXEL_SIZE
public static final int ICON_PIXEL_SIZEThe 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
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
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
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
Get a blank icon in double size (32x32).- Returns:
- ImageIcon of a completely transparent 32x32 image
-