JAL-1684 fix bug in AlignmentView constructor
[jalview.git] / src / jalview / api / AlignViewportI.java
index 7f8ffb1..c49ee39 100644 (file)
@@ -1,6 +1,6 @@
 /*
- * Jalview - A Sequence Alignment Editor and Viewer (Version 2.8.2)
- * Copyright (C) 2014 The Jalview Authors
+ * Jalview - A Sequence Alignment Editor and Viewer ($$Version-Rel$$)
+ * Copyright (C) $$Year-Rel$$ The Jalview Authors
  * 
  * This file is part of Jalview.
  * 
@@ -75,6 +75,13 @@ public interface AlignViewportI extends ViewStyleI
 
   Hashtable[] getSequenceConsensusHash();
 
+  /**
+   * Get consensus data table for the cDNA complement of this alignment (if any)
+   * 
+   * @return
+   */
+  Hashtable[] getComplementConsensusHash();
+
   Hashtable[] getRnaStructureConsensusHash();
 
   boolean isIgnoreGapsConsensus();
@@ -93,6 +100,13 @@ public interface AlignViewportI extends ViewStyleI
   AlignmentAnnotation getAlignmentConsensusAnnotation();
 
   /**
+   * get the container for cDNA complement consensus annotation
+   * 
+   * @return
+   */
+  AlignmentAnnotation getComplementConsensusAnnotation();
+
+  /**
    * Test to see if viewport is still open and active
    * 
    * @return true indicates that all references to viewport should be dropped
@@ -120,6 +134,13 @@ public interface AlignViewportI extends ViewStyleI
   void setSequenceConsensusHash(Hashtable[] hconsensus);
 
   /**
+   * Set the cDNA complement consensus for the viewport
+   * 
+   * @param hconsensus
+   */
+  void setComplementConsensusHash(Hashtable[] hconsensus);
+
+  /**
    * 
    * @return the alignment annotatino row for the structure consensus
    *         calculation
@@ -385,4 +406,11 @@ public interface AlignViewportI extends ViewStyleI
    * @return
    */
   boolean isNucleotide();
+
+  /**
+   * Returns an id guaranteed to be unique for this viewport.
+   * 
+   * @return
+   */
+  String getViewId();
 }