public final class TLcdNVGSymbol extends Object
APP6A
', 'APP6B
', 'APP6C
', 'APP6D
', 'MS2525B
', 'MS2525C
',
'MS2525D
', 'ICON
', or a user defined standard.
For military standard, the text representation is a military symbology code
(ILcdAPP6ACoded.getAPP6ACode()
and ILcdMS2525bCoded.getMS2525Code()
).
For icon, the text representation is a url reference to an image.
TLcdNVGSymbol can be assigned to a TLcdNVG20SymbolizedContent
or a TLcdNVG15MapObject
.
Modifier and Type | Field and Description |
---|---|
static String |
APP6A
The name of the standard
APP-6A |
static String |
APP6B
The name of the standard
APP-6B . |
static String |
APP6C
The name of the standard
APP-6C . |
static String |
APP6D
The name of the standard
APP-6D . |
static String |
ICON
Standard name for url references to an image file.
|
static String |
MS2525B
The name of the standard
MIL-STD-2525B . |
static String |
MS2525C
The name of the standard
MIL-STD-2525C . |
static String |
MS2525D
The name of the standard
MIL-STD-2525D . |
Constructor and Description |
---|
TLcdNVGSymbol()
Default constructor with unknown standard and text representation.
|
TLcdNVGSymbol(String aStandardName,
String aTextRepresentation)
Constructs an NVG symbol for a given standard name and a text representation.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
static ELcdAPP6Standard |
getAPP6Standard(String aName)
Returns the APP6 standard of the given NVG standard name.
|
static ELcdMS2525Standard |
getMS2525Standard(String aName)
Returns the MS2525 standard of the given NVG standard name.
|
String |
getStandardName()
Get the standard of this symbol.
|
static String |
getStandardName(Object aStandard)
Returns the NVG standard name for the given MS2525 or APP6 standard.
|
static TLcdNVGSymbol |
getSymbol(Object aObject)
Extracts the
TLcdNVGSymbol from given object |
String |
getTextRepresentation()
Get the textual representation of this symbol.
|
int |
hashCode() |
static boolean |
isAPP6ASymbol(TLcdNVGSymbol aNVGSymbol)
Checks whether given
TLcdNVGSymbol is an APP6 Symbol |
static boolean |
isMilitaryStandardName(String aCode)
Checks whether the given aCode is a Military Standard name or not
|
static boolean |
isMS2525bSymbol(TLcdNVGSymbol aNVGSymbol)
Checks whether given
TLcdNVGSymbol is an MS2525 Symbol |
static void |
setSymbol(Object aObject,
TLcdNVGSymbol aSymbol)
Sets the
TLcdNVGSymbol to given object |
String |
toString() |
public static final String MS2525B
MIL-STD-2525B
.public static final String MS2525C
MIL-STD-2525C
.public static final String MS2525D
MIL-STD-2525D
.public static final String ICON
public TLcdNVGSymbol()
public String getTextRepresentation()
public String getStandardName()
APP6A
, MS2525B
),
ICON
, or a user defined one.public static TLcdNVGSymbol getSymbol(Object aObject)
TLcdNVGSymbol
from given objectaObject
- object whose symbol is to be extractedTLcdNVGSymbol
of aObjectIllegalArgumentException
- if aObject is not TLcdNVG15MapObject
or TLcdNVG20SymbolizedContent
public static void setSymbol(Object aObject, TLcdNVGSymbol aSymbol)
TLcdNVGSymbol
to given objectaObject
- object whose symbol is to be setIllegalArgumentException
- if aObject is not TLcdNVG15MapObject
or TLcdNVG20SymbolizedContent
public static boolean isMilitaryStandardName(String aCode)
aCode
- code to be checkedpublic static boolean isAPP6ASymbol(TLcdNVGSymbol aNVGSymbol)
TLcdNVGSymbol
is an APP6 SymbolaNVGSymbol
- symbol to be checkedpublic static boolean isMS2525bSymbol(TLcdNVGSymbol aNVGSymbol)
TLcdNVGSymbol
is an MS2525 SymbolaNVGSymbol
- symbol to be checkedpublic static ELcdAPP6Standard getAPP6Standard(String aName)
aName
- String whose standard will be returnedIllegalArgumentException
- if the String does not map to a ELcdAPP6Standard
public static ELcdMS2525Standard getMS2525Standard(String aName)
aName
- String whose standard will be returnedIllegalArgumentException
- if the String does not map to a ELcdMS2525Standard
public static String getStandardName(Object aStandard)
aStandard
- an instance of ELcdMS2525Standard or ELcdAPP6Standard