From 633e4309c4882341f8b0acae78e5718849a559de Mon Sep 17 00:00:00 2001 From: kjvdheide Date: Fri, 2 Feb 2018 14:04:13 +0000 Subject: [PATCH] JAL-2826 added isCollapsed boolean to tree nodes --- src/jalview/ext/archaeopteryx/TreeNode.java | 6 ++++++ src/jalview/ext/treeviewer/TreeNodeI.java | 2 ++ 2 files changed, 8 insertions(+) diff --git a/src/jalview/ext/archaeopteryx/TreeNode.java b/src/jalview/ext/archaeopteryx/TreeNode.java index 752826b..0844171 100644 --- a/src/jalview/ext/archaeopteryx/TreeNode.java +++ b/src/jalview/ext/archaeopteryx/TreeNode.java @@ -247,4 +247,10 @@ public class TreeNode implements TreeNodeI return node.getYcoord(); } + @Override + public boolean isCollapsed() + { + return node.isCollapse(); + } + } diff --git a/src/jalview/ext/treeviewer/TreeNodeI.java b/src/jalview/ext/treeviewer/TreeNodeI.java index d14f97f..33cb080 100644 --- a/src/jalview/ext/treeviewer/TreeNodeI.java +++ b/src/jalview/ext/treeviewer/TreeNodeI.java @@ -50,6 +50,8 @@ public interface TreeNodeI */ public boolean isInternal(); + public boolean isCollapsed(); + public void setBranchColor(Color branchColor); public void setSequence(SequenceI seq); -- 1.7.10.2