setX(Math.min(posX, posX2) + Constants.CONNECTOR_WIDTH / 2); setY(Math.min(posY, posY2) + Constants.CONNECTOR_HEIGHT / 2);
setX(Math.min(posX, posX2)); setY(Math.min(posY, posY2));
public void revalidatePosition(){	startVertex.revalidatePosition();	endVertex.revalidatePosition();	int posX = startVertex.getX();	int posY = startVertex.getY();		int posX2 = endVertex.getX();	int posY2 = endVertex.getY();	setX(Math.min(posX, posX2) + Constants.CONNECTOR_WIDTH / 2);	setY(Math.min(posY, posY2) + Constants.CONNECTOR_HEIGHT / 2);	setWidth(Math.abs(posX2 - posX));	setHeight(Math.abs(posY2 - posY));	double rscale = getRscale();	setRwidth((int)(getWidth() * rscale));	setRheight((int)(getHeight() * rscale));	setRx((int)(getX() * rscale));	setRy((int)(getY() * rscale));}