public abstract class SVGwritter extends Object
Written svg object must be close by /svg tag manually.
Modifier and Type | Class and Description |
---|---|
static class |
SVGwritter.Qcircle
Represent circle on SVG image.
|
static class |
SVGwritter.Qline
Represent line on SVG image.
|
static class |
SVGwritter.QPolarAxes
Create axes in polar coordinates.
|
static class |
SVGwritter.QScaleBar
Plot scale bar on svg.
|
static class |
SVGwritter.Qtext
Represent text on SVG image.
|
Constructor and Description |
---|
SVGwritter() |
Modifier and Type | Method and Description |
---|---|
abstract void |
draw(PrintWriter osw)
Write to file svg definition of frawn object.
|
static void |
writeHeader(PrintWriter osw,
Rectangle d)
Generate typical header.
|
public static void writeHeader(PrintWriter osw, Rectangle d) throws IOException
osw
- file to writed
- bounding boxIOException
- on file errorpublic abstract void draw(PrintWriter osw) throws IOException
osw
- file to writeIOException
- on file errorCopyright © 2002–2019 Department of Computer Science, Warwick University. All rights reserved.