* @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);
*/
void setFollowHighlight(boolean b);
- /**
- * Set whether hidden Sequences should be trimmed off during an export
- * operation.
- *
- * @param isExportHiddenSeqs
- */
- public void setExportHiddenSeqs(boolean isExportHiddenSeqs);
-
- /**
- * If true hidden Sequences are exported otherwise they aren't
- *
- * @return
- */
- public boolean isExportHiddenSeqs();
public void applyFeaturesStyle(FeatureSettingsModelI featureSettings);
}
if (viewport.hasHiddenColumns() && !settings.isExportHiddenColumns())
{
- viewport.setExportHiddenSeqs(settings.isExportHiddenSequences());
- omitHidden = viewport.getViewAsString(false);
+ omitHidden = viewport.getViewAsString(false,
+ settings.isExportHiddenSequences());
}
int[] alignmentStartEnd = new int[2];
@Override
public String[] getViewAsString(boolean selectedRegionOnly)
{
+ return getViewAsString(selectedRegionOnly, true);
+ }
+
+ @Override
+ public String[] getViewAsString(boolean selectedRegionOnly,
+ boolean isExportHiddenSeqs)
+ {
String[] selection = null;
SequenceI[] seqs = null;
int i, iSize;
}
}
- private boolean isExportHiddenSeqs = true;
- @Override
- public void setExportHiddenSeqs(boolean isExportHiddenSeqs)
- {
- this.isExportHiddenSeqs = isExportHiddenSeqs;
- }
-
- @Override
- public boolean isExportHiddenSeqs()
- {
- return isExportHiddenSeqs;
- }
}