/// <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>();
 }
Exemple #2
0
 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;
 }
Exemple #4
0
 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;
 }
Exemple #7
0
 public PurpleNodeReshapeHandleProvider(INode node, IReshapeHandler reshapeHandler)
     : base(node, reshapeHandler, HandlePositions.Border)
 {
 }
Exemple #8
0
 public UMLReshapeHandler(IReshapeHandler originalHandler)
 {
     this.originalHandler = originalHandler;
 }