org.apache.batik.svggen

Class SVGRectangle

public class SVGRectangle extends SVGGraphicObjectConverter

Utility class that converts a Rectangle2D or RoundRectangle2D object into an SVG element.
Constructor Summary
SVGRectangle(SVGGeneratorContext generatorContext)
Method Summary
ElementtoSVG(Rectangle2D rect)
ElementtoSVG(RoundRectangle2D rect)
In the Java 2D API, arc width/height are used as absolute values.

Constructor Detail

SVGRectangle

public SVGRectangle(SVGGeneratorContext generatorContext)

Parameters: generatorContext used to build Elements

Method Detail

toSVG

public Element toSVG(Rectangle2D rect)

Parameters: rect rectangle object to convert to SVG

toSVG

public Element toSVG(RoundRectangle2D rect)
In the Java 2D API, arc width/height are used as absolute values.

Parameters: rect rectangle object to convert to SVG

Copyright B) 2008 Apache Software Foundation. All Rights Reserved.