[Ejtools-cvs] libraries/graph/src/main/org/ejtools/graph/frame GraphInternalFrame.java,1.5,1.6
Brought to you by:
letiemble
From: <let...@us...> - 2003-12-14 10:50:11
|
Update of /cvsroot/ejtools/libraries/graph/src/main/org/ejtools/graph/frame In directory sc8-pr-cvs1:/tmp/cvs-serv18699/graph/src/main/org/ejtools/graph/frame Modified Files: GraphInternalFrame.java Log Message: Add more javadocs. Adjust text export. Index: GraphInternalFrame.java =================================================================== RCS file: /cvsroot/ejtools/libraries/graph/src/main/org/ejtools/graph/frame/GraphInternalFrame.java,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** GraphInternalFrame.java 27 Nov 2003 00:53:32 -0000 1.5 --- GraphInternalFrame.java 13 Dec 2003 21:26:47 -0000 1.6 *************** *** 16,19 **** --- 16,20 ---- import java.util.TimerTask; + import javax.swing.JFileChooser; import javax.swing.JMenuBar; import javax.swing.JPanel; *************** *** 35,40 **** import org.ejtools.graph.service.GraphConsumer; import org.ejtools.graph.service.GraphProducer; ! import org.ejtools.util.export.CSVTools; ! import org.ejtools.util.export.PNGTools; /** --- 36,42 ---- import org.ejtools.graph.service.GraphConsumer; import org.ejtools.graph.service.GraphProducer; ! import org.ejtools.util.FileTools; ! import org.ejtools.util.export.CSVFileTools; ! import org.ejtools.util.export.PNGFileTools; /** *************** *** 123,130 **** { StringBuffer buffer = GraphInternalFrame.this.composite.getPointsAsText(); ! File file = CSVTools.selectCSVFile(); if (file != null) { ! CSVTools.exportAsCVS(buffer, file); } } --- 125,132 ---- { StringBuffer buffer = GraphInternalFrame.this.composite.getPointsAsText(); ! File file = FileTools.selectFile(resources.getString("file.dialog.title.export.csv"), resources.getString("file.dialog.button.export.csv"), JFileChooser.SAVE_DIALOG, CSVFileTools.CSV_FILE_FILTER); if (file != null) { ! CSVFileTools.exportAsCVS(buffer, file); } } *************** *** 136,144 **** public void execute() { ! BufferedImage image = PNGTools.paintAsPNG(GraphInternalFrame.this.printArea); ! File file = PNGTools.selectPNGFile(); if (file != null) { ! PNGTools.exportAsPNG(image, file); } } --- 138,146 ---- public void execute() { ! BufferedImage image = PNGFileTools.paintAsPNG(GraphInternalFrame.this.printArea); ! File file = FileTools.selectFile(resources.getString("file.dialog.title.export.png"), resources.getString("file.dialog.button.export.png"), JFileChooser.SAVE_DIALOG, PNGFileTools.PNG_FILE_FILTER); if (file != null) { ! PNGFileTools.exportAsPNG(image, file); } } |