net.sf.latexdraw.parsers.svg.parsers
Class Path2D2SVGPath
java.lang.Object
net.sf.latexdraw.parsers.svg.parsers.Shape2D2SVG<java.awt.geom.Path2D,SVGPathElement>
net.sf.latexdraw.parsers.svg.parsers.Path2D2SVGPath
- All Implemented Interfaces:
- Parser
public class Path2D2SVGPath
- extends Shape2D2SVG<java.awt.geom.Path2D,SVGPathElement>
Defines a parser parsing Java path2D to generate an SVG path element.
This file is part of LaTeXDraw.
Copyright (c) 2005-2012 Arnaud BLOUIN
LaTeXDraw is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
LaTeXDraw is distributed without any warranty; without even the
implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE. See the GNU General Public License for more details.
08/02/11
- Version:
- 3.0
- Author:
- Arnaud BLOUIN
Method Summary |
void |
parse()
Launches the parsing. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Path2D2SVGPath
public Path2D2SVGPath(java.awt.geom.Path2D path,
SVGDocument document)
- Creates the parser.
- Parameters:
path
- The Path2D to parse.document
- The SVG document that will be used to create SVG elements.
- Throws:
java.lang.IllegalArgumentException
- If one of the given parameters is null.- Since:
- 3.0
parse
public void parse()
throws java.text.ParseException
- Description copied from interface:
Parser
- Launches the parsing.
- Throws:
java.text.ParseException
- If an error occurs.