private void modify() {
		delete();
		modifiedObjectLoc = selectedObject.getLocationCopy();
		switch (selectedObject.getObjectType()) {
		case DEFAULT:
			break;
		case SHAPE:
			new ShapeMaker((MainFrame) frame, selectedObject);
			break;
		case RECTANGLE:
			new RectangleMaker((MainFrame) frame, selectedObject);
			break;
		case ELLIPSE:
			new EllipseMaker((MainFrame) frame, selectedObject);
			break;
		case TEXT:
			new TextMaker((MainFrame) frame, (Text) selectedObject);
			break;
		case IMAGE:
			image();
			break;
		case LATEX:
			latex();
		}

	}