Package com.luciad.format.nvg.model
Class TLcdNVGSymbol
java.lang.Object
com.luciad.format.nvg.model.TLcdNVGSymbol
NVG symbol representation. It is composed of a standard name and a text representation. The standard name is either
'
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
.
- Since:
- 2015.0
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
The name of the standardAPP-6A
static final String
The name of the standardAPP-6B
.static final String
The name of the standardAPP-6C
.static final String
The name of the standardAPP-6D
.static final String
Standard name for url references to an image file.static final String
The name of the standardMIL-STD-2525B
.static final String
The name of the standardMIL-STD-2525C
.static final String
The name of the standardMIL-STD-2525D
. -
Constructor Summary
ConstructorDescriptionDefault 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. -
Method Summary
Modifier and TypeMethodDescriptionboolean
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.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
Extracts theTLcdNVGSymbol
from given objectGet the textual representation of this symbol.int
hashCode()
static boolean
isAPP6ASymbol
(TLcdNVGSymbol aNVGSymbol) Checks whether givenTLcdNVGSymbol
is an APP6 Symbolstatic boolean
isMilitaryStandardName
(String aCode) Checks whether the given aCode is a Military Standard name or notstatic boolean
isMS2525bSymbol
(TLcdNVGSymbol aNVGSymbol) Checks whether givenTLcdNVGSymbol
is an MS2525 Symbolstatic void
setSymbol
(Object aObject, TLcdNVGSymbol aSymbol) Sets theTLcdNVGSymbol
to given objecttoString()
-
Field Details
-
APP6A
The name of the standardAPP-6A
-
APP6B
The name of the standardAPP-6B
. -
APP6C
The name of the standardAPP-6C
. -
APP6D
The name of the standardAPP-6D
.- Since:
- 2018.1
-
MS2525B
The name of the standardMIL-STD-2525B
.- See Also:
-
MS2525C
The name of the standardMIL-STD-2525C
.- See Also:
-
MS2525D
The name of the standardMIL-STD-2525D
.- Since:
- 2018.1
- See Also:
-
ICON
Standard name for url references to an image file.- See Also:
-
-
Constructor Details
-
TLcdNVGSymbol
public TLcdNVGSymbol()Default constructor with unknown standard and text representation. -
TLcdNVGSymbol
Constructs an NVG symbol for a given standard name and a text representation.
-
-
Method Details
-
getTextRepresentation
Get the textual representation of this symbol. For instance for icons, this method returns the URL. For military symbology, the code defining the graphical representation is returned.- Returns:
- The textual representation of this symbol.
-
getStandardName
Get the standard of this symbol. This can be one of the standard constants in this class (e.g.APP6A
,MS2525B
),ICON
, or a user defined one.- Returns:
- The standard as a string.
-
toString
-
equals
-
hashCode
public int hashCode() -
getSymbol
Extracts theTLcdNVGSymbol
from given object- Parameters:
aObject
- object whose symbol is to be extracted- Returns:
TLcdNVGSymbol
of aObject- Throws:
IllegalArgumentException
- if aObject is notTLcdNVG15MapObject
orTLcdNVG20SymbolizedContent
-
setSymbol
Sets theTLcdNVGSymbol
to given object- Parameters:
aObject
- object whose symbol is to be set- Throws:
IllegalArgumentException
- if aObject is notTLcdNVG15MapObject
orTLcdNVG20SymbolizedContent
-
isMilitaryStandardName
Checks whether the given aCode is a Military Standard name or not- Parameters:
aCode
- code to be checked- Returns:
- true of aCode is a Military Standard Name, false otherwise
-
isAPP6ASymbol
Checks whether givenTLcdNVGSymbol
is an APP6 Symbol- Parameters:
aNVGSymbol
- symbol to be checked- Returns:
- true if aNVGSymbol is an APP6 symbol, false otherwise
-
isMS2525bSymbol
Checks whether givenTLcdNVGSymbol
is an MS2525 Symbol- Parameters:
aNVGSymbol
- symbol to be checked- Returns:
- true if aNVGSymbol is an MS2525 symbol, false otherwise
-
getAPP6Standard
Returns the APP6 standard of the given NVG standard name.- Parameters:
aName
- String whose standard will be returned- Returns:
- APP6 standard name of the given string
- Throws:
IllegalArgumentException
- if the String does not map to aELcdAPP6Standard
-
getMS2525Standard
Returns the MS2525 standard of the given NVG standard name.- Parameters:
aName
- String whose standard will be returned- Returns:
- MS2525 standard name of the given string
- Throws:
IllegalArgumentException
- if the String does not map to aELcdMS2525Standard
-
getStandardName
Returns the NVG standard name for the given MS2525 or APP6 standard.- Parameters:
aStandard
- an instance of ELcdMS2525Standard or ELcdAPP6Standard- Returns:
- the NVG standard name, or null if there is no NVG standard name for the given standard
-