JAL-2826 added isCollapsed boolean to tree nodes
authorkjvdheide <kjvanderheide@dundee.ac.uk>
Fri, 2 Feb 2018 14:04:13 +0000 (14:04 +0000)
committerkjvdheide <kjvanderheide@dundee.ac.uk>
Fri, 2 Feb 2018 14:04:13 +0000 (14:04 +0000)
src/jalview/ext/archaeopteryx/TreeNode.java
src/jalview/ext/treeviewer/TreeNodeI.java

index 752826b..0844171 100644 (file)
@@ -247,4 +247,10 @@ public class TreeNode implements TreeNodeI
     return node.getYcoord();
   }
 
+  @Override
+  public boolean isCollapsed()
+  {
+    return node.isCollapse();
+  }
+
 }
index d14f97f..33cb080 100644 (file)
@@ -50,6 +50,8 @@ public interface TreeNodeI
    */
   public boolean isInternal();
 
+  public boolean isCollapsed();
+
   public void setBranchColor(Color branchColor);
 
   public void setSequence(SequenceI seq);