private void setAnchorPointForRectangularShape(byte i, float x, float y, float w, float h) {
		switch (i) {
		case RectangleComponent.UPPER_LEFT:
			anchorPoint.setLocation(x + w, y + h);
			break;
		case RectangleComponent.UPPER_RIGHT:
			anchorPoint.setLocation(x, y + h);
			break;
		case RectangleComponent.LOWER_RIGHT:
			anchorPoint.setLocation(x, y);
			break;
		case RectangleComponent.LOWER_LEFT:
			anchorPoint.setLocation(x + w, y);
			break;
		case RectangleComponent.TOP:
			anchorPoint.setLocation(x, y + h);
			break;
		case RectangleComponent.RIGHT:
			anchorPoint.setLocation(x, y);
			break;
		case RectangleComponent.BOTTOM:
			anchorPoint.setLocation(x, y);
			break;
		case RectangleComponent.LEFT:
			anchorPoint.setLocation(x + w, y);
			break;
		}
	}