public void resize(int x, int y) {
		
		JShot.debug("resize");
		
		switch (resizePosition) {
		case TOP | LEFT | CORNER:
			this.startX = x;
			this.startY = y;
			break;
		case TOP | RIGHT | CORNER:
			this.endX = x;
			this.startY = y;
			break;
		case BOTTOM | RIGHT | CORNER:
			this.endX = x;
			this.endY = y;
			break;
		case BOTTOM | LEFT  | CORNER:
			this.startX = x;
			this.endY = y;
			break;
		case TOP:
			this.startY = y;
			break;
		case RIGHT:
			this.endX = x;
			break;
		case BOTTOM:
			this.endY = y;
			break;
		case LEFT:
			this.startX = x;
			break;
		} 
		draw();
	}