|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.davisor.graphics.SVGGraphicsContext
SVGGraphics2D or
SVGTools instead.
SVGGraphicsContext provides an interface to produce SVG XML documents. SVGGraphicsContext provides access to Java 2D compatible graphics context, which is able to encode its contents to a SVG XML document. This implementation uses the Batik SVG toolkit.
| Field Summary | |
protected org.w3c.dom.Document |
domFactory
Deprecated. SVG XML document. |
protected java.awt.Graphics2D |
graphics
Deprecated. Graphics2D. |
| Constructor Summary | |
SVGGraphicsContext()
Deprecated. Default constructor |
|
SVGGraphicsContext(java.awt.Graphics2D graphics)
Deprecated. Constructs a new SVGGraphicsContext with the given SVGGraphics2D graphics context. |
|
| Method Summary | |
java.awt.Graphics2D |
getGraphics()
Deprecated. Provides the graphics context for drawing. |
void |
setSVGCanvasSize(java.awt.Dimension size)
Deprecated. Sets the SVG canvas size. |
void |
write(java.io.OutputStream output)
Deprecated. Writes the SVG graphics data into a stream. |
void |
write(java.lang.String file)
Deprecated. Writes the SVG graphics data into a file. |
void |
write(java.io.Writer writer)
Deprecated. Writes the SVG graphics data using the specified Writer. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected org.w3c.dom.Document domFactory
protected java.awt.Graphics2D graphics
| Constructor Detail |
public SVGGraphicsContext()
public SVGGraphicsContext(java.awt.Graphics2D graphics)
graphics - the graphics context
java.lang.IllegalArgumentException - if the given graphics context is not
an instance of com.davisor.graphics.svg.SVGGraphics2D classSVGGraphics2D| Method Detail |
public java.awt.Graphics2D getGraphics()
public void setSVGCanvasSize(java.awt.Dimension size)
public void write(java.lang.String file)
throws java.io.IOException
file - output file name
java.io.IOException
public void write(java.io.OutputStream output)
throws java.io.IOException
output - output stream
java.io.IOException
public void write(java.io.Writer writer)
throws java.io.IOException
java.io.IOException
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||