Package | com.yworks.yfiles.util |
Class | public class WrappedObjectDataProvider |
Inheritance | WrappedObjectDataProvider YObject Object |
Implements | DataProvider |
Property | Defined By | ||
---|---|---|---|
dataMapView : DataMap [read-only]
Returns a DataMap that can be used to read and write values. | WrappedObjectDataProvider | ||
wrappedProvider : DataProvider [read-only]
Gets the underlying wrapped DataProvider. | WrappedObjectDataProvider | ||
wrappingProvider : DataProvider [read-only]
Gets the wrapping DataProvider instance. | WrappedObjectDataProvider |
Method | Defined By | ||
---|---|---|---|
Creates a new instance of WrappedDataProvider. | WrappedObjectDataProvider | ||
dispose():void
Disposes previously allocated data structures. | WrappedObjectDataProvider | ||
equals(o:Object):Boolean | YObject | ||
getBool(dataHolder:Object):Boolean | WrappedObjectDataProvider | ||
getClass():Class [override] | WrappedObjectDataProvider | ||
getDouble(dataHolder:Object):Number | WrappedObjectDataProvider | ||
getInt(dataHolder:Object):int | WrappedObjectDataProvider | ||
getObject(dataHolder:Object):Object | WrappedObjectDataProvider | ||
hashCode():int | YObject | ||
newWrappedObjectDataProvider1(wrapper:DataProvider, provider:DataProvider):WrappedObjectDataProvider [static]
Creates a new instance of WrappedDataProvider. | WrappedObjectDataProvider | ||
newWrappedObjectDataProvider2(wrapper:DataProvider, graph:Graph, dataProviderKey:Object):WrappedObjectDataProvider [static]
Creates a new instance of WrappedDataProvider. | WrappedObjectDataProvider | ||
unwrap():void
Undoes a previous wrap() operation. | WrappedObjectDataProvider | ||
Performs the wrapping, the given DataProvider will be unregistered from the graph and replaced with this instance. | WrappedObjectDataProvider | ||
[static]
Creates a new instance of WrappedDataProvider. | WrappedObjectDataProvider | ||
[static]
Creates a new instance of WrappedDataProvider. | WrappedObjectDataProvider |
Method | Defined By | ||
---|---|---|---|
Initializes this object. | WrappedObjectDataProvider | ||
Initializes this object. | WrappedObjectDataProvider |
dataMapView | property |
dataMapView:DataMap
[read-only] Returns a DataMap that can be used to read and write values.
public function get dataMapView():DataMap
wrappedProvider | property |
wrappedProvider:DataProvider
[read-only] Gets the underlying wrapped DataProvider.
public function get wrappedProvider():DataProvider
wrappingProvider | property |
wrappingProvider:DataProvider
[read-only]
Gets the wrapping DataProvider instance.
This can safely be cast to a NodeMap or an EdgeMap respectively if the appropriate static factory methods have been used for the construction of this
.
public function get wrappingProvider():DataProvider
WrappedObjectDataProvider | () | Constructor |
public function WrappedObjectDataProvider(wrapper:DataProvider, provider:DataProvider, init:Boolean = true)
Creates a new instance of WrappedDataProvider. This instance will delegate queries to the wrapper first. Unsatisfied requests will be delegated to the original second provider.
Parameterswrapper:DataProvider — The DataProvider instance which will be queried first
| |
provider:DataProvider — the data provider which will be wrapped by the first one
| |
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.
|
dispose | () | method |
public function dispose():void
Disposes previously allocated data structures.
First a call to unwrap()
is made. Then the wrappers are disposed from the graph if they are instances of NodeMaps or EdgeMaps respectively.
getBool | () | method |
public function getBool(dataHolder:Object):Boolean
Parameters
dataHolder:Object |
Boolean |
getClass | () | method |
override public function getClass():Class
ReturnsClass |
getDouble | () | method |
public function getDouble(dataHolder:Object):Number
Parameters
dataHolder:Object |
Number |
getInt | () | method |
public function getInt(dataHolder:Object):int
Parameters
dataHolder:Object |
int |
getObject | () | method |
public function getObject(dataHolder:Object):Object
Parameters
dataHolder:Object |
Object |
initWrappedObjectDataProvider1 | () | method |
protected final function initWrappedObjectDataProvider1(wrapper:DataProvider, provider:DataProvider):void
Initializes this object. See the documentation of the corresponding factory method newWrappedObjectDataProvider1()
for details.
Parameters
wrapper:DataProvider | |
provider:DataProvider |
See also
initWrappedObjectDataProvider2 | () | method |
protected final function initWrappedObjectDataProvider2(wrapper:DataProvider, graph:Graph, dataProviderKey:Object):void
Initializes this object. See the documentation of the corresponding factory method newWrappedObjectDataProvider2()
for details.
Parameters
wrapper:DataProvider | |
graph:Graph | |
dataProviderKey:Object |
See also
newWrappedObjectDataProvider1 | () | method |
public static function newWrappedObjectDataProvider1(wrapper:DataProvider, provider:DataProvider):WrappedObjectDataProvider
Creates a new instance of WrappedDataProvider. This instance will delegate queries to the wrapper first. Unsatisfied requests will be delegated to the original second provider.
Parameters
wrapper:DataProvider — The DataProvider instance which will be queried first
| |
provider:DataProvider — the data provider which will be wrapped by the first one
|
WrappedObjectDataProvider |
newWrappedObjectDataProvider2 | () | method |
public static function newWrappedObjectDataProvider2(wrapper:DataProvider, graph:Graph, dataProviderKey:Object):WrappedObjectDataProvider
Creates a new instance of WrappedDataProvider.
This instance will delegate queries to the wrapper first. Unsatisfied requests will be delegated to the original provider. This method wraps the currently registered DataProvider with this
. This can be undone by calling unwrap()
Parameters
wrapper:DataProvider — the wrapping data provider
| |
graph:Graph — the graph which will be registered with the data providers
| |
dataProviderKey:Object — the key used for registering
|
WrappedObjectDataProvider |
unwrap | () | method |
public function unwrap():void
Undoes a previous wrap() operation.
wrap | () | method |
public function wrap(g:Graph, dataProviderKey:Object):void
Performs the wrapping, the given DataProvider will be unregistered from the graph and replaced with this instance.
Parameters
g:Graph — the graph which will be registered with the data providers
| |
dataProviderKey:Object — the key used for registering
|
wrapUsingEdgeMap | () | method |
public static function wrapUsingEdgeMap(graph:Graph, dataProviderKey:Object):WrappedObjectDataProvider
Creates a new instance of WrappedDataProvider.
This instance will delegate queries to a newly created EdgeMap wrapper first. Unsatisfied requests will be delegated to the original provider. This method wraps the currently registered DataProvider with the returned DataProvider instance. This can be undone by calling unwrap()
Parameters
graph:Graph — the graph which will be registered with the data providers
| |
dataProviderKey:Object — the key used for registering and wrapping
|
WrappedObjectDataProvider |
wrapUsingNodeMap | () | method |
public static function wrapUsingNodeMap(graph:Graph, dataProviderKey:Object):WrappedObjectDataProvider
Creates a new instance of WrappedDataProvider.
This instance will delegate queries to a newly created NodeMap wrapper first. Unsatisfied requests will be delegated to the original provider. This method wraps the currently registered DataProvider with the returned DataProvider instance. This can be undone by calling unwrap()
Parameters
graph:Graph — the graph which will be registered with the data providers
| |
dataProviderKey:Object — the key used for registering and wrapping
|
WrappedObjectDataProvider |