|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.mebigfatguy.polycasso.JavaSaver
public class JavaSaver
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 |
---|
public JavaSaver()
Method Detail |
---|
public void save(java.lang.String fileName, java.awt.Dimension imageSize, PolygonData[] data) throws java.io.IOException
save
in interface Saver
fileName
- the name of the file to write toimageSize
- the dimension of the imagedata
- the polygons to draw
java.io.IOException
- if the file can't be saved
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |