Wraps an IMapper<K,V> into an IDataProvider.
Inheritance Hierarchy
MapperDataProviderAdapter
Implemented Interfaces
Remarks
This class is used by LayoutExecutor, LayoutGraphAdapter, and YGraphAdapter to convert an IGraph into a corresponding Graph. Unless that conversion needs to be customized, or aforementioned classes cannot be used, this class usually doesn't need to be used explicitly.
Type Parameters
- TKey
- The type of the keys.
- TValue
- The type of the values.
Type Details
- yfiles module
- view-layout-bridge
- yfiles-umd modules
- view-layout-bridge
- Legacy UMD name
- yfiles.layout.DataProviderAdapter
Constructors
Creates a new instance that adapts the provided mapper instance.
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 keys.
- mapper - IMapper<TKey,TValue>
- 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.