Edited wiki page forester through web user interface.
authorcmzmasek@gmail.com <cmzmasek@gmail.com@ca865154-3058-d1c3-3e42-d8f55a55bdbd>
Thu, 3 Nov 2011 06:05:25 +0000 (06:05 +0000)
committercmzmasek@gmail.com <cmzmasek@gmail.com@ca865154-3058-d1c3-3e42-d8f55a55bdbd>
Thu, 3 Nov 2011 06:05:25 +0000 (06:05 +0000)
wiki/forester.wiki

index 4967db6..392bd43 100644 (file)
@@ -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();