subgrids.setAttribute(prefix+LNamespace.XML_GRID_DOTS, String.valueOf(subGridDots));
subgrids.setAttribute(prefix+LNamespace.XML_GRID_SUB_DIV, String.valueOf(subGridDiv));
for(k=minX, i=posX; k<maxX; i+=xStep, k++)
for(j=0; j<=subGridDiv; j++) {
line = new SVGLineElement(document);
line.setAttribute(SVGAttributes.SVG_X1, String.valueOf(i+xSubStep*j));
line.setAttribute(SVGAttributes.SVG_X2, String.valueOf(i+xSubStep*j));
line.setAttribute(SVGAttributes.SVG_Y1, String.valueOf(bry));
line.setAttribute(SVGAttributes.SVG_Y2, String.valueOf(tly));
subgrids.appendChild(line);
}
for(k=minY, i=posY; k<maxY; i-=yStep, k++)
for(j=0; j<=subGridDiv; j++) {
line = new SVGLineElement(document);
line.setAttribute(SVGAttributes.SVG_X1, String.valueOf(tlx));
line.setAttribute(SVGAttributes.SVG_X2, String.valueOf(brx));
line.setAttribute(SVGAttributes.SVG_Y1, String.valueOf(i-ySubStep*j));
line.setAttribute(SVGAttributes.SVG_Y2, String.valueOf(i-ySubStep*j));
subgrids.appendChild(line);