public void draw(Graphics g)
	{
		Graphics2D g2d = (Graphics2D) g;
		if(line != null)
		{
			g2d.setStroke(line);
		}
		
		g2d.drawRect((int) x, (int) y, (int) width, (int) height);
		
		 if (width < 0)
		 {
			 width = Math.abs(width);
			 x = x - width;
			 g2d.drawRect((int) x , (int) y, (int) width, (int) height);
		 }
		 if (height < 0)
		 {
			 height = Math.abs(height);
			 y = y - height;
			 g2d.drawRect((int) x , (int) y, (int) width, (int) height);
		 }
		 if (width < 0 && height < 0)
		 {
			 width = Math.abs(width);
			 x = x - width;
			 height = Math.abs(height);
			 y = y - height;
			 g2d.drawRect((int) x , (int) y, (int) width, (int) height);
		 }
		 
		 if(line != null)
			{
				g2d.setStroke(new BasicStroke());
			}
	}