public override void rePosition(Ele e) { float zx = (e.Width - (e.Width * e.getGprZoomX())) / 2; float zy = (e.Height - (e.Height * e.getGprZoomY())) / 2; this.X = (int)((e.getX1() - 2) - zx); this.Y = (int)((e.getY1() - 2) - zy); this.X1 = this.X + 5; this.Y1 = this.Y + 5; //this._zoomX = ((SelRect)e).zoomX; //this._zoomY = ((SelRect)e).zoomY; }
public AbstractSel(Ele el) { this.X = el.getX(); this.Y = el.getY(); this.X1 = el.getX1();; this.Y1 = el.getY1(); this.Selected = false; this.rot = el.canRotate();// RotAllowed; this._rotation = el.getRotation(); this.gprZoomX = el.getGprZoomX(); this.gprZoomY = el.getGprZoomY(); this.sonoUnaLinea = el.sonoUnaLinea; this.IamGroup = el.AmIaGroup(); handles = new ArrayList(); this.endMoveRedim(); }