net.sf.latexdraw.generators.svg
Class LGroupSVGGenerator

java.lang.Object
  extended by net.sf.latexdraw.generators.svg.LShapeSVGGenerator<IGroup>
      extended by net.sf.latexdraw.generators.svg.LGroupSVGGenerator

 class LGroupSVGGenerator
extends LShapeSVGGenerator<IGroup>

Defines a SVG generator for a group of shapes.

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

Field Summary
 
Fields inherited from class net.sf.latexdraw.generators.svg.LShapeSVGGenerator
shape, SVG_URL_TOKEN_BEGIN
 
Constructor Summary
protected LGroupSVGGenerator(IGroup group)
          Creates an SVG generator from IGroup instance.
protected LGroupSVGGenerator(SVGGElement group)
          Creates an SVG generator from an SVGGElement that should corresponds to a group of latexdraw shapes.
  LGroupSVGGenerator(SVGGElement elt, boolean withTransformation)
          Creates an SVG generator from an SVGGElement that should corresponds to a group of latexdraw shapes.
 
Method Summary
 SVGElement toSVG(SVGDocument doc)
          Creates an SVG element from the current latexdraw shape.
 
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
 

Constructor Detail

LGroupSVGGenerator

protected LGroupSVGGenerator(IGroup group)
Creates an SVG generator from IGroup instance.

Parameters:
group - The group of shapes that will be converted.
Since:
3.0

LGroupSVGGenerator

protected LGroupSVGGenerator(SVGGElement group)
Creates an SVG generator from an SVGGElement that should corresponds to a group of latexdraw shapes.

Parameters:
group - The group of latexdraw shapes in the SVG format supplemented with latexdraw information.
Since:
3.0

LGroupSVGGenerator

public LGroupSVGGenerator(SVGGElement elt,
                          boolean withTransformation)
Creates an SVG generator from an SVGGElement that should corresponds to a group of latexdraw shapes.

Parameters:
elt - The group of latexdraw shapes in the SVG format supplemented with latexdraw information.
withTransformation - True: the set of transformations that concerned the given SVG element will be applied to the shape.
Throws:
java.lang.IllegalArgumentException - If the given SVGGElement is null or not valid.
Since:
3.0
Method Detail

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<IGroup>
Parameters:
doc - The SVG document.
Returns:
The created SVGElement or null.