package jalview.api;
+import jalview.datamodel.AlignmentI;
+
+import java.awt.Component;
+
/**
* Describes a visual container that can show two alignments.
*
* @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);
}