X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=src%2Fjalview%2Fdatamodel%2FAlignmentView.java;fp=src%2Fjalview%2Fdatamodel%2FAlignmentView.java;h=6d6d4c3e7697568115263a70fd002a63ab1b5804;hb=5c1262f120d4fca072bc8fd9800a1a856cc46843;hp=e6604d1ef940cb2301e8678356d71d1b1c3f3fb2;hpb=2e85bf4a497748e05031bf27bad3e700ef5d6577;p=jalview.git diff --git a/src/jalview/datamodel/AlignmentView.java b/src/jalview/datamodel/AlignmentView.java index e6604d1..6d6d4c3 100644 --- a/src/jalview/datamodel/AlignmentView.java +++ b/src/jalview/datamodel/AlignmentView.java @@ -51,6 +51,37 @@ public class AlignmentView private boolean isNa = false; /** + * reference to the complementary CDS/Protein alignment for this alignment, if available + */ + private AlignmentView complementView=null; + + /** + * setter for + * @param complementView + */ + public void setComplement(AlignmentView complementView) + { + this.complementView = complementView; + + } + /** + * + * @return true if a complement is available + */ + public boolean hasComplementView() + { + return complementView!=null; + } + /** + * + * @return the complement view or null + */ + public AlignmentView getComplementView() + { + return complementView; + } + + /** * false if the view concerns peptides * * @return