|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.latexdraw.generators.svg.LShapeSVGGenerator<S>
net.sf.latexdraw.generators.svg.LModifiablePointsGenerator<IPolygon>
net.sf.latexdraw.generators.svg.LPolygonSVGGenerator
class LPolygonSVGGenerator
Defines a SVG generator for a polygon.
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.
11/11/07
Field Summary |
---|
Fields inherited from class net.sf.latexdraw.generators.svg.LShapeSVGGenerator |
---|
shape, SVG_URL_TOKEN_BEGIN |
Constructor Summary | |
---|---|
protected |
LPolygonSVGGenerator(IPolygon polygon)
Creates a generator for IPolygon. |
protected |
LPolygonSVGGenerator(SVGGElement elt)
Creates a latexdraw polygon from an SVG element provided by a latexdraw-SVG document. |
protected |
LPolygonSVGGenerator(SVGGElement elt,
boolean withTransformation)
Creates a polygon from a latexdraw-SVG element. |
protected |
LPolygonSVGGenerator(SVGPathElement elt)
Creates a latexdraw shape from the given SVG element. |
protected |
LPolygonSVGGenerator(SVGPolygonElement elt)
Creates a polygon from an SVG polygon element. |
Method Summary | |
---|---|
SVGElement |
toSVG(SVGDocument doc)
Creates an SVG element from the current latexdraw shape. |
Methods inherited from class net.sf.latexdraw.generators.svg.LModifiablePointsGenerator |
---|
initModifiablePointsShape, setSVGModifiablePointsParameters |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected LPolygonSVGGenerator(IPolygon polygon)
polygon
- The source polygon used to generate the SVG element.protected LPolygonSVGGenerator(SVGPathElement elt)
elt
- The source SVG element.
java.lang.IllegalArgumentException
- If the given SVG element is not valid.protected LPolygonSVGGenerator(SVGPolygonElement elt)
elt
- The source element.protected LPolygonSVGGenerator(SVGGElement elt)
elt
- The latexdraw-SVG element to convert as a latexdraw shape.protected LPolygonSVGGenerator(SVGGElement elt, boolean withTransformation)
elt
- The source element.Method Detail |
---|
public SVGElement toSVG(SVGDocument doc)
LShapeSVGGenerator
toSVG
in class LShapeSVGGenerator<IPolygon>
doc
- The SVG document.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |