protected Element getImageText(SVGDocument doc, int imgXLeft, int imgYTop, int imgWidth, int imgHeight,
String imgName, String imgDisplayName) {
int txtXLeft = imgXLeft;
int txtYTop = imgYTop; // + imgHeight + BPEL2SVGFactory.TEXT_ADJUST;
Element a = doc.createElementNS("http://www.w3.org/2000/svg", "a");
if (imgDisplayName != null) {
a.setAttributeNS(null, "id", imgName);
Element text1 = doc.createElementNS("http://www.w3.org/2000/svg", "text");
text1.setAttributeNS(null, "x", String.valueOf(txtXLeft));
text1.setAttributeNS(null, "y", String.valueOf(txtYTop));
text1.setAttributeNS(null, "id", imgName + ".Text");
text1.setAttributeNS(null, "xml:space", "preserve");
text1.setAttributeNS(null, "style", "font-size:12px;font-style:normal;font-variant:normal;font-weight:" +
"normal;font-stretch:normal;text-align:start;line-height:125%;writing-mode:lr-tb;text-anchor:" +
"start;fill:#000000;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;" +
"stroke-linejoin:miter;stroke-opacity:1;font-family:Arial Narrow;" +
"-inkscape-font-specification:Arial Narrow");
Element tspan = doc.createElementNS("http://www.w3.org/2000/svg", "tspan");
tspan.setAttributeNS(null, "x", String.valueOf(txtXLeft));
tspan.setAttributeNS(null, "y", String.valueOf(txtYTop));
tspan.setAttributeNS(null, "id", "tspan-" + imgName);
Text text2 = doc.createTextNode(imgDisplayName);
tspan.appendChild(text2);
text1.appendChild(tspan);
a.appendChild(text1);
}
return a;