Package | com.yworks.graph.input.snapLines |
Interface | public interface ISnapLineProvider |
Implementors | EdgeSnapLineProvider, NodeSnapLineProvider |
GraphSnapContext
to add SnapLine
s 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
Method | Defined By | ||
---|---|---|---|
Called by the GraphSnapContext when a drag is about to start. | ISnapLineProvider |
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