// resizing updates the values for Begin and End public override void DoResize(GoView view, RectangleF origRect, PointF newPoint, int whichHandle, GoInputState evttype, SizeF min, SizeF max) { Lifeline line = this.Parent as Lifeline; if (line != null) { RectangleF box = ComputeResize(origRect, newPoint, whichHandle, min, max, true); Rectangle viewbox = view.ConvertDocToView(box); view.DrawXorBox(viewbox, evttype != GoInputState.Finish); if (evttype == GoInputState.Finish) { this.Begin = line.GetStep(box.Top); this.End = line.GetStep(box.Bottom); line.LayoutChildren(this); line.Port.LinksOnPortChanged(GoObject.ChangedBounds, 0, null, NullRect, 0, null, NullRect); } } else { base.DoResize(view, origRect, newPoint, whichHandle, evttype, min, max); } }
// resizing updates the values for Begin and End public override void DoResize(GoView view, RectangleF origRect, PointF newPoint, int whichHandle, GoInputState evttype, SizeF min, SizeF max) { var line = Parent as Lifeline; if (line != null) { RectangleF box = ComputeResize(origRect, newPoint, whichHandle, min, max, true); Rectangle viewbox = view.ConvertDocToView(box); view.DrawXorBox(viewbox, evttype != GoInputState.Finish); if (evttype == GoInputState.Finish) { Begin = line.GetStep(box.Top); End = line.GetStep(box.Bottom); line.LayoutChildren(this); line.Port.LinksOnPortChanged(ChangedBounds, 0, null, NullRect, 0, null, NullRect); } } else { base.DoResize(view, origRect, newPoint, whichHandle, evttype, min, max); } }