|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.latexdraw.generators.svg.LShapeSVGGenerator<IRectangle>
net.sf.latexdraw.generators.svg.LRectangleSVGGenerator
class LRectangleSVGGenerator
Defines a SVG generator for a rectangle.
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 |
LRectangleSVGGenerator(IRectangle rect)
Creates a generator of SVG rectangle. |
protected |
LRectangleSVGGenerator(SVGGElement elt)
Creates a rectangle from a G SVG element. |
protected |
LRectangleSVGGenerator(SVGGElement elt,
boolean withTransformation)
Creates a rectangle from a latexdraw-SVG element. |
protected |
LRectangleSVGGenerator(SVGRectElement elt)
Creates a rectangle from an SVG rect element. |
Method Summary | |
---|---|
protected void |
initRectangle(SVGGElement elt,
boolean withTransformation)
Initialises the rectangle using an SVGGElement provided by a latexdraw SVG document. |
protected void |
setSVGRectParameters(SVGRectElement elt)
Sets the parameters of the latexdraw rectangle using the given SVG rectangle. |
protected void |
setSVGRoundCorner(SVGElement elt)
Sets the roundness of the SVG shape. |
SVGElement |
toSVG(SVGDocument document)
Creates an SVG element from the current latexdraw shape. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected LRectangleSVGGenerator(IRectangle rect)
rect
- The rectangle shape used for the generation.
java.lang.IllegalArgumentException
- If rect is null.protected LRectangleSVGGenerator(SVGRectElement elt)
elt
- The source element.
java.lang.IllegalArgumentException
- If the given element is null.protected LRectangleSVGGenerator(SVGGElement elt)
elt
- The G SVG element used for the creation of a rectangle.
java.lang.IllegalArgumentException
- If the given element is null.protected LRectangleSVGGenerator(SVGGElement elt, boolean withTransformation)
elt
- The source element.
java.lang.IllegalArgumentException
- If the given element is null or not valid.Method Detail |
---|
protected void initRectangle(SVGGElement elt, boolean withTransformation)
elt
- The source element.
java.lang.IllegalArgumentException
- If the given element is null or not valid.protected void setSVGRectParameters(SVGRectElement elt)
elt
- The SVG rectangle used to set the latexdraw rectangle.public SVGElement toSVG(SVGDocument document)
LShapeSVGGenerator
toSVG
in class LShapeSVGGenerator<IRectangle>
document
- The SVG document.
protected void setSVGRoundCorner(SVGElement elt)
elt
- The SVG element into which the roundness must be set.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |