Exemple #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;
 }
Exemple #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);
        }
Exemple #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);
        }
Exemple #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);
        }
Exemple #5
0
 public override void Deselect(ObjectShape obj)
 {
     obj.ChangeState(StaticState.GetInstance());
 }