@Test public void addText() { SvgTextElement element = new SvgTextElement(str); element.addTextNode(altStr); assertSame(element.children().size(), 2); assertSame(((SvgTextNode) element.children().get(0)).textContent().get(), str); assertSame(((SvgTextNode) element.children().get(1)).textContent().get(), altStr); }
public void addTextNode(String text) { SvgTextNode textNode = new SvgTextNode(text); children().add(textNode); }
SvgTextElement extends SvgGraphicsElement implements SvgTransformable, SvgTextContent { public void addTextNode(String text) { SvgTextNode textNode = new SvgTextNode(text); children().add(textNode); } }
SvgTextElement extends SvgGraphicsElement implements SvgTransformable, SvgTextContent { public void addTextNode(String text) { SvgTextNode textNode = new SvgTextNode(text); children().add(textNode); } SvgTextElement();  SvgTextElement(String content);  SvgTextElement(double x, double y, String content); }
SvgTextElement extends SvgGraphicsElement implements SvgTransformable, SvgTextContent { public void addTextNode(String text) { SvgTextNode textNode = new SvgTextNode(text); children().add(textNode); } SvgTextElement();  SvgTextElement(String content);  SvgTextElement(double x, double y, String content); @Override String getElementName(); Property<Double> x(); Property<Double> y(); @Override Property<SvgTransform> transform(); void setTextNode(String text); void addTextNode(String text); void setTSpan(SvgTSpanElement tspan); void setTSpan(String text); void addTSpan(SvgTSpanElement tspan); void addTSpan(String text); @Override Property<SvgColor> fill(); @Override WritableProperty<Color> fillColor(); @Override Property<Double> fillOpacity(); @Override Property<SvgColor> stroke(); @Override WritableProperty<Color> strokeColor(); @Override Property<Double> strokeOpacity(); @Override Property<Double> strokeWidth(); @Override double getComputedTextLength(); @Override DoubleVector pointToTransformedCoordinates(DoubleVector point); @Override DoubleVector pointToAbsoluteCoordinates(DoubleVector point); @Override DoubleRectangle getBBox(); }
SvgTextElement extends SvgGraphicsElement implements SvgTransformable, SvgTextContent { public void addTextNode(String text) { SvgTextNode textNode = new SvgTextNode(text); children().add(textNode); } SvgTextElement();  SvgTextElement(String content);  SvgTextElement(double x, double y, String content); @Override String getElementName(); Property<Double> x(); Property<Double> y(); @Override Property<SvgTransform> transform(); void setTextNode(String text); void addTextNode(String text); void setTSpan(SvgTSpanElement tspan); void setTSpan(String text); void addTSpan(SvgTSpanElement tspan); void addTSpan(String text); @Override Property<SvgColor> fill(); @Override WritableProperty<Color> fillColor(); @Override Property<Double> fillOpacity(); @Override Property<SvgColor> stroke(); @Override WritableProperty<Color> strokeColor(); @Override Property<Double> strokeOpacity(); @Override Property<Double> strokeWidth(); @Override double getComputedTextLength(); @Override DoubleVector pointToTransformedCoordinates(DoubleVector point); @Override DoubleVector pointToAbsoluteCoordinates(DoubleVector point); @Override DoubleRectangle getBBox();  }