@Override
    void setRecToRelativePosition(Rectangle rec, Point targetPoint) {
      rec.setLocation(new Point(targetPoint.x - rec.width / 2, targetPoint.y));
    }
@Override
    void setRecToRelativePosition(Rectangle rec, Point targetPoint)