protected void copySelectedComponent() {
		if (selectedComponent instanceof ImageComponent) {
			try {
				pasteBuffer = new ImageComponent(((ImageComponent) selectedComponent).toString());
			} catch (Exception e) {
				// ignore
			}
		} else if (selectedComponent instanceof TextBoxComponent) {
			pasteBuffer = new TextBoxComponent((TextBoxComponent) selectedComponent);
		} else if (selectedComponent instanceof LineComponent) {
			pasteBuffer = new LineComponent((LineComponent) selectedComponent);
		} else if (selectedComponent instanceof RectangleComponent) {
			pasteBuffer = new RectangleComponent((RectangleComponent) selectedComponent);
		} else if (selectedComponent instanceof EllipseComponent) {
			pasteBuffer = new EllipseComponent((EllipseComponent) selectedComponent);
		} else if (selectedComponent instanceof TriangleComponent) {
			pasteBuffer = new TriangleComponent((TriangleComponent) selectedComponent);
		}
	}