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
FieldsModifier and TypeFieldDescriptionstatic final StringThe name of the standardAPP-6Astatic final StringThe name of the standardAPP-6B.static final StringThe name of the standardAPP-6C.static final StringThe name of the standardAPP-6D.static final StringStandard name for url references to an image file.static final StringThe name of the standardMIL-STD-2525B.static final StringThe name of the standardMIL-STD-2525C.static final StringThe name of the standardMIL-STD-2525D. -
Constructor Summary
ConstructorsConstructorDescriptionDefault 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 TypeMethodDescriptionbooleanstatic ELcdAPP6StandardgetAPP6Standard(String aName) Returns the APP6 standard of the given NVG standard name.static ELcdMS2525StandardgetMS2525Standard(String aName) Returns the MS2525 standard of the given NVG standard name.Get the standard of this symbol.static StringgetStandardName(Object aStandard) Returns the NVG standard name for the given MS2525 or APP6 standard.static TLcdNVGSymbolExtracts theTLcdNVGSymbolfrom given objectGet the textual representation of this symbol.inthashCode()static booleanisAPP6ASymbol(TLcdNVGSymbol aNVGSymbol) Checks whether givenTLcdNVGSymbolis an APP6 Symbolstatic booleanisMilitaryStandardName(String aCode) Checks whether the given aCode is a Military Standard name or notstatic booleanisMS2525bSymbol(TLcdNVGSymbol aNVGSymbol) Checks whether givenTLcdNVGSymbolis an MS2525 Symbolstatic voidsetSymbol(Object aObject, TLcdNVGSymbol aSymbol) Sets theTLcdNVGSymbolto 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 theTLcdNVGSymbolfrom given object- Parameters:
aObject- object whose symbol is to be extracted- Returns:
TLcdNVGSymbolof aObject- Throws:
IllegalArgumentException- if aObject is notTLcdNVG15MapObjectorTLcdNVG20SymbolizedContent
-
setSymbol
Sets theTLcdNVGSymbolto given object- Parameters:
aObject- object whose symbol is to be set- Throws:
IllegalArgumentException- if aObject is notTLcdNVG15MapObjectorTLcdNVG20SymbolizedContent
-
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 givenTLcdNVGSymbolis an APP6 Symbol- Parameters:
aNVGSymbol- symbol to be checked- Returns:
- true if aNVGSymbol is an APP6 symbol, false otherwise
-
isMS2525bSymbol
Checks whether givenTLcdNVGSymbolis 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
-