示例#1
0
 protected override void Dispose(bool disposing)
 {
     if (disposing)
     {
     }
     __parentShape = null;
     base.Dispose(disposing);
 }
示例#2
0
 public static string ToDebugString(this AbstractShape shape)
 {
     if (shape == null)
     {
         return("None");
     }
     else
     {
         return(shape.ToString());
     }
 }
示例#3
0
        protected AbstractHandle(PointF location, AbstractShape parent, IPrimitiveProvider primitiveProvider)
        {
            if (primitiveProvider == null)
            {
                throw new ArgumentNullException(nameof(primitiveProvider));
            }
            __location    = location;
            __parentShape = parent;


            var rect = primitiveProvider.GetPrimitive <AbstractRectangle>(
                new PointF(location.X - HANDLE_SIZE, location.Y - HANDLE_SIZE),
                new SizeF(HANDLE_SIZE * 2 + 1, HANDLE_SIZE * 2 + 1));

            rect.DrawModel = DrawModel.Center;

            InitializePrimaryPrimitiveAndBound(rect, null);

            CanSelect = false;
            Visible   = false;
            Styles.HandleStyles.ApplyDefaultPatternTo(rect);
        }
示例#4
0
 public LineResizeHandle(PointF location, AbstractShape parent, LineResizeType type, IPrimitiveProvider primitiveProvider)
     : base(location, parent, primitiveProvider)
 {
     Type = type;
 }
示例#5
0
 public AnchorHandle(PointF location, AbstractShape parent, string name, IPrimitiveProvider primitiveProvider)
     : base(location, parent, primitiveProvider)
 {
     __lines = new List <Line>();
     Name    = name;
 }
示例#6
0
 public RectResizeHandle(PointF location, AbstractShape parent, CornerType type, IPrimitiveProvider provider)
     : base(location, parent, provider)
 {
     Type = type;
 }
示例#7
0
 public BeginTextingEventArgs(RectangleF rect, AbstractShape shape, string textString)
 {
     Rect       = rect;
     Shape      = shape;
     TextString = textString;
 }