net.abriraqui.dm4.importexport
Class SVGRenderer

Show UML class diagram
java.lang.Object
  extended by net.abriraqui.dm4.importexport.SVGRenderer

 class SVGRenderer
extends Object


Field Summary
private  XMLStreamWriter svgWriter
           
 
Constructor Summary
SVGRenderer(String filename)
           
 
Method Summary
 void closeDocument()
           
 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 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)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

svgWriter

private XMLStreamWriter svgWriter
Constructor Detail

SVGRenderer

public SVGRenderer(String filename)
Method Detail

closeDocument

public void closeDocument()
                   throws XMLStreamException
Throws:
XMLStreamException

line

public void line(int x1,
                 int x2,
                 int y1,
                 int y2)
          throws XMLStreamException
Throws:
XMLStreamException

rectangle

public void rectangle(int x,
                      int y,
                      int width,
                      int height,
                      String color)
               throws XMLStreamException
Throws:
XMLStreamException

text

public void text(int x,
                 int y,
                 String value,
                 String color)
          throws XMLStreamException
Throws:
XMLStreamException

text

public void text(int x,
                 int y,
                 int x1,
                 int y1,
                 String value,
                 String color,
                 double alpha)
          throws XMLStreamException
Throws:
XMLStreamException

image

public void image(int x,
                  int y,
                  int imgWidth,
                  int imgHeight,
                  String imgUri)
           throws XMLStreamException
Throws:
XMLStreamException


Copyright © 2014. All Rights Reserved.