i tried what you said but failed.. here is the code..
Element defs = doc.createElementNS(svgNS, "defs");
Element startArrow = doc.createElementNS(svgNS, "marker");
startArrow.setAttributeNS(null, "id", "startArrow");
startArrow.setAttributeNS(null, "viewBox", "0 0 10 10");
startArrow.setAttributeNS(null, "refX", "0");
startArrow.setAttributeNS(null, "refY", "6");
startArrow.setAttributeNS(null, "markerUnits", "strokewidth");
startArrow.setAttributeNS(null, "orient", "auto");
startArrow.setAttributeNS(null, "markerWidth", "5");
startArrow.setAttributeNS(null, "markerHeight", "4");
Attr att = doc.createAttribute("path");
att.setValue("M0,0 L10,0 L0,5 L10,10 L10,5 z");
startArrow.setAttributeNode(att);
defs.appendChild(startArrow);
and here is how i call the marker:
shape.setAttributeNS(null, "marker-start", "url(#startArrow)");
help..
--
View this message in context:
http://www.nabble.com/how-to-draw-markers-tf3819799.html#a10817347
Sent from the Batik - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]