See: Description
| Interface | Description |
|---|---|
| FontMapper | An object that can (optionally) translate one font family name to an alternative. |
| Class | Description |
|---|---|
| ImageElement | A (String, Image) pair that links together a reference ID and the source image. |
| StandardFontMapper | A default implementation of the FontMapper interface. |
| SVGGraphics2D | A Graphics2D implementation that creates SVG output. |
| SVGGraphicsConfiguration | A graphics configuration for the SVGGraphics2D class. |
| SVGGraphicsDevice | A graphics device for JFreeSVG. |
| SVGHints | Defines the rendering hints that can be used with the SVGGraphics2D class. |
| SVGHints.Key | A key for hints used by the SVGGraphics2D class. |
| SVGUtils | Utility methods related to the SVGGraphics2D implementation. |
| ViewBox | Represents a view box in SVG. |
| Enum | Description |
|---|---|
| MeetOrSlice | An enumeration of the values for the meetOrSlice attribute. |
| PreserveAspectRatio | An enumeration of the values for the preserveAspectRatio attribute. |
| SVGUnits | An enumeration of the values for SVG units. |
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.
SVGGraphics2D - Main Graphics2D implementation for SVG outputSVGHints - Custom rendering hints for SVG exportSVGUtils - Utility methods for writing SVG filesSVGGraphicsConfiguration - Graphics configurationSVGGraphicsDevice - Graphics device abstractionFontMapper - Interface for font family mappingStandardFontMapper - Default font mapper implementationViewBox, PreserveAspectRatio, MeetOrSlice, SVGUnits - SVG attribute value typesImageElement - External image reference trackingCreate 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();
org.jfree.svg.util - Utility classes for argument validation, shape copying, gradient paint keys, and fast double-to-string conversionSince 4.1 (I2P+ fork)