public class SVGAdaptor extends GraphicsAdaptor
GraphicsAdaptor for the SVG format.| Modifier and Type | Field and Description |
|---|---|
protected Document |
document
The SVG document representation, may be used in sub-classes for different
Transcoders |
protected SVGGraphics2D |
graphics
The internal graphics object
|
| Constructor and Description |
|---|
SVGAdaptor()
Creates a new adaptor for plotting to an SVG device.
|
| Modifier and Type | Method and Description |
|---|---|
void |
generateOutput(File file)
Generates the outputs and saves the results to the supplied file.
|
Graphics2D |
getGraphics(int width,
int height)
Returns a
Graphics2D object for this GraphicsAdaptor of the given width and height. |
String |
getGraphicsExtension()
Returns the file extension for the graphics file format of this
GraphicsAdaptor. |
generateOutputprotected SVGGraphics2D graphics
protected Document document
Transcoderspublic SVGAdaptor()
public Graphics2D getGraphics(int width, int height)
GraphicsAdaptorGraphics2D object for this GraphicsAdaptor of the given width and height.
This object may be used for plotting using the standard Graphics2D methods.getGraphics in class GraphicsAdaptorwidth - the widthheight - the heightGraphics2D objectpublic void generateOutput(File file) throws IOException
GraphicsAdaptorgenerateOutput in class GraphicsAdaptorfile - the fileIOException - if the output could not be writtenpublic String getGraphicsExtension()
GraphicsAdaptorGraphicsAdaptor.getGraphicsExtension in class GraphicsAdaptor