Packagecom.yworks.yfiles.util
Classpublic class DataProviders_DataProviderOverlayManager
InheritanceDataProviders_DataProviderOverlayManager Inheritance YObject Inheritance Object

This helper class can be used to overlay DataProviders registered at a graph with another DataProvider.



Public Methods
 MethodDefined By
  
Creates a data provider overlay for the given graph instance.
DataProviders_DataProviderOverlayManager
  
addDataProvider(dataProviderKey:Object, newDataProvider:DataProvider):void
Adds the given DataProvider under the given key to the graph.
DataProviders_DataProviderOverlayManager
 Inherited
equals(o:Object):Boolean
YObject
  
getClass():Class
[override]
DataProviders_DataProviderOverlayManager
 Inherited
hashCode():int
YObject
  
[static] Creates a data provider overlay for the given graph instance.
DataProviders_DataProviderOverlayManager
  
Restores all DataProvider bindings that have been changed using { addDataProvider().
DataProviders_DataProviderOverlayManager
Protected Methods
 MethodDefined By
  
Initializes this object.
DataProviders_DataProviderOverlayManager
Constructor Detail
DataProviders_DataProviderOverlayManager()Constructor
public function DataProviders_DataProviderOverlayManager(graph:Graph, init:Boolean = true)

Creates a data provider overlay for the given graph instance.

Parameters
graph:Graph
 
init:Boolean (default = true) — An internally used switch to help handle proper instance initialization in inheritance chains where classes can have multiple constructor-like factory methods. This parameter can safely be ignored/omitted when calling the constructor.
Method Detail
addDataProvider()method
public function addDataProvider(dataProviderKey:Object, newDataProvider:DataProvider):void

Adds the given DataProvider under the given key to the graph. Stores the previously set DataProvider instance so it can be restored at a later time using method { restoreOriginalDataProviders().

Parameters

dataProviderKey:Object
 
newDataProvider:DataProvider

See also

getClass()method 
override public function getClass():Class

Returns
Class
initDataProviders_DataProviderOverlayManager()method 
protected final function initDataProviders_DataProviderOverlayManager(graph:Graph):void

Initializes this object. See the documentation of the corresponding factory method newDataProviders_DataProviderOverlayManager() for details.

Parameters

graph:Graph

See also

newDataProviders_DataProviderOverlayManager()method 
public static function newDataProviders_DataProviderOverlayManager(graph:Graph):DataProviders_DataProviderOverlayManager

Creates a data provider overlay for the given graph instance.

Parameters

graph:Graph

Returns
DataProviders_DataProviderOverlayManager
restoreOriginalDataProviders()method 
public function restoreOriginalDataProviders():void

Restores all DataProvider bindings that have been changed using { addDataProvider(). Calling this method resets the state its state.

See also