From 3d5864a39739960c126f2ab5585162fd52d1f47d Mon Sep 17 00:00:00 2001 From: kjvdheide Date: Fri, 15 Dec 2017 20:01:36 +0000 Subject: [PATCH] JAL-1953 JAL-2852 added public "paintFile" method --- forester/java/src/org/forester/archaeopteryx/TreePanel.java | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/forester/java/src/org/forester/archaeopteryx/TreePanel.java b/forester/java/src/org/forester/archaeopteryx/TreePanel.java index c79908e..8b6c98b 100644 --- a/forester/java/src/org/forester/archaeopteryx/TreePanel.java +++ b/forester/java/src/org/forester/archaeopteryx/TreePanel.java @@ -5290,7 +5290,7 @@ public final class TreePanel extends JPanel implements ActionListener, MouseWhee && ( !node.isRoot() || ( _subtree_index > 0 ) ) ); } - final boolean isCurrentTreeIsSubtree() { + public final boolean isCurrentTreeIsSubtree() { return ( _subtree_index > 0 ); } @@ -5677,6 +5677,14 @@ public final class TreePanel extends JPanel implements ActionListener, MouseWhee paintCircularsLite( phy.getRoot(), phy, center_x, center_y, radius, g ); } + public final void paintFile( final Graphics2D g, + final boolean to_pdf, + final int graphics_file_width, + final int graphics_file_height, + final int graphics_file_x, + final int graphics_file_y ) { + paintPhylogeny(g,to_pdf,true,graphics_file_width,graphics_file_height,graphics_file_x,graphics_file_y); + } final void paintPhylogeny( final Graphics2D g, final boolean to_pdf, final boolean to_graphics_file, -- 1.7.10.2