|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.ka2ddo.yaac.gui.SelectableSymbol
public class SelectableSymbol
This class is a wrapper around a pair of characters representing an APRS symbol.
Field Summary | |
---|---|
char |
symbolCode
The APRS symbol code for this symbol. |
char |
symTableId
The APRS symbol table ID ('/' or '\') or overlay character (0-9 or A-Z) for this symbol. |
Constructor Summary | |
---|---|
SelectableSymbol(char symTableId,
char symbolCode)
Construct a SelectableSymbol for the specified APRS symTableId and symbolCode characters. |
Method Summary | |
---|---|
int |
compareTo(SelectableSymbol o)
Compares this object with the specified object for order. |
boolean |
equals(java.lang.Object obj)
Indicates whether some other object is "equal to" this one. |
static SelectableSymbol[] |
getTypeCodes(boolean withLeadingNull)
Provide a list of all standard symbol combinations, with a null default. |
int |
hashCode()
Returns a hash code value for the object. |
java.lang.String |
toString()
Returns a string representation of the object. |
static SelectableSymbol |
valueOf(char symTableId,
char symbolCode)
Return a SelectableSymbol object corresponding to the specified pair of characters. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public final char symTableId
public final char symbolCode
Constructor Detail |
---|
public SelectableSymbol(char symTableId, char symbolCode)
symTableId
- printable ASCII character for the symbol table ID or overlaysymbolCode
- printable ASCII character for the symbol codeMethod Detail |
---|
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
obj
- the reference object with which to compare.
true
if this object is the same as the obj
argument; false
otherwise.hashCode()
,
Hashtable
public int hashCode()
java.util.Hashtable
.
hashCode
in class java.lang.Object
equals(java.lang.Object)
public java.lang.String toString()
toString
in class java.lang.Object
public int compareTo(SelectableSymbol o)
compareTo
in interface java.lang.Comparable<SelectableSymbol>
o
- the object to be compared.
java.lang.ClassCastException
- if the specified object's type prevents it
from being compared to this object.public static SelectableSymbol valueOf(char symTableId, char symbolCode)
symTableId
- char symbol table identifiersymbolCode
- char code for the specific symbol within the specified table
public static SelectableSymbol[] getTypeCodes(boolean withLeadingNull)
withLeadingNull
- boolean true if a null leading entry should be in the returned array for "no symbol specified yet"
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |