|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.ka2ddo.aprs.Symbols
public class Symbols
This singleton class is a caching container for all the types of station symbols supported by APRS.
Nested Class Summary | |
---|---|
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. |
Method Summary | |
---|---|
static Symbols.Category |
getCategory(char symTableId,
char symbolCode)
Get the Symbol.Category enum for a given symbol. |
static Symbols |
getInstance()
Get the singleton instance of the Symbols object. |
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). |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static void loadExtendedSymbols()
public static Symbols getInstance()
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 character
public static java.lang.String getTypeName(char symTableId, char symbolCode)
symTableId
- char symbol table ID (or overlay code)symbolCode
- char symbol code within the specified table
public static Symbols.Category getCategory(char symTableId, char symbolCode)
symTableId
- char symbol table ID (or overlay code)symbolCode
- char symbol code within the specified table
public static boolean isLegalSymTableId(char symTableId, boolean isCompressedEncoding)
symTableId
- character to testisCompressedEncoding
- boolean true if lower-case letters should be used to indicate digit overlays
public static void setAllowIllegalOverlays(boolean allowIllegalOverlays)
allowIllegalOverlays
- boolean true if any printable ASCII character is allowed for an overlay
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |