Package | com.yworks.graph.model |
Class | public class DefaultEdgeLookup |
Inheritance | DefaultEdgeLookup DefaultItemLookup Object |
ILookup
implementation as it is used by the
framework's implementations of IEdge
.
Method | Defined By | ||
---|---|---|---|
DefaultEdgeLookup(item:IModelItem = null)
Create a new instance with the given item as context. | DefaultEdgeLookup | ||
lookup(type:Class):Object
Returns an instance that implements the given type or null. | DefaultItemLookup | ||
lookupForItem(item:Object, type:Class):Object
Tries to create or retrieve an implementation of the given type
for a given item. | DefaultItemLookup | ||
setItem(item:IModelItem):void [override]
Set the edge that will be used as the lookup context. | DefaultEdgeLookup | ||
setNext(next:IContextLookup):void
This method is called by the framework to register the fallback lookup implementation
that should be used during a call to IContextLookup.lookup(). | DefaultItemLookup |
Method | Defined By | ||
---|---|---|---|
[override]
| DefaultEdgeLookup |
DefaultEdgeLookup | () | Constructor |
public function DefaultEdgeLookup(item:IModelItem = null)
Create a new instance with the given item as context.
Parametersitem:IModelItem (default = null )
|
ArgumentError — If the given item is not an IEdge .
|
itemLookup | () | method |
override protected function itemLookup(item:IModelItem, type:Class, nextLookup:ILookup, lastLookup:ILookup):Object
Parameters
item:IModelItem | |
type:Class | |
nextLookup:ILookup | |
lastLookup:ILookup |
Object |
setItem | () | method |
override public function setItem(item:IModelItem):void
Set the edge that will be used as the lookup context.
Parameters
item:IModelItem |
ArgumentError — If the given item is not an IEdge .
|