protected void pasteBufferedComponent(int x, int y) {
		if (pasteBuffer instanceof ImageComponent) {
			ImageComponent ic = null;
			try {
				ic = new ImageComponent(((ImageComponent) pasteBuffer).toString());
			} catch (Exception e) {
				e.printStackTrace();
				return;
			}
			ic.setLocation(x, y);
			addLayeredComponent(ic);
		} else if (pasteBuffer instanceof TextBoxComponent) {
			TextBoxComponent t = new TextBoxComponent((TextBoxComponent) pasteBuffer);
			t.setLocation(x, y);
			if (t.isCallOut())
				t.setCallOutLocation(x - 10, y - 10);
			addLayeredComponent(t);
		} else if (pasteBuffer instanceof LineComponent) {
			LineComponent l = new LineComponent((LineComponent) pasteBuffer);
			l.setLocation(x, y);
			addLayeredComponent(l);
		} else if (pasteBuffer instanceof RectangleComponent) {
			RectangleComponent r = new RectangleComponent((RectangleComponent) pasteBuffer);
			r.setLocation(x, y);
			addLayeredComponent(r);
		} else if (pasteBuffer instanceof EllipseComponent) {
			EllipseComponent e = new EllipseComponent((EllipseComponent) pasteBuffer);
			e.setLocation(x, y);
			addLayeredComponent(e);
		} else if (pasteBuffer instanceof TriangleComponent) {
			TriangleComponent t = new TriangleComponent((TriangleComponent) pasteBuffer);
			t.setLocation(x, y);
			addLayeredComponent(t);
		}
	}