JAL-1944 updated bugfix implementation
[jalview.git] / src / jalview / api / AlignViewportI.java
index b4d2592..9d5c075 100644 (file)
@@ -178,7 +178,7 @@ public interface AlignViewportI extends ViewStyleI
    */
   void updateGroupAnnotationSettings(boolean applyGlobalSettings,
           boolean preserveNewGroupSettings);
-  
+
   void setSequenceColour(SequenceI seq, Color col);
 
   Color getSequenceColour(SequenceI seq);
@@ -240,6 +240,19 @@ public interface AlignViewportI extends ViewStyleI
    * @return String[]
    */
   String[] getViewAsString(boolean selectedRegionOnly);
+  
+  /**
+   * 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. However, If
+   * there are hidden sequences, isExportHiddenSeqs flag decides if they would
+   * be exported or not. Use this for calculating trees, PCA, redundancy etc on
+   * views which contain hidden columns.
+   * 
+   * @param selectedRegionOnly
+   * @param isExportHiddenSeqs
+   * @return String[]
+   */
+  String[] getViewAsString(boolean selectedRegionOnly, boolean isExportHiddenSeqs);
 
   void setSelectionGroup(SequenceGroup sg);
 
@@ -251,8 +264,11 @@ public interface AlignViewportI extends ViewStyleI
 
   /**
    * get a copy of the currently visible alignment annotation
-   * @param selectedOnly if true - trim to selected regions on the alignment
-   * @return an empty list or new alignment annotation objects shown only visible columns trimmed to selected region only
+   * 
+   * @param selectedOnly
+   *          if true - trim to selected regions on the alignment
+   * @return an empty list or new alignment annotation objects shown only
+   *         visible columns trimmed to selected region only
    */
   List<AlignmentAnnotation> getVisibleAlignmentAnnotation(
           boolean selectedOnly);
@@ -373,8 +389,6 @@ public interface AlignViewportI extends ViewStyleI
    */
   void setFollowHighlight(boolean b);
 
-  public FeatureRenderer getFeatureRenderer();
-
-  public void setFeatureRenderer(FeatureRenderer featureRenderer);
 
+  public void applyFeaturesStyle(FeatureSettingsModelI featureSettings);
 }