|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jfree.graphics2d.svg.SVGUtils
public class SVGUtils
Utility methods related to the SVGGraphics2D implementation.
| Method Summary | |
|---|---|
static String |
escapeForXML(String source)
Returns a new string where any special characters in the source string have been encoded. |
static void |
writeToHTML(File file,
String title,
String svgElement)
Writes an HTML file containing an SVG element. |
static void |
writeToSVG(File file,
String svgElement)
Writes a file containing the SVG element. |
static void |
writeToSVG(File file,
String svgElement,
boolean zip)
Writes a file containing the SVG element. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static String escapeForXML(String source)
source - the source string (null not permitted).
public static void writeToSVG(File file,
String svgElement)
throws IOException
file - the file (null not permitted).svgElement - the SVG element (null not permitted).
IOException - if there is an I/O problem.
public static void writeToSVG(File file,
String svgElement,
boolean zip)
throws IOException
file - the file (null not permitted).svgElement - the SVG element (null not permitted).zip - compress the output.
IOException - if there is an I/O problem.
public static void writeToHTML(File file,
String title,
String svgElement)
throws IOException
file - the file.title - the title.svgElement - the SVG element.
IOException - if there is an I/O problem.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||