public static GeneralPath getTorn(float x, float y, float width,
			float height, boolean left, boolean right) {
		GeneralPath path = new GeneralPath();
		path.moveTo(x, y);
		path.lineTo(x + width, y);
		if (right) {
			path.quadTo(x + width - height / 4.0f, y + height / 4.0f,
					x + width, y + height / 2.0f);
			path.quadTo(x + width - height / 4.0f, y + 3.0f * height / 4.0f, x
					+ width, y + height);
		} else
			path.lineTo(x + width, y + height);
		path.lineTo(x, y + height);
		if (left) {
			path.quadTo(x + height / 4.0f, y + 3.0f * height / 4.0f, x, y
					+ height / 2.0f);
			path.quadTo(x + height / 4.0f, y + height / 4.0f, x, y);
		}
		path.closePath();
		return path;
	}