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