X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=src%2Fjalview%2Fapi%2FAlignViewportI.java;h=8b0734035cef58585f485ec3870fe0fb2d868f34;hb=fc4aebb30bebcd7582b549053a353e528119a5fe;hp=6cdc998cb380dc4b51d75fa6675f1d9f08fa5516;hpb=2baf7a0fe3faf4133a387359b8ce2ba475176eec;p=jalview.git diff --git a/src/jalview/api/AlignViewportI.java b/src/jalview/api/AlignViewportI.java index 6cdc998..8b07340 100644 --- a/src/jalview/api/AlignViewportI.java +++ b/src/jalview/api/AlignViewportI.java @@ -33,7 +33,7 @@ import jalview.datamodel.SequenceGroup; import jalview.datamodel.SequenceI; import jalview.renderer.ResidueShaderI; import jalview.schemes.ColourSchemeI; -import jalview.viewmodel.ViewportPositionProps; +import jalview.viewmodel.ViewportRanges; import java.awt.Color; import java.util.Hashtable; @@ -47,11 +47,13 @@ import java.util.Map; public interface AlignViewportI extends ViewStyleI { - ViewportPositionProps getPosProps(); - - int getEndRes(); - - int getStartRes(); + /** + * Get the ranges object containing details of the start and end sequences and + * residues + * + * @return + */ + public ViewportRanges getRanges(); /** * calculate the height for visible annotation, revalidating bounds where @@ -124,6 +126,13 @@ public interface AlignViewportI extends ViewStyleI AlignmentAnnotation getAlignmentConsensusAnnotation(); /** + * get the container for alignment gap annotation + * + * @return + */ + AlignmentAnnotation getAlignmentGapAnnotation(); + + /** * get the container for cDNA complement consensus annotation * * @return @@ -461,8 +470,4 @@ public interface AlignViewportI extends ViewStyleI * @return search results or null */ SearchResultsI getSearchResults(); - - int getStartSeq(); - - int getEndSeq(); }