A helper class that can be used to interactively reshape orthogonal edge paths.

Namespace: yWorks.yFiles.UI.Input
Assembly: yWorks.yFilesSilverlight.Viewer (in yWorks.yFilesSilverlight.Viewer.dll) Version:


public class OrthogonalEdgeEditingContext
Visual Basic
Public Class OrthogonalEdgeEditingContext


This class will be queried from the IInputModeContext of implementations of IPositionHandler, IHandle, and IReshapeHandler that support orthogonal editing of edges.

In a first step, the edit (which is a movement of one or more IPorts, IBends, edge ends, or IPortOwners) is being initialized before anything has been changed. Then, client code that seeks to modify the graph, uses the methods AddExplicitlyMovedBend(BendMovementInfo), AddMovedEdgeEnd(EdgeEndMovementInfo), AddMovedPort(PortMovementInfo), and AddTransformedPortOwner(IPortOwner). In the next step, the drag is being initialized and all affected edges will be prepared so that the editing will not destroy the orthogonality. Interested editors now get the chance to register and negotiate implicitly moved bends. Then the actual editing is performed and the edit is either canceled, in which case the added bends are removed or the edit is finished and the affected edges are being cleaned up.

Inheritance Hierarchy


See Also