public void setP(Point p) { if (ioblock != null) ioblock.setCenter(p); else { point.x = p.x; point.y = p.y; } }
/* public void setBlockIORect(BlockIORect ioblock) { if (ioblock==null && this.ioblock!=null ) this.point = new Point (this.ioblock.getCenter().x,this.ioblock.getCenter().y); this.ioblock = ioblock; }*/ public Point getP() { if (ioblock != null) { Point pp = ioblock .getDisplay() .map( ioblock.getBlock().getR2(), ioblock.getShell(), ioblock.getCenter().x, ioblock.getCenter().y); return pp; // return ioblock.getCenter(); } else { return point; } }