private void setHandles() {
		if (handleArc == null)
			handleArc = new Polygon();
		else handleArc.reset();
		float x0 = rect.x + rect.arcwidth * 0.5f;
		handleArc.addPoint(Math.round(x0 - 4), Math.round(rect.y - 14));
		handleArc.addPoint(Math.round(x0), Math.round(rect.y - 18));
		handleArc.addPoint(Math.round(x0 + 4), Math.round(rect.y - 14));
		handleArc.addPoint(Math.round(x0), Math.round(rect.y - 10));
		if (handleNW == null) {
			handleNW = new Rectangle(Math.round(rect.x - 3), Math.round(rect.y - 3), 6, 6);
		}
		else {
			handleNW.x = Math.round(rect.x - 3);
			handleNW.y = Math.round(rect.y - 3);
		}
		if (handleNE == null) {
			handleNE = new Rectangle(Math.round(rect.x + rect.width - 3), Math.round(rect.y - 3), 6, 6);
		}
		else {
			handleNE.x = Math.round(rect.x + rect.width - 3);
			handleNE.y = Math.round(rect.y - 3);
		}
		if (handleSE == null) {
			handleSE = new Rectangle(Math.round(rect.x + rect.width - 3), Math.round(rect.y + rect.height - 3), 6, 6);
		}
		else {
			handleSE.x = Math.round(rect.x + rect.width - 3);
			handleSE.y = Math.round(rect.y + rect.height - 3);
		}
		if (handleSW == null) {
			handleSW = new Rectangle(Math.round(rect.x - 3), Math.round(rect.y + rect.height - 3), 6, 6);
		}
		else {
			handleSW.x = Math.round(rect.x - 3);
			handleSW.y = Math.round(rect.y + rect.height - 3);
		}
		if (handleN == null) {
			handleN = new Rectangle(Math.round(rect.x + rect.width / 2 - 3), Math.round(rect.y - 3), 6, 6);
		}
		else {
			handleN.x = Math.round(rect.x + rect.width / 2 - 3);
			handleN.y = Math.round(rect.y - 3);
		}
		if (handleE == null) {
			handleE = new Rectangle(Math.round(rect.x + rect.width - 3), Math.round(rect.y + rect.height / 2 - 3), 6, 6);
		}
		else {
			handleE.x = Math.round(rect.x + rect.width - 3);
			handleE.y = Math.round(rect.y + rect.height / 2 - 3);
		}
		if (handleS == null) {
			handleS = new Rectangle(Math.round(rect.x + rect.width / 2 - 3), Math.round(rect.y + rect.height - 3), 6, 6);
		}
		else {
			handleS.x = Math.round(rect.x + rect.width / 2 - 3);
			handleS.y = Math.round(rect.y + rect.height - 3);
		}
		if (handleW == null) {
			handleW = new Rectangle(Math.round(rect.x - 3), Math.round(rect.y + rect.height / 2 - 3), 6, 6);
		}
		else {
			handleW.x = Math.round(rect.x - 3);
			handleW.y = Math.round(rect.y + rect.height / 2 - 3);
		}
	}