From: herve.menager@gmail.com Date: Mon, 10 Oct 2011 10:02:57 +0000 (+0000) Subject: Allow to retrieve a snapshot of the edited phylogenetic tree using javascript code... X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=83a8b55648437acc36f0e82ec065db173304f97c;p=jalview.git Allow to retrieve a snapshot of the edited phylogenetic tree using javascript code, in order to be able to print or store it server-side. The ArchaeopteryxE class contains a getCurrentPhylogenyGraphicsAsBase64EncodedString public method which can be called from Javascript to retrieve the current image. This feature adds a dependency on the Apache common-codecs library (for base64 encoding). --- diff --git a/forester/.classpath b/forester/.classpath index 9899c02..8f3eef3 100644 --- a/forester/.classpath +++ b/forester/.classpath @@ -3,5 +3,6 @@ + diff --git a/forester/java/build.xml b/forester/java/build.xml index 93ad138..1492570 100644 --- a/forester/java/build.xml +++ b/forester/java/build.xml @@ -5,6 +5,7 @@ + @@ -33,7 +34,7 @@ - + @@ -55,6 +56,14 @@ + + + + + + + + 0 ) && ( height > 0 ) ) { + msg += " [size: " + width + ", " + height + "]"; + } + return msg; + } + final static void writeToTiff( final File file, final BufferedImage image ) throws IOException { // See: http://log.robmeek.com/2005/08/write-tiff-in-java.html ImageWriter writer = null;