An adapter implementation that wraps an IMapper<K,V> to an IDataMap.
Type Parameters
- K
- The type of the key for the mapper.
- V
- The type of the value for the mapper.
Type Details
- yfiles module
- view-layout-bridge
- yfiles-umd modules
- view-layout-bridge
- Legacy UMD name
- yfiles.layout.DataMapAdapter
See Also
Constructors
Initializes a new instance of the DataMapAdapter<K,V> class.
Parameters
options - Object
A map of options to pass to the method.
A map of options to pass to the method.
- keyType - Class
- The type of the key for the mapper.
- valueType - Class
- The type of the value for the mapper.
- mapper - IMapper<K,V>
- The mapper to adapt.
Methods
Returns an object value associated with the given data holder.
Returns a boolean value associated with the given data holder.
Returns an integer value associated with the given data holder.
Returns a double value associated with the given data holder.
Sets an object value associated with the given data holder.
Sets a boolean value associated with the given data holder.
Sets an integer value associated with the given data holder.
Sets a double value associated with the given data holder.