/// <summary> /// Creates a new instance for a given node. /// </summary> public RotatedReshapeHandleProvider(INode node) { this.node = node; // use a reshape handler to properly handle // implicit resizing of parent group nodes reshapeHandler = node.Lookup <IReshapeHandler>(); }
public NodeRotateHandle(INode node, IReshapeHandler reshapeHandler, IInputModeContext inputModeContext) { this.node = node; this.reshapeHandler = reshapeHandler; this.inputModeContext = new DelegatingContext(inputModeContext); portHandles = new List <IHandle>(); }
/// <summary> /// Creates a new instance for the given node. /// </summary> /// <param name="node">The node to handle.</param> public NodeRotateHandleProvider(INode node) { this.node = node; reshapeHandler = node.Lookup <IReshapeHandler>(); SnapStep = 45; SnapDelta = 10; SnapToSameAngleDelta = 5; }
public RotatedNodeResizeHandle(HandlePositions position, INode node, IReshapeHandler reshapeHandler, bool symmetricResize) { this.position = position; this.node = node; this.reshapeHandler = reshapeHandler; this.symmetricResize = symmetricResize; portHandles = new List <IHandle>(); initialLayout = new OrientedRectangle(GetNodeBasedOrientedRectangle()); }
public NodeGroupHandle(IInputModeContext context, HandlePositions position, IReshapeHandler reshapeHandler, InsetsD margins) : base(position, reshapeHandler) { this.margins = margins; this.context = context; if ((position & HandlePositions.Vertical) != 0) { ReshapePolicy = ReshapePolicy.Vertical; } else if ((position & HandlePositions.Horizontal) != 0) { ReshapePolicy = ReshapePolicy.Horizontal; } else { ReshapePolicy = ReshapePolicy.Projection; } }
public NonOverlapReshapeHandler(INode node, IReshapeHandler handler) { this.node = node; this.handler = handler; }
public PurpleNodeReshapeHandleProvider(INode node, IReshapeHandler reshapeHandler) : base(node, reshapeHandler, HandlePositions.Border) { }
public UMLReshapeHandler(IReshapeHandler originalHandler) { this.originalHandler = originalHandler; }