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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddMapListener(ILcdMapListener<String, String> aILcdMapListener) Register the listeneraMapListenerto be informed about changes in this map.voidclear()clone()booleancontainsKey(Object aKey) booleancontainsValue(Object aValue) entrySet()booleanetrieves the value for the specified parameter.inthashCode()booleanChecks whether asynchronous operations are allowed.booleanisEmpty()keySet()voidvoidremoveMapListener(ILcdMapListener<String, String> aILcdMapListener) Unregister the listeneraMapListenerso it will no longer be informed about changes in this map.voidsetAsynchronousAllowed(boolean aAsynchronousAllowed) Sets the asynchronous allowed flag.intsize()values()Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods 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:
containsKeyin interfaceMap<String,String>
-
containsValue
- Specified by:
containsValuein interfaceMap<String,String>
-
keySet
-
values
-
entrySet
-
isEmpty
public boolean isEmpty() -
size
public int size() -
addMapListener
Description copied from interface:ILcdMapRegister the listener
aMapListenerto be informed about changes in this map.- Specified by:
addMapListenerin interfaceILcdMap<String,String> - Parameters:
aILcdMapListener- the listener- See Also:
-
removeMapListener
Description copied from interface:ILcdMapUnregister the listener
aMapListenerso it will no longer be informed about changes in this map.This method should do nothing when
addMapListenerwas not registered previously.- Specified by:
removeMapListenerin interfaceILcdMap<String,String> - Parameters:
aILcdMapListener- the listener- See Also:
-
clone
-
equals
-
hashCode
public int hashCode()
-