| Package | com.yworks.graph.model |
| Class | public class DefaultEdgeLookup |
| Inheritance | DefaultEdgeLookup DefaultItemLookup |
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
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 | ||
|---|---|---|---|
|
Subclasses need to override this method.
| DefaultEdgeLookup | ||
| DefaultEdgeLookup | () | constructor |
public function DefaultEdgeLookup(item:IModelItem = null)Create a new instance with the given item as context.
Parametersitem:IModelItem (default = null) |
— If the given item is not an IEdge.
|
| itemLookup | () | method |
protected override function itemLookup(item:IModelItem, type:Class, nextLookup:ILookup, lastLookup:ILookup):ObjectSubclasses need to override this method.
Parametersitem:IModelItem — The context item to lookup an implementation for.
|
|
type:Class — The type of the implementation to find.
|
|
nextLookup:ILookup — The lookup to use for another type.
|
|
lastLookup:ILookup — The lookup to use as a fallback for the type.
|
Object — An implementation of type or null.
|
| setItem | () | method |
public override function setItem(item:IModelItem):voidSet the edge that will be used as the lookup context.
Parametersitem:IModelItem |
— If the given item is not an IEdge.
|