X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=forester%2Fjava%2Fsrc%2Forg%2Fforester%2Farchaeopteryx%2FAptxUtil.java;h=57e9e78e43f562bf82559bf5a9dda6d02778d5c0;hb=5642da5f473ab9ae57fee86c0cb3b33525a2e916;hp=a2cf3516d021c0812d33034859598e31096c614e;hpb=718bd74aff29f5883486fc0ab8b54e1519ab51d0;p=jalview.git diff --git a/forester/java/src/org/forester/archaeopteryx/AptxUtil.java b/forester/java/src/org/forester/archaeopteryx/AptxUtil.java index a2cf351..57e9e78 100644 --- a/forester/java/src/org/forester/archaeopteryx/AptxUtil.java +++ b/forester/java/src/org/forester/archaeopteryx/AptxUtil.java @@ -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