Package org.ka2ddo.aprs
Class Symbols.SymbolAttr
java.lang.Object
org.ka2ddo.aprs.Symbols.SymbolAttr
- All Implemented Interfaces:
Comparable<Symbols.SymbolAttr>
- Enclosing class:
- Symbols
Wrapper for all the non-graphics-related attributes for a symbol code, with a pointer to the rendering-related attributes object.
-
Field Summary
Modifier and TypeFieldDescriptionfinal char
The APRS symbol code for this particular symbol.final char
The APRS symbol table or overlay character for this particular symbol.Reference to GUI-specific icon data for this symbol. -
Method Summary
Modifier and TypeMethodDescriptionint
Compares this object with the specified object for order.boolean
Indicates whether some other object is "equal to" this one.char
Get the APRS symbol code character for this particular symbol.char
Get the APRS symbol table or overlay character for this particular symbol.Get the category this symbol is associated withchar
getOverlay
(char symTableId) Report if the specified character is an overlay, not the defined table ID for this symbol.Get the reference to GUI-specific icon data for this symbol.Get the localized name for this symbol.int
hashCode()
Returns a hash code value for the object.
-
Field Details
-
aprsSymTableId
public final char aprsSymTableIdThe APRS symbol table or overlay character for this particular symbol. -
aprsSymCode
public final char aprsSymCodeThe APRS symbol code for this particular symbol. -
img
Reference to GUI-specific icon data for this symbol.
-
-
Method Details
-
getAprsSymCode
public char getAprsSymCode()Get the APRS symbol code character for this particular symbol.- Returns:
- the symbol code character
-
getAprsSymTableId
public char getAprsSymTableId()Get the APRS symbol table or overlay character for this particular symbol.- Returns:
- the symbol code character
-
getCategory
Get the category this symbol is associated with- Returns:
- Category enum
-
getSymbolImageData
Get the reference to GUI-specific icon data for this symbol.- Returns:
- GUI-specific object implementing the SymbolImageData interface
-
getTypeName
Get the localized name for this symbol.- Returns:
- localized text String name
-
getOverlay
public char getOverlay(char symTableId) Report if the specified character is an overlay, not the defined table ID for this symbol. Note this treats APRS 1.2 extended symbols as not being overlaid.- Parameters:
symTableId
- char to compare against this symbol's symbol table ID- Returns:
- overlay character, or the null character if this is not an overlay
-
compareTo
Compares this object with the specified object for order. Returns a negative integer, zero, or a positive integer as this object is less than, equal to, or greater than the specified object. This comparator sorts by symbol table ID to order a single symbol code's set of symbols; it is not suitable for sorting a complete array of all possible SymbolAttr objects.- Specified by:
compareTo
in interfaceComparable<Symbols.SymbolAttr>
- Parameters:
o
- the object to be compared.- Returns:
- a negative integer, zero, or a positive integer as this object is less than, equal to, or greater than the specified object.
- Throws:
NullPointerException
- if the specified object is nullClassCastException
- if the specified object's type prevents it from being compared to this object.
-
equals
Indicates whether some other object is "equal to" this one. -
hashCode
public int hashCode()Returns a hash code value for the object.
-