From 52447a93973a70f3ff221323cc7237e612b22cc8 Mon Sep 17 00:00:00 2001 From: "cmzmasek@gmail.com" Date: Thu, 3 Nov 2011 06:09:40 +0000 Subject: [PATCH] in progress --- forester/java/src/org/forester/archaeopteryx/AptxUtil.java | 11 +++++++++++ 1 file changed, 11 insertions(+) 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() ); -- 1.7.10.2