Search in sources :

Example 11 with SVGDocument

use of net.sf.latexdraw.parsers.svg.SVGDocument in project latexdraw by arnobl.

the class TestSVGNamedNodeMap method setUp.

@Before
public void setUp() {
    doc = new SVGDocument();
    map = new SVGNamedNodeMap();
}
Also used : SVGNamedNodeMap(net.sf.latexdraw.parsers.svg.SVGNamedNodeMap) SVGDocument(net.sf.latexdraw.parsers.svg.SVGDocument) Before(org.junit.Before)

Example 12 with SVGDocument

use of net.sf.latexdraw.parsers.svg.SVGDocument in project latexdraw by arnobl.

the class TestSVGBase method setUp.

@Before
public void setUp() {
    doc = new SVGDocument();
    final SVGSVGElement root = doc.getFirstChild();
    root.setAttribute("xmlns:" + LNamespace.LATEXDRAW_NAMESPACE, LNamespace.LATEXDRAW_NAMESPACE_URI);
    root.appendChild(new SVGDefsElement(doc));
    root.setAttribute(SVGAttributes.SVG_VERSION, "1.1");
    root.setAttribute(SVGAttributes.SVG_BASE_PROFILE, "full");
}
Also used : SVGDefsElement(net.sf.latexdraw.parsers.svg.SVGDefsElement) SVGDocument(net.sf.latexdraw.parsers.svg.SVGDocument) SVGSVGElement(net.sf.latexdraw.parsers.svg.SVGSVGElement) Before(org.junit.Before)

Aggregations

SVGDocument (net.sf.latexdraw.parsers.svg.SVGDocument)12 MalformedSVGDocument (net.sf.latexdraw.parsers.svg.MalformedSVGDocument)5 Before (org.junit.Before)5 URI (java.net.URI)3 List (java.util.List)3 ShapeFactory (net.sf.latexdraw.models.ShapeFactory)3 SVGAttributes (net.sf.latexdraw.parsers.svg.SVGAttributes)3 SVGElement (net.sf.latexdraw.parsers.svg.SVGElement)3 SVGGElement (net.sf.latexdraw.parsers.svg.SVGGElement)3 Test (org.junit.Test)3 Point2D (java.awt.geom.Point2D)2 Collectors (java.util.stream.Collectors)2 SVGPointsParser (net.sf.latexdraw.parsers.svg.parsers.SVGPointsParser)2 LNamespace (net.sf.latexdraw.util.LNamespace)2 Collections (java.util.Collections)1 Stream (java.util.stream.Stream)1 Group (javafx.scene.Group)1 Node (javafx.scene.Node)1 Color (javafx.scene.paint.Color)1 ClosePath (javafx.scene.shape.ClosePath)1