net.sf.latexdraw.generators.svg
Class LPictureSVGGenerator
java.lang.Object
net.sf.latexdraw.generators.svg.LShapeSVGGenerator<IPicture>
net.sf.latexdraw.generators.svg.LPictureSVGGenerator
class LPictureSVGGenerator
- extends LShapeSVGGenerator<IPicture>
Defines a SVG generator for an picture.
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
- Version:
- 3.0
- Author:
- Arnaud BLOUIN
Methods inherited from class net.sf.latexdraw.generators.svg.LShapeSVGGenerator |
applyTransformation, applyTransformations, getGradientPoints, getLaTeXDrawElement, getPositionGap, getShape, getShowPointsDot, getShowPointsLine, getSVGHatchingsPath, getSVGID, homogeniseArrowFrom, homogeniseArrows, setDashedDotted, setDashedDotted, setFill, setLineColour, setNumber, setSVGArrow, setSVGArrow, setSVGAttributes, setSVGBorderBackground, setSVGDbleBordersParameters, setSVGDoubleBordersAttributes, setSVGLatexdrawParameters, setSVGParameters, setSVGRotationAttribute, setSVGShadowAttributes, setSVGShadowParameters, setThickness, setThickness |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LPictureSVGGenerator
protected LPictureSVGGenerator(IPicture shape)
LPictureSVGGenerator
protected LPictureSVGGenerator(SVGImageElement elt)
throws java.io.IOException
- Creates a picture from a SVGImage element.
- Parameters:
elt
- The source element.
- Throws:
java.io.IOException
- If a problem while reading/writing pictures occurs.- Since:
- 2.0.0
LPictureSVGGenerator
protected LPictureSVGGenerator(SVGGElement elt)
throws java.io.IOException
- Throws:
java.io.IOException
LPictureSVGGenerator
protected LPictureSVGGenerator(SVGGElement elt,
boolean withTransformation)
throws java.io.IOException
- Creates a picture from a latexdraw-SVG element.
- Parameters:
elt
- The source element.
- Throws:
java.io.IOException
- If a problem while reading/writing pictures occurs.- Since:
- 2.0.0
toSVG
public SVGElement toSVG(SVGDocument doc)
- Description copied from class:
LShapeSVGGenerator
- Creates an SVG element from the current latexdraw shape.
- Specified by:
toSVG
in class LShapeSVGGenerator<IPicture>
- Parameters:
doc
- The SVG document.
- Returns:
- The created SVGElement or null.