ok.. solved it! i just have to append the path element to the marker..
somethig like these:
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");
defs.appendChild(startArrow);
Element path = doc.createElementNS(svgNS, "path");
path.setAttribute("d", "M0,1 L5,1 L5,0 L10,1.5 L5,3 L5,2 L0,2
L0,1 Z");
startArrow.appendChild(path);
--
View this message in context:
http://www.nabble.com/how-to-draw-markers-tf3819799.html#a10821960
Sent from the Batik - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]