public class SVGParser extends Object
Modifier and Type | Field and Description |
---|---|
SVGHandler.SVGDefs |
defs |
float |
height |
float |
width |
Constructor and Description |
---|
SVGParser() |
Modifier and Type | Method and Description |
---|---|
static String |
dequote(String token) |
static SVG |
parse(InputStream svgData,
int baseWidth,
float scale) |
static SVG |
parse(String svgData,
int baseWidth,
float scale) |
void |
preparse(InputStream in,
int baseWidth,
int baseHeight) |
static void |
render(InputStream in,
int x,
int y,
float width,
float height,
int baseWidth,
int baseHeight,
Graphics2D g,
SVGParser parser) |
static void |
render(String svgData,
int x,
int y,
float width,
float height,
int baseWidth,
int baseHeight,
Graphics2D g,
SVGParser parser) |
FontMetrics |
setFont(Graphics2D device,
String fontName,
Float fontSize,
String fontStyle,
String fontWeight,
String text,
boolean idleMode) |
public float width
public float height
public SVGHandler.SVGDefs defs
public static SVG parse(InputStream svgData, int baseWidth, float scale) throws SVGParseException
SVGParseException
public static SVG parse(String svgData, int baseWidth, float scale) throws SVGParseException
SVGParseException
public static void render(String svgData, int x, int y, float width, float height, int baseWidth, int baseHeight, Graphics2D g, SVGParser parser) throws SVGParseException
SVGParseException
public static void render(InputStream in, int x, int y, float width, float height, int baseWidth, int baseHeight, Graphics2D g, SVGParser parser) throws SVGParseException
SVGParseException
public void preparse(InputStream in, int baseWidth, int baseHeight) throws SVGParseException
SVGParseException
public FontMetrics setFont(Graphics2D device, String fontName, Float fontSize, String fontStyle, String fontWeight, String text, boolean idleMode)
Revision 4.0.15 / 20220727-0149