Search this API

y.util
Class DataProviders.DataProviderOverlayManager

java.lang.Object
  extended by y.util.DataProviders.DataProviderOverlayManager
Enclosing class:
DataProviders

public static class DataProviders.DataProviderOverlayManager
extends java.lang.Object

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

 

Constructor Summary
DataProviders.DataProviderOverlayManager(Graph graph)
          Creates a data provider overlay for the given graph instance.
 
Method Summary
 void addDataProvider(java.lang.Object dataProviderKey, DataProvider newDataProvider)
          Adds the given DataProvider under the given key to the graph.
 void restoreOriginalDataProviders()
          Restores all DataProvider bindings that have been changed using {addDataProvider(Object, DataProvider).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DataProviders.DataProviderOverlayManager

public DataProviders.DataProviderOverlayManager(Graph graph)
Creates a data provider overlay for the given graph instance.

Method Detail

addDataProvider

public void addDataProvider(java.lang.Object dataProviderKey,
                            DataProvider newDataProvider)
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().


restoreOriginalDataProviders

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


© Copyright 2000-2017,
yWorks GmbH.
All rights reserved.