Merge remote-tracking branch 'origin/develop' into
[jalview.git] / src / jalview / api / AlignViewportI.java
index 2dea15e..324e6ca 100644 (file)
@@ -354,4 +354,27 @@ public interface AlignViewportI
 
   boolean hasHiddenRows();
 
+  /**
+   * Returns a viewport which holds the cDna for this (protein), or vice versa,
+   * or null if none is set.
+   * 
+   * @return
+   */
+  AlignViewportI getCodingComplement();
+
+
+  /**
+   * Sets the viewport which holds the cDna for this (protein), or vice versa.
+   * Implementation should guarantee that the reciprocal relationship is always
+   * set, i.e. each viewport is the complement of the other.
+   */
+  void setCodingComplement(AlignViewportI sl);
+
+  /**
+   * Answers true if viewport hosts DNA/RNA, else false.
+   * 
+   * @return
+   */
+  boolean isNucleotide();
+
 }