X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=src%2Fjalview%2Fapi%2FAlignViewportI.java;h=6b3cbe812bebd57bc5052a8527f68fd6ba229531;hb=903aec15b7d5462d5637662b3f02d84de1b8a67b;hp=248bae2bba09a6de500722b2847a74940e82d26b;hpb=173f77ac7161e8866ddfe6b5689d61a83f459cfc;p=jalview.git diff --git a/src/jalview/api/AlignViewportI.java b/src/jalview/api/AlignViewportI.java index 248bae2..6b3cbe8 100644 --- a/src/jalview/api/AlignViewportI.java +++ b/src/jalview/api/AlignViewportI.java @@ -25,7 +25,6 @@ import jalview.analysis.TreeModel; import jalview.datamodel.AlignmentAnnotation; import jalview.datamodel.AlignmentI; import jalview.datamodel.AlignmentView; -import jalview.datamodel.CigarArray; import jalview.datamodel.ColumnSelection; import jalview.datamodel.ProfilesI; import jalview.datamodel.SearchResultsI; @@ -55,7 +54,7 @@ public interface AlignViewportI extends ViewStyleI * * @return */ - public ViewportRanges getRanges(); + ViewportRanges getRanges(); /** * calculate the height for visible annotation, revalidating bounds where @@ -63,7 +62,7 @@ public interface AlignViewportI extends ViewStyleI * * @return total height of annotation */ - public int calcPanelHeight(); + int calcPanelHeight(); /** * Answers true if the viewport has at least one column selected @@ -87,6 +86,12 @@ public interface AlignViewportI extends ViewStyleI boolean isNormaliseSequenceLogo(); + boolean isShowInformationHistogram(); + + boolean isShowHMMSequenceLogo(); + + boolean isNormaliseHMMSequenceLogo(); + ColourSchemeI getGlobalColourScheme(); /** @@ -101,7 +106,7 @@ public interface AlignViewportI extends ViewStyleI ColumnSelection getColumnSelection(); - ProfilesI getSequenceConsensusHash(); + ProfilesI getConsensusProfiles(); /** * Get consensus data table for the cDNA complement of this alignment (if any) @@ -114,6 +119,8 @@ public interface AlignViewportI extends ViewStyleI boolean isIgnoreGapsConsensus(); + boolean isIgnoreBelowBackground(); + boolean isCalculationInProgress(AlignmentAnnotation alignmentAnnotation); AlignmentAnnotation getAlignmentQualityAnnot(); @@ -132,7 +139,7 @@ public interface AlignViewportI extends ViewStyleI * * @return */ - AlignmentAnnotation getAlignmentGapAnnotation(); + AlignmentAnnotation getOccupancyAnnotation(); /** * get the container for cDNA complement consensus annotation @@ -171,7 +178,7 @@ public interface AlignViewportI extends ViewStyleI * * @param hconsensus */ - void setSequenceConsensusHash(ProfilesI hconsensus); + void setConsensusProfiles(ProfilesI hconsensus); /** * Set the cDNA complement consensus for the viewport @@ -244,16 +251,6 @@ public interface AlignViewportI extends ViewStyleI void clearSequenceColours(); /** - * This method returns the visible alignment as text, as seen on the GUI, ie - * if columns are hidden they will not be returned in the result. Use this for - * calculating trees, PCA, redundancy etc on views which contain hidden - * columns. - * - * @return String[] - */ - CigarArray getViewAsCigars(boolean selectedRegionOnly); - - /** * return a compact representation of the current alignment selection to pass * to an analysis function * @@ -391,14 +388,14 @@ public interface AlignViewportI extends ViewStyleI * * @return a copy of this view's current display settings */ - public ViewStyleI getViewStyle(); + ViewStyleI getViewStyle(); /** * update the view's display settings with the given style set * * @param settingsForView */ - public void setViewStyle(ViewStyleI settingsForView); + void setViewStyle(ViewStyleI settingsForView); /** * Returns a viewport which holds the cDna for this (protein), or vice versa, @@ -442,7 +439,7 @@ public interface AlignViewportI extends ViewStyleI */ void setFollowHighlight(boolean b); - public void applyFeaturesStyle(FeatureSettingsModelI featureSettings); + void applyFeaturesStyle(FeatureSettingsModelI featureSettings); /** * check if current selection group is defined on the view, or is simply a @@ -487,6 +484,7 @@ public interface AlignViewportI extends ViewStyleI * * @return */ + @Override boolean isProteinFontAsCdna(); /** @@ -494,9 +492,24 @@ public interface AlignViewportI extends ViewStyleI * * @return */ + @Override void setProteinFontAsCdna(boolean b); - public abstract TreeModel getCurrentTree(); + void setHmmProfiles(ProfilesI info); + + ProfilesI getHmmProfiles(); + + /** + * Registers and starts a worker thread to calculate Information Content + * annotation, if it is not already registered + * + * @param ap + */ + void initInformationWorker(AlignmentViewPanel ap); + + boolean isInfoLetterHeight(); + + abstract TreeModel getCurrentTree(); - public abstract void setCurrentTree(TreeModel tree); + abstract void setCurrentTree(TreeModel tree); }