private int getMy() {
		int my = 0;
		if (pFrom.y >= pTo.y) {
			if (pMid.y < eFrom.getY() - gap
					&& pMid.y > eTo.getY() + eTo.getOHeight() + gap)
				my = pMid.y;
			else
				my = Math.max(pFrom.y + eFrom.getOHeight() / 2 + gap, pTo.y
						+ eTo.getOHeight() / 2 + gap);
		} else {
			if (pMid.y > eFrom.getY() + eFrom.getOHeight() + gap
					&& pMid.y < eTo.getY() - gap)
				my = pMid.y;
			else
				my = Math.min(pFrom.y - (eFrom.getOHeight() / 2 + gap), pTo.y
						- (eTo.getOHeight() / 2 + gap));
		}
		return my;
	}