code: public static Element svgRect(Document document, double x, double y, double w, double h) {
      Element rect = SVGUtil.svgElement(document, SVGConstants.SVG_RECT_TAG);
      SVGUtil.setAtt(rect, SVGConstants.SVG_X_ATTRIBUTE, x);
      SVGUtil.setAtt(rect, SVGConstants.SVG_Y_ATTRIBUTE, y);
      SVGUtil.setAtt(rect, SVGConstants.SVG_WIDTH_ATTRIBUTE, w);
      SVGUtil.setAtt(rect, SVGConstants.SVG_HEIGHT_ATTRIBUTE, h);
      return rect;
    }
docs: Create a SVG rectangle element.
  
  @param document document to create in (factory)
  @param x X coordinate
  @param y Y coordinate
  @param w Width
  @param h Height
  @return new element