[Polycasso-commit] SF.net SVN: polycasso:[167] trunk/polycasso/src/com/mebigfatguy/polycasso/ JavaS
Brought to you by:
dbrosius
|
From: <dbr...@us...> - 2009-12-10 04:08:55
|
Revision: 167
http://polycasso.svn.sourceforge.net/polycasso/?rev=167&view=rev
Author: dbrosius
Date: 2009-12-10 04:08:45 +0000 (Thu, 10 Dec 2009)
Log Message:
-----------
javadoc
Modified Paths:
--------------
trunk/polycasso/src/com/mebigfatguy/polycasso/JavaSaver.java
Modified: trunk/polycasso/src/com/mebigfatguy/polycasso/JavaSaver.java
===================================================================
--- trunk/polycasso/src/com/mebigfatguy/polycasso/JavaSaver.java 2009-12-09 05:09:57 UTC (rev 166)
+++ trunk/polycasso/src/com/mebigfatguy/polycasso/JavaSaver.java 2009-12-10 04:08:45 UTC (rev 167)
@@ -31,11 +31,21 @@
import org.apache.commons.io.IOUtils;
+/**
+ * generates a java source code that draws the image with polygons in a JFrame
+ */
public class JavaSaver implements Saver {
private static final String EXTENSION = ".java";
private static final String TABS = "\t\t\t\t\t\t";
+ /**
+ * saves the polygon data as a java file that opens a JFrame and draws the polygons
+ *
+ * @param fileName the name of the file to write to
+ * @param imageSize the dimension of the image
+ * @param data the polygons to draw
+ */
@Override
public void save(String fileName, Dimension imageSize, PolygonData[] data)
throws IOException {
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|