C

EdgeSnapReferenceProvider

An ISnapReferenceProvider implementation that can be used to add snap lines for orthogonally routed IEdges.
Inheritance Hierarchy

Remarks

This implementation can be put into the ILookup.lookup of an IEdge.

Members

Show:

Constructors

Creates a new provider for the given edge.

Parameters

edge: IEdge
The edge to provide snap references for.

Methods

Adds horizontal snap lines for a horizontally oriented fixed segment snap lines.
protected

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: CollectSnapReferencesEventArgs
The argument to use for adding snap lines.
segmentStart: Point
The start of the segment.
segmentEnd: Point
The end of the segment.
Adds the snap lines for the edge to the evt.
This implementation queries the movement information for the edge to determine which edge segments stay fixed. For each fixed segment, it will call addVerticalSegmentSnapLines or addHorizontalSegmentSnapLines respectively.

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: CollectSnapReferencesEventArgs
The argument to use for adding snap lines.
Adds vertical snap lines for a vertically oriented fixed segment snap lines.
protected

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: CollectSnapReferencesEventArgs
The argument to use for adding snap lines.
segmentStart: Point
The start of the segment.
segmentEnd: Point
The end of the segment.

Fields

The edge this provider was created for.
protectedfinal