org.foray.graphic.output
Class SvgJava2d

java.lang.Object
  extended by org.foray.graphic.output.GraphicOutput4a
      extended by org.foray.graphic.output.GraphicJava2d4a
          extended by org.foray.graphic.output.SvgJava2d
All Implemented Interfaces:
org.axsl.graphic.output.GraphicJava2d, org.axsl.graphic.output.GraphicOutput

public class SvgJava2d
extends GraphicJava2d4a

Helper class for applications using SVG in Java2d output.


Method Summary
 void drawGraphic(Graphics2D graphics, Rectangle2D.Float contentRectangle)
           
 SVGGraphic getGraphic()
           
protected  org.apache.batik.gvt.GraphicsNode getGraphicsNode(org.w3c.dom.svg.SVGDocument doc)
          Returns the Batik GraphicsNode to be used.
 org.apache.commons.logging.Log getLogger()
          Returns the logger.
 org.apache.batik.bridge.BridgeContext makeBridgeContextAWT()
          Creates a BridgeContext instance suitable for use by Batik when rendering an SVG graphic in an AWT environment.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getGraphic

public SVGGraphic getGraphic()

drawGraphic

public void drawGraphic(Graphics2D graphics,
                        Rectangle2D.Float contentRectangle)
                 throws org.axsl.graphic.GraphicException
Throws:
org.axsl.graphic.GraphicException

getGraphicsNode

protected org.apache.batik.gvt.GraphicsNode getGraphicsNode(org.w3c.dom.svg.SVGDocument doc)
Returns the Batik GraphicsNode to be used.

Parameters:
doc - The SVG document.
Returns:
The Batik GraphicsNode.

makeBridgeContextAWT

public org.apache.batik.bridge.BridgeContext makeBridgeContextAWT()
Creates a BridgeContext instance suitable for use by Batik when rendering an SVG graphic in an AWT environment.

Returns:
A Batik BridgeContext instance.

getLogger

public org.apache.commons.logging.Log getLogger()
Returns the logger.

Returns:
The logger.


Copyright © 2017. All rights reserved.