From: cmzmasek@gmail.com Date: Thu, 3 Nov 2011 06:09:40 +0000 (+0000) Subject: in progress X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=52447a93973a70f3ff221323cc7237e612b22cc8;p=jalview.git in progress --- diff --git a/forester/java/src/org/forester/archaeopteryx/AptxUtil.java b/forester/java/src/org/forester/archaeopteryx/AptxUtil.java index 21a4ace..5d8c854 100644 --- a/forester/java/src/org/forester/archaeopteryx/AptxUtil.java +++ b/forester/java/src/org/forester/archaeopteryx/AptxUtil.java @@ -131,6 +131,17 @@ public final class AptxUtil { final PhylogenyParser parser = ParserUtils.createParserDependingOnFileType( intree, true ); Phylogeny[] phys = null; phys = PhylogenyMethods.readPhylogenies( parser, intree ); + writePhylogenyToGraphicsFile( phys[ 0 ], outfile, width, height, type, config ); + } + + public static void writePhylogenyToGraphicsFile( final Phylogeny phy, + final File outfile, + final int width, + final int height, + final GraphicsExportType type, + final Configuration config ) throws IOException { + final Phylogeny[] phys = new Phylogeny[ 1 ]; + phys[ 0 ] = phy; final MainFrameApplication mf = MainFrameApplication.createInstance( phys, config ); AptxUtil.writePhylogenyToGraphicsFileNonInteractive( outfile, width, height, mf.getMainPanel() .getCurrentTreePanel(), mf.getMainPanel().getControlPanel(), type, mf.getOptions() );