From a2a5df4aa0ea8b59c3ef76c3ebf10b674c0a1c50 Mon Sep 17 00:00:00 2001 From: "cmzmasek@gmail.com" Date: Thu, 3 Nov 2011 06:05:25 +0000 Subject: [PATCH] Edited wiki page forester through web user interface. --- wiki/forester.wiki | 28 +++++++++++++++++++--------- 1 file changed, 19 insertions(+), 9 deletions(-) diff --git a/wiki/forester.wiki b/wiki/forester.wiki index 4967db6..392bd43 100644 --- a/wiki/forester.wiki +++ b/wiki/forester.wiki @@ -298,15 +298,25 @@ public class phylo2graphics { config.putDisplayColors(TreeColorSet.BRANCH, new Color(0, 0, 0)); config.putDisplayColors(TreeColorSet.TAXONOMY, new Color(0, 0, 0)); config.setPhylogenyGraphicsType( - Options.PHYLOGENY_GRAPHICS_TYPE.RECTANGULAR); - - AptxUtil.writePhylogenyToGraphicsFile( - new File("my_tree.xml"), - new File("my_tree.png"), - 800, // width - 1000, // height - GraphicsExportType.PNG, - config); + Options.PHYLOGENY_GRAPHICS_TYPE.RECTANGULAR); + + AptxUtil.writePhylogenyToGraphicsFile(new File("my_tree.xml"), + new File("my_tree.png"), + 800, // width + 1000, // height + GraphicsExportType.PNG, + config); + + + // If the tree 'phy' already exists, can also use this: + // AptxUtil.writePhylogenyToGraphicsFile(phy, + // new File( + // "out.png"), + // 800, + // 1000, + // GraphicsExportType.PNG, + // config); + } catch (IOException e) { e.printStackTrace(); -- 1.7.10.2