outlineElem.setAttribute("y", String.valueOf(y)); outlineElem.setAttribute("style", "text-anchor: middle; dominant-baseline: central;"); outlineElem.setAttribute("fill", target.toHexString(color)); outlineElem.setAttribute("font-family", font.getFamily()); outlineElem.setAttribute("font-size", font.getSize() + ""); outlineElem.setAttribute("stroke", target.toHexString(outlineColor)); outlineElem.setAttribute("stroke-width", (outlineSize * target.getScaleRatio()) + "px"); outlineElem.setAttribute("stroke-linecap", "round"); labelElem.setAttribute("y", y + ""); labelElem.setAttribute("style", "text-anchor: middle; dominant-baseline: central;"); labelElem.setAttribute("fill", target.toHexString(color)); labelElem.setAttribute("font-family", font.getFamily()); labelElem.setAttribute("font-size", font.getSize() + "");
outlineElem.setAttribute("y", String.valueOf(y)); outlineElem.setAttribute("style", "text-anchor: middle; dominant-baseline: central;"); outlineElem.setAttribute("fill", target.toHexString(color)); outlineElem.setAttribute("font-family", font.getFamily()); outlineElem.setAttribute("font-size", String.valueOf(fontSize)); outlineElem.setAttribute("stroke", target.toHexString(outlineColor)); outlineElem.setAttribute("stroke-width", (outlineSize * target.getScaleRatio()) + "px"); outlineElem.setAttribute("stroke-linecap", "round"); labelElem.setAttribute("y", String.valueOf(y)); labelElem.setAttribute("style", "text-anchor: middle; dominant-baseline: central;"); labelElem.setAttribute("fill", target.toHexString(color)); labelElem.setAttribute("font-family", font.getFamily()); labelElem.setAttribute("font-size", String.valueOf(fontSize)); boxElem.setAttribute("width", Float.toString(rect.getWidth() + outlineSize)); boxElem.setAttribute("height", Float.toString(rect.getHeight() + outlineSize)); boxElem.setAttribute("fill", target.toHexString(boxColor)); boxElem.setAttribute("opacity", String.valueOf(boxColor.getAlpha() / 255f)); target.getTopElement(SVGTarget.TOP_NODE_LABELS).insertBefore(boxElem, labelElem);
nodeElem.setAttribute("cy", y.toString()); nodeElem.setAttribute("r", size.toString()); nodeElem.setAttribute("fill", target.toHexString(color)); nodeElem.setAttribute("fill-opacity", "" + alpha); if (borderSize > 0) { nodeElem.setAttribute("stroke", target.toHexString(borderColor)); nodeElem.setAttribute( "stroke-width",
selfLoopElem.setAttribute( "stroke", svgTarget.toHexString(color)); selfLoopElem.setAttribute( "stroke-opacity",
SVGUtils.idAsClassAttribute(((Node) h.targetItem.getSource()).getId()) )); arrowElem.setAttribute("fill", svgTarget.toHexString(color)); arrowElem.setAttribute("fill-opacity", (color.getAlpha() / 255f) + ""); arrowElem.setAttribute("stroke", "none");
h.x1, h.y1, h.v1.x, h.v1.y, h.v2.x, h.v2.y, h.x2, h.y2)); edgeElem.setAttribute("stroke", svgTarget.toHexString(color)); edgeElem.setAttribute( "stroke-width",
"M %f,%f L %f,%f", h.x1, h.y1, h.x2, h.y2)); edgeElem.setAttribute("stroke", svgTarget.toHexString(color)); edgeElem.setAttribute( "stroke-width",