com.mebigfatguy.polycasso
Class SVGSaver

java.lang.Object
  extended by com.mebigfatguy.polycasso.SVGSaver
All Implemented Interfaces:
Saver

public class SVGSaver
extends java.lang.Object
implements Saver

generates an svg file from the set of polygons


Constructor Summary
SVGSaver()
           
 
Method Summary
 void save(java.lang.String fileName, java.awt.Dimension imageSize, PolygonData[] data)
          saves the set of polygons in an svg file
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SVGSaver

public SVGSaver()
Method Detail

save

public void save(java.lang.String fileName,
                 java.awt.Dimension imageSize,
                 PolygonData[] data)
          throws java.io.IOException
saves the set of polygons in an svg file

Specified by:
save in interface Saver
Parameters:
fileName - the name of the file to write to
imageSize - the dimension of the image
data - the polygons to draw
Throws:
java.io.IOException - if the file can't be saved


Copyright © 2009-2010 MeBigFatGuy.com. All Rights Reserved.