public void paint(Graphics g) {
		
		switch (this.selectedObject) {
		case DrawPanel.Selection:
			if (pointList.size() > 0) {
				for (GraphicsPrimitive gp : shapeList) {
					if (gp.contains(pointList.get(pointList.size() - 1))) {
						if (!gp.isSelected()) {
							gp.getBoundingBox().draw(g);

						}
						break;
					}
				}
				Point save = pointList.get(pointList.size() - 1);
				pointList.clear();
				pointList.add(save);
			}
			break;

		default:
			for (Point p : pointList) {
				g.fillArc(p.x, p.y, 4, 4, 0, 360);
			}
		}

		for (GraphicsPrimitive gp : shapeList) {
			if (gp.isSelected()) {
				gp.getBoundingBox().draw(g);
			}
			gp.draw(g);
		}
	}