class SVGRenderer extends Object
Modifier and Type | Field and Description |
---|---|
private XMLStreamWriter |
svgWriter |
Constructor and Description |
---|
SVGRenderer(String filename) |
Modifier and Type | Method and Description |
---|---|
void |
closeDocument() |
void |
endElement() |
void |
image(int x,
int y,
int imgWidth,
int imgHeight,
String imgUri) |
void |
line(int x1,
int x2,
int y1,
int y2) |
void |
rectangle(int x,
int y,
int width,
int height,
String color) |
void |
startGroupElement(long elementId) |
void |
text(int x,
int y,
int x1,
int y1,
String value,
String color,
double alpha) |
void |
text(int x,
int y,
String value,
String color) |
private XMLStreamWriter svgWriter
public SVGRenderer(String filename)
public void closeDocument() throws XMLStreamException
XMLStreamException
public void line(int x1, int x2, int y1, int y2) throws XMLStreamException
XMLStreamException
public void rectangle(int x, int y, int width, int height, String color) throws XMLStreamException
XMLStreamException
public void text(int x, int y, String value, String color) throws XMLStreamException
XMLStreamException
public void text(int x, int y, int x1, int y1, String value, String color, double alpha) throws XMLStreamException
XMLStreamException
public void image(int x, int y, int imgWidth, int imgHeight, String imgUri) throws XMLStreamException
XMLStreamException
public void startGroupElement(long elementId) throws XMLStreamException
XMLStreamException
public void endElement() throws XMLStreamException
XMLStreamException
Copyright © 2015. All Rights Reserved.