Example #1
0
        public override void SetNewPosForHotAnchor(int index, Point newPos)
        {
            PointF[] pf = base.VertexAnchors;
            pf[index] = newPos;

            PointF[] newps = ShapeHelper.GetIndicatorArrowPoints(pf[0], pf[1], _property.LineSize);
            base.SetNewScaledPath(newps, types);
        }
Example #2
0
 public override void SetEndPoint(Point pt)
 {
     if (IsInCreating)
     {
         base.BeforePathTransforming();
         base.Path.Reset();
         base.Path.AddLine(base.StartPoint, pt);
         AfterPathTransformed(PathTransformType.Scale, true);
     }
     else
     {
         PointF[] pf = ShapeHelper.GetBrokenLinePoints(StartPoint, pt);
         base.SetNewScaledPath(pf, new byte[] { 0, 1, 1, 1 });
     }
 }
Example #3
0
 public override void SetEndPoint(Point pt)
 {
     PointF[] pf = ShapeHelper.GetIndicatorArrowPoints(base.StartPoint, pt, _property.LineSize);
     base.SetNewScaledPath(pf, types);
 }
Example #4
0
 protected override void ResetPath()
 {
     PointF[] pf = ShapeHelper.GetRoundedRectPathPoints(
         _pro.RadiusAll, Rect.Location, new PointF(Rect.Right, Rect.Bottom));
     base.SetNewScaledPath(pf, types);
 }