setRwidth((int)(getWidth() * rscale)); setRheight((int)(getHeight() * rscale));
public void 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();	setRx((int)(getX() * rscale));	setRy((int)(getY() * rscale));}