Packagecom.yworks.graph.input.snapLines
Interfacepublic interface ISnapLineProvider
Implementors EdgeSnapLineProvider, NodeSnapLineProvider

Queried by the GraphSnapContext to add SnapLines to its collections during the initialization phase. Implementations of this interface are queried by GraphSnapContext for each item that is not modified during the edit using the ILookup of the respective item.

See also

com.yworks.graph.input.snapLines.GraphSnapContext
SnapLine
com.yworks.canvas.input.snapLines.SnapContext.isInitializing
com.yworks.graph.model.NodeDecorator.snapLineProviderDecorator


Public Methods
 MethodDefined By
  
Called by the GraphSnapContext when a drag is about to start.
ISnapLineProvider
Method Detail
addSnapLines()method
public function addSnapLines(context:GraphSnapContext, evt:CollectSnapLinesEvent, item:IModelItem):void

Called by the GraphSnapContext when a drag is about to start.

Parameters

context:GraphSnapContext — The context which holds the settings for the snap lines. Note that implementations should not change the state of the context explicitly.
 
evt:CollectSnapLinesEvent — The event to use for adding snap lines.
 
item:IModelItem — The item to add snap lines for.

See also