JAL-2805 JAL-281 JAL-2847 set tree file made public as well (heh)
[jalview.git] / forester / java / src / org / forester / archaeopteryx / AptxUtil.java
index a2cf351..57e9e78 100644 (file)
@@ -89,7 +89,9 @@ public final class AptxUtil {
                                            JPG( "jpg" ),
                                            PDF( "pdf" ),
                                            PNG( "png" ),
+                                           EPS("eps"),
                                            TIFF( "tif" );
+            
 
         private final String _suffix;
 
@@ -1085,6 +1087,9 @@ public final class AptxUtil {
         if ( type == GraphicsExportType.TIFF ) {
             writeToTiff( file, buffered_img );
         }
+        else if (type == GraphicsExportType.EPS) {
+            writeToEps();
+        }
         else {
             ImageIO.write( buffered_img, type.toString(), file );
         }
@@ -1099,6 +1104,9 @@ public final class AptxUtil {
         }
         return msg;
     }
+    final static void writeToEps() {
+        
+    }
 
     final static void writeToTiff( final File file, final BufferedImage image ) throws IOException {
         // See: http://log.robmeek.com/2005/08/write-tiff-in-java.html