JAL-845 implement alignment of protein to match cDNA alignment
[jalview.git] / src / jalview / api / SplitContainerI.java
index 22f5201..2abf4d8 100644 (file)
@@ -1,5 +1,9 @@
 package jalview.api;
 
+import jalview.datamodel.AlignmentI;
+
+import java.awt.Component;
+
 /**
  * Describes a visual container that can show two alignments.
  * 
@@ -16,6 +20,21 @@ public interface SplitContainerI
    * @param show
    */
   // TODO need an interface for AlignFrame?
-  void setComplementVisible(Object alignFrame, boolean show);
+  void setComplementVisible(Component alignFrame, boolean show);
+
+  /**
+   * Returns the alignment that is complementary to the one in the given
+   * AlignFrame, or null.
+   */
+  AlignmentI getComplement(Component af);
+
+  /**
+   * Returns the frame title for the alignment that is complementary to the one
+   * in the given AlignFrame, or null.
+   * 
+   * @param af
+   * @return
+   */
+  String getComplementTitle(Component af);
 
 }