public void addShapeObject(){

		if(shape_type.equalsIgnoreCase("Line")){
			objects.add(new Line(current_start,current_end,c));
		}

		else if (shape_type.equalsIgnoreCase("Square")){
			objects.add(new Square(current_start,current_end,c,fill));

		}

		else if(shape_type.equalsIgnoreCase("Circle")){
			objects.add(new Circle(current_start,current_end,c,fill));
		}	

		//draw_index++;
		draw_index=objects.size();  //after adding process complited increase draw index so that undo redo operations
		System.out.println(objects.size());
		//could be done up to here
	}