From: kjvdheide Date: Fri, 2 Feb 2018 14:04:13 +0000 (+0000) Subject: JAL-2826 added isCollapsed boolean to tree nodes X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=633e4309c4882341f8b0acae78e5718849a559de;p=jalview.git JAL-2826 added isCollapsed boolean to tree nodes --- 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);