JavaScript is disabled on your browser.
Skip navigation links

Package org.jfree.svg

Core classes for generating SVG (Scalable Vector Graphics) output from Java2D graphics operations.

See: Description

Package org.jfree.svg Description

Core classes for generating SVG (Scalable Vector Graphics) output from Java2D graphics operations. The primary entry point is SVGGraphics2D, a Graphics2D implementation that intercepts standard Java2D drawing calls and produces corresponding SVG elements.

This is a fork of JFreeSVG 4.1 bundled with the I2P+ router for rendering RRD graphs and other visualizations to SVG format. Key modifications include glow path emission and custom rendering hint handling.

Key Components

Usage

Create an SVGGraphics2D instance with the desired dimensions, use standard Java2D API calls to render content, then retrieve the SVG output:

    SVGGraphics2D g2 = new SVGGraphics2D(300, 200);
    g2.setPaint(Color.RED);
    g2.draw(new Rectangle(10, 10, 280, 180));
    String svgElement = g2.getSVGElement();

Related Packages

Since 4.1 (I2P+ fork)

Skip navigation links