com.mebigfatguy.polycasso
Class JavaSaver

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

public class JavaSaver
extends java.lang.Object
implements Saver

generates a java source code that draws the image with polygons in a JFrame


Constructor Summary
JavaSaver()
           
 
Method Summary
 void save(java.lang.String fileName, java.awt.Dimension imageSize, PolygonData[] data)
          saves the polygon data as a java file that opens a JFrame and draws the polygons
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JavaSaver

public JavaSaver()
Method Detail

save

public void save(java.lang.String fileName,
                 java.awt.Dimension imageSize,
                 PolygonData[] data)
          throws java.io.IOException
saves the polygon data as a java file that opens a JFrame and draws the polygons

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.