From d47a462ddd7bd3dd2a0529b6da03b220370c8ae5 Mon Sep 17 00:00:00 2001 From: jprocter Date: Tue, 18 Oct 2011 13:40:25 +0100 Subject: [PATCH] (Jalview 3) refactored Graphics2D annotation rendering to package shared by applet and application --- src/jalview/api/AlignViewportI.java | 66 +++++++++++++++++++++++++++++++++++ 1 file changed, 66 insertions(+) create mode 100644 src/jalview/api/AlignViewportI.java diff --git a/src/jalview/api/AlignViewportI.java b/src/jalview/api/AlignViewportI.java new file mode 100644 index 0000000..dd442f6 --- /dev/null +++ b/src/jalview/api/AlignViewportI.java @@ -0,0 +1,66 @@ +/** + * + */ +package jalview.api; + +import java.util.Hashtable; + +import jalview.datamodel.AlignmentAnnotation; +import jalview.datamodel.AlignmentI; +import jalview.datamodel.ColumnSelection; +import jalview.schemes.ColourSchemeI; + +/** + * @author jimp + * + */ +public interface AlignViewportI +{ + + int getCharWidth(); + + int getEndRes(); + + int getCharHeight(); + + boolean hasHiddenColumns(); + + boolean isValidCharWidth(); + + boolean isShowConsensusHistogram(); + + boolean isShowSequenceLogo(); + + boolean isNormaliseSequenceLogo(); + + ColourSchemeI getGlobalColourScheme(); + + AlignmentI getAlignment(); + + ColumnSelection getColumnSelection(); + + Hashtable[] getSequenceConsensusHash(); + + Hashtable[] getRnaStructureConsensusHash(); + + boolean getIgnoreGapsConsensus(); + + boolean getCentreColumnLabels(); + + boolean isCalculationInProgress(AlignmentAnnotation alignmentAnnotation); + + AlignmentAnnotation getAlignmentQualityAnnot(); + + AlignmentAnnotation getAlignmentConservationAnnotation(); + + /** + * Test to see if viewport is still open and active + * @return true indicates that all references to viewport should be dropped + */ + boolean isClosed(); + /** + * get the associated calculation thread manager for the view + * @return + */ + AlignCalcManagerI getCalcManager(); +} -- 1.7.10.2