|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.latexdraw.parsers.svg.parsers.Shape2D2SVG<S,T>
S
- The type of the shape to convert.T
- The type of the SVG element to create.public abstract class Shape2D2SVG<S extends java.awt.Shape,T extends SVGElement>
This abstract converter converts a Java Shape into an SVG 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/03/11
Field Summary | |
---|---|
protected SVGDocument |
document
The SVG document that will be used to create SVG elements. |
protected T |
element
The generated SVG element. |
protected S |
shape
The Java shape to convert. |
Constructor Summary | |
---|---|
Shape2D2SVG(S shape,
SVGDocument document)
Creates the converter. |
Method Summary | |
---|---|
T |
getSVGElement()
|
void |
setDocument(SVGDocument document)
Sets the SVG document that will be used to create SVG elements. |
void |
setShape(S shape)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface net.sf.latexdraw.parsers.Parser |
---|
parse |
Field Detail |
---|
protected S extends java.awt.Shape shape
protected T extends SVGElement element
protected SVGDocument document
Constructor Detail |
---|
public Shape2D2SVG(S shape, SVGDocument document)
shape
- The shape to convert.document
- The document used to create SVG elements.Method Detail |
---|
public T getSVGElement()
public void setDocument(SVGDocument document)
document
- The new SVG document.public void setShape(S shape)
shape
- The shape to convert. Must not be null.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |