@Override
	public void refreshView(Graphics2D g2d) {		
		List<Shape> shapes = shapeManager.getShapes();
		for (Shape s : shapes) {
			if (s instanceof Rectangle)
				drawRectangle(g2d, (Rectangle)s);
			if (s instanceof Square)
				drawSquare(g2d, (Square)s);
			if (s instanceof Line)
				drawLine(g2d, (Line)s);
			if (s instanceof Ellipse)
				drawEllipse(g2d, (Ellipse)s);
			if (s instanceof Circle)
				drawCircle(g2d, (Circle)s);
			if (s instanceof Triangle)
				drawTriangle(g2d, (Triangle)s);
		}
		
		if (controller.buttonSelected == ButtonSelected.SELECT
				&& handleManager.isSomethingSelected()) {
			drawSquare(g2d, handleManager.getUpperLeft());
			drawSquare(g2d, handleManager.getUpperRight());
			drawSquare(g2d, handleManager.getBottomLeft());
			drawSquare(g2d, handleManager.getBottomRight());
		}
		
//		System.out.println("Number of shapes: " + shapes.size());
	}