com.davisor.graphics
Class SVGGraphicsContext

java.lang.Object
  extended bycom.davisor.graphics.SVGGraphicsContext

Deprecated. Use SVGGraphics2D or SVGTools instead.

public class SVGGraphicsContext
extends java.lang.Object

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.

Since:
JDK1.2

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

domFactory

protected org.w3c.dom.Document domFactory
Deprecated. 
SVG XML document.


graphics

protected java.awt.Graphics2D graphics
Deprecated. 
Graphics2D.

Constructor Detail

SVGGraphicsContext

public SVGGraphicsContext()
Deprecated. 
Default constructor


SVGGraphicsContext

public SVGGraphicsContext(java.awt.Graphics2D graphics)
Deprecated. 
Constructs a new SVGGraphicsContext with the given SVGGraphics2D graphics context.

Parameters:
graphics - the graphics context
Throws:
java.lang.IllegalArgumentException - if the given graphics context is not an instance of com.davisor.graphics.svg.SVGGraphics2D class
See Also:
SVGGraphics2D
Method Detail

getGraphics

public java.awt.Graphics2D getGraphics()
Deprecated. 
Provides the graphics context for drawing.


setSVGCanvasSize

public void setSVGCanvasSize(java.awt.Dimension size)
Deprecated. 
Sets the SVG canvas size.


write

public void write(java.lang.String file)
           throws java.io.IOException
Deprecated. 
Writes the SVG graphics data into a file.

Parameters:
file - output file name
Throws:
java.io.IOException

write

public void write(java.io.OutputStream output)
           throws java.io.IOException
Deprecated. 
Writes the SVG graphics data into a stream.

Parameters:
output - output stream
Throws:
java.io.IOException

write

public void write(java.io.Writer writer)
           throws java.io.IOException
Deprecated. 
Writes the SVG graphics data using the specified Writer.

Throws:
java.io.IOException


Copyright © 2001-2004 Davisor Oy. All Rights Reserved.