Package com.luciad.format.kml22.model
Class TLcdKML22Parameters
java.lang.Object
com.luciad.format.kml22.model.TLcdKML22Parameters
Map of KML parameters.
For each parameter, a corresponding value is stored in this map. Listeners can be registered to
this map to get notified of any changes to the parameters contained in it.
Note that properties don't update themselves. To update dynamic properties, use a parameter
updater such as
TLcdKML22GXYViewParametersUpdater
for GXY views and
TLspKML22ViewParametersUpdater
for Lightspeed views.
The following parameter keys are part of the KML2.2 spec:
Static parameters:
- clientVersion
- kmlVersion
- clientName
- language
- lookatLon
- lookatLat
- lookatRange
- lookatTilt
- lookatHeading
- lookatTerrainLon
- lookatTerrainLat
- lookatTerrainAlt
- cameraLon
- cameraLat
- cameraAlt
- horizFov
- vertFov
- horizPixels
- vertPixels
- terrainEnabled
The following parameter keys are not part of the KML 2.2 specification:
- asynchronousAllowed
setAsynchronousAllowed(boolean)
. It
has impact on how resources are handled by a dynamic KML model.- Since:
- 10.0
- See Also:
-
Nested Class Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addMapListener
(ILcdMapListener<String, String> aILcdMapListener) Register the listeneraMapListener
to be informed about changes in this map.void
clear()
clone()
boolean
containsKey
(Object aKey) boolean
containsValue
(Object aValue) entrySet()
boolean
etrieves the value for the specified parameter.int
hashCode()
boolean
Checks whether asynchronous operations are allowed.boolean
isEmpty()
keySet()
void
void
removeMapListener
(ILcdMapListener<String, String> aILcdMapListener) Unregister the listeneraMapListener
so it will no longer be informed about changes in this map.void
setAsynchronousAllowed
(boolean aAsynchronousAllowed) Sets the asynchronous allowed flag.int
size()
values()
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
-
Constructor Details
-
TLcdKML22Parameters
public TLcdKML22Parameters()Creates an empty parameter map, with no parameters. By default it will setsetAsynchronousAllowed(boolean)
to true.
-
-
Method Details
-
setAsynchronousAllowed
public void setAsynchronousAllowed(boolean aAsynchronousAllowed) Sets the asynchronous allowed flag. This determines whether or not asynchronous operations are allowed. False is the recommended setting for servers.- Parameters:
aAsynchronousAllowed
- if true, allows asynchronous behavior when retrieving links- Since:
- 2017.0
-
isAsynchronousAllowed
public boolean isAsynchronousAllowed()Checks whether asynchronous operations are allowed.- Returns:
- Whether or not asynchronous operations are allowed.
- Since:
- 2017.0
-
put
-
putAll
-
remove
-
clear
public void clear() -
get
etrieves the value for the specified parameter. -
containsKey
- Specified by:
containsKey
in interfaceMap<String,
String>
-
containsValue
- Specified by:
containsValue
in interfaceMap<String,
String>
-
keySet
-
values
-
entrySet
-
isEmpty
public boolean isEmpty() -
size
public int size() -
addMapListener
Description copied from interface:ILcdMap
Register the listener
aMapListener
to be informed about changes in this map.- Specified by:
addMapListener
in interfaceILcdMap<String,
String> - Parameters:
aILcdMapListener
- the listener- See Also:
-
removeMapListener
Description copied from interface:ILcdMap
Unregister the listener
aMapListener
so it will no longer be informed about changes in this map.This method should do nothing when
addMapListener
was not registered previously.- Specified by:
removeMapListener
in interfaceILcdMap<String,
String> - Parameters:
aILcdMapListener
- the listener- See Also:
-
clone
-
equals
-
hashCode
public int hashCode()
-