From: cmzmasek@gmail.com Date: Thu, 3 Nov 2011 06:05:25 +0000 (+0000) Subject: Edited wiki page forester through web user interface. X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=a2a5df4aa0ea8b59c3ef76c3ebf10b674c0a1c50;p=jalview.git Edited wiki page forester through web user interface. --- 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();