public class SvgUtil
extends java.lang.Object
| 构造器和说明 |
|---|
SvgUtil() |
| 限定符和类型 | 方法和说明 |
|---|---|
static <T extends org.w3c.dom.Node> |
convertElemToSVG(T element) |
static java.awt.image.BufferedImage |
renderToImage(org.w3c.dom.Document document,
int width,
int height) |
static java.awt.image.BufferedImage |
renderToImage(org.w3c.dom.Document document,
int width,
int height,
boolean stretch) |
static java.awt.image.BufferedImage |
renderToImage(java.lang.String uri,
int width,
int height) |
static java.awt.image.BufferedImage |
renderToImage(java.lang.String uri,
int width,
int height,
boolean stretch,
java.lang.String idRegex,
java.awt.Color replacementColor) |
static java.awt.image.BufferedImage |
renderXMLToImage(java.lang.String xmlContent,
int width,
int height) |
static java.awt.image.BufferedImage |
renderXMLToImage(java.lang.String xmlContent,
int width,
int height,
boolean stretch,
java.lang.String idRegex,
java.awt.Color replacementColor) |
static void |
replaceFill(org.w3c.dom.Document document,
java.lang.String idRegex,
java.awt.Color color) |
public static <T extends org.w3c.dom.Node> java.lang.String convertElemToSVG(T element)
public static java.awt.image.BufferedImage renderXMLToImage(java.lang.String xmlContent,
int width,
int height)
throws java.io.IOException
java.io.IOExceptionpublic static java.awt.image.BufferedImage renderXMLToImage(java.lang.String xmlContent,
int width,
int height,
boolean stretch,
java.lang.String idRegex,
java.awt.Color replacementColor)
throws java.io.IOException
java.io.IOExceptionpublic static java.awt.image.BufferedImage renderToImage(java.lang.String uri,
int width,
int height)
throws java.io.IOException
java.io.IOExceptionpublic static java.awt.image.BufferedImage renderToImage(java.lang.String uri,
int width,
int height,
boolean stretch,
java.lang.String idRegex,
java.awt.Color replacementColor)
throws java.io.IOException
java.io.IOExceptionpublic static java.awt.image.BufferedImage renderToImage(org.w3c.dom.Document document,
int width,
int height)
public static void replaceFill(org.w3c.dom.Document document,
java.lang.String idRegex,
java.awt.Color color)
public static java.awt.image.BufferedImage renderToImage(org.w3c.dom.Document document,
int width,
int height,
boolean stretch)