Ejemplo n.º 1
0
 public override object Clone()
 {
     Ellipse objCopy = new Ellipse();
     objCopy.X = this.X;
     objCopy.Y = this.Y;
     objCopy.Width = this.Width;
     objCopy.Height = this.Height;
     objCopy.pen = this.pen;
     objCopy.ID = this.ID;
     objCopy.ChangeState(StaticState.GetInstance());
     return objCopy;
 }
Ejemplo n.º 2
0
        public override object Clone()
        {
            LineSegment objCopy = new LineSegment();

            objCopy.Startpoint = this.Startpoint;
            objCopy.Endpoint   = this.Endpoint;
            objCopy.pen        = this.pen;
            objCopy.ID         = this.ID;
            objCopy.ChangeState(StaticState.GetInstance());
            Debug.WriteLine("Cloning LINE " + objCopy.ID);
            return(objCopy);
        }
Ejemplo n.º 3
0
        public override object Clone()
        {
            Text copyObj = new Text();

            copyObj.Value    = this.Value;
            copyObj.X        = this.X;
            copyObj.Y        = this.Y;
            copyObj.brush    = this.brush;
            copyObj.font     = this.font;
            copyObj.textSize = this.textSize;
            copyObj.ChangeState(StaticState.GetInstance());
            Debug.WriteLine("Cloning TEXT " + copyObj.ID);
            return(copyObj);
        }
Ejemplo n.º 4
0
        public override object Clone()
        {
            Rectangle objRectCopy = new Rectangle();

            objRectCopy.X              = this.X;
            objRectCopy.Y              = this.Y;
            objRectCopy.Width          = this.Width;
            objRectCopy.Height         = this.Height;
            objRectCopy.pen            = this.pen;
            objRectCopy.drawingObjects = this.drawingObjects;
            objRectCopy.ID             = this.ID;
            objRectCopy.ChangeState(StaticState.GetInstance());

            return(objRectCopy);
        }
Ejemplo n.º 5
0
 public override void Deselect(ObjectShape obj)
 {
     obj.ChangeState(StaticState.GetInstance());
 }