public class Symbols
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
Symbols.Category
Indicate the type of station or object associated with a symbol table ID and code tuple.
|
static class |
Symbols.SymbolAttr
Wrapper for all the non-graphics-related attributes for a symbol code, with a pointer to the rendering-related attributes object.
|
Modifier and Type | Method and Description |
---|---|
static Symbols.Category |
getCategory(char symTableId,
char symbolCode)
Get the Symbol.Category enum for a given symbol.
|
static java.lang.String |
getLongestTypeName()
Gets the longest string naming one of the station types.
|
static int |
getMaximumCodeVariations()
Get the maximum number of overlay variations for any known symbol code.
|
static Symbols.SymbolAttr |
getSymbolAttr(char symTableId,
char symbolCode)
Get all the attributes associated with an APRS symbol.
|
static Symbols.SymbolAttr[] |
getSymbolsForCode(char symbolCode)
Get the SymbolAttr objects for all known table IDs and overlays for the specified symbol code character.
|
static char[][] |
getTypeCodes()
Get all known combinations of symbol table ID or overlay with symbol code.
|
static java.lang.String |
getTypeName(char symTableId,
char symbolCode)
Get the localized String type name for this symbol.
|
static boolean |
isLegalSymTableId(char symTableId,
boolean isCompressedEncoding)
Test if the specified character is a legal APRS symbol table ID (or overlay) character.
|
static void |
loadExtendedSymbols()
Load the non-graphical APRS 1.2 extended symbol attributes,
|
static void |
removeExtendedSymbols()
Delete entries for APRS 1.2 extended symbols, leaving only the APRS 1.0.2 symbols.
|
static void |
setAllowIllegalOverlays(boolean allowIllegalOverlays)
Specify whether any printable character is allowed for an overlay (per the non-standard requirements
of the Duchifat-1 satellite).
|
public static void loadExtendedSymbols()
public static void removeExtendedSymbols()
public static java.lang.String getLongestTypeName()
public static int getMaximumCodeVariations()
public static char[][] getTypeCodes()
public static Symbols.SymbolAttr[] getSymbolsForCode(char symbolCode)
symbolCode
- ASCII character between '!' and '~'public static Symbols.SymbolAttr getSymbolAttr(char symTableId, char symbolCode)
symTableId
- symbol table ID character (can be an overlay)symbolCode
- symbol code characterpublic static java.lang.String getTypeName(char symTableId, char symbolCode)
symTableId
- char symbol table ID (or overlay code)symbolCode
- char symbol code within the specified tablepublic static Symbols.Category getCategory(char symTableId, char symbolCode)
symTableId
- char symbol table ID (or overlay code)symbolCode
- char symbol code within the specified tablepublic static boolean isLegalSymTableId(char symTableId, boolean isCompressedEncoding)
symTableId
- character to testisCompressedEncoding
- boolean true if lower-case letters should be used to indicate digit overlayspublic static void setAllowIllegalOverlays(boolean allowIllegalOverlays)
allowIllegalOverlays
- boolean true if any printable ASCII character is allowed for an overlay