@Override
	public void mousePressed(MouseEvent e) {

		// for drag and drop objects 
		if(SwingUtilities.isRightMouseButton(e)){
			mouse_target = new Ellipse2D.Double(e.getPoint().x,e.getPoint().y,8,8);
			temp =control.isContains(mouse_target);

			if(temp!=null){

				if(temp instanceof Line){
					l_temp=new Line(temp.getStarting_point(),temp.getEnding_point(),temp.getC());
					model.setShape_type("Line");
				}
				else if (temp instanceof Circle){
					c_temp= new Circle(temp.getStarting_point(),temp.getEnding_point(), temp.getC(),model.isFill());
					model.setShape_type("Circle");
				}
				else if (temp instanceof Square){
					s_temp=new Square(temp.getStarting_point(),temp.getEnding_point(), temp.getC(), model.isFill());
					model.setShape_type("Square"); 	 
				}

				g2=buf_image.createGraphics(); 
				control.removeElement(temp, g2);
				mouse_first=e.getPoint();
				this.repaint();
			}
		}

		else{ // it means user left click to canvas 
			control.setStartPoint(e.getPoint());
			control.setEndPoint(e.getPoint());
		}
	}