public void renderSVG(SVGTarget target, Edge edge, String label, float x, float y, Color color, float outlineSize, Color outlineColor) { Text labelText = target.createTextNode(label); Text labelTextOutline = target.createTextNode(label); Element outlineElem = target.createElement("text"); outlineElem.setAttribute("class", SVGUtils.idAsClassAttribute(edge.getId()));
public void renderSVG(SVGTarget target, Node node, String label, float x, float y, int fontSize, Color color, float outlineSize, Color outlineColor, boolean showBox, Color boxColor) { Text labelText = target.createTextNode(label); Font font = fontCache.get(fontSize); Text labelTextOutline = target.createTextNode(label); Element outlineElem = target.createElement("text"); outlineElem.setAttribute("class", SVGUtils.idAsClassAttribute(node.getId()));