return annotation;
}
+ private Hashtable getDisplayedFeatureCols()
+ {
+ if (alignPanel.getFeatureRenderer()!=null) {
+ FeatureRenderer fr = alignPanel.getFeatureRenderer();
+ Hashtable fcols = new Hashtable();
+ Enumeration en = viewport.featuresDisplayed.keys();
+ while (en.hasMoreElements())
+ {
+ Object col = en.nextElement();
+ fcols.put(col,fr.featureColours.get(col));
+ }
+ return fcols;
+ }
+ return null;
+ }
+
public String outputFeatures(boolean displayTextbox, String format)
{
String features;
if (format.equalsIgnoreCase("Jalview"))
{
features = new FeaturesFile().printJalviewFormat(viewport.alignment
- .getSequencesArray(), viewport.featuresDisplayed);
+ .getSequencesArray(), getDisplayedFeatureCols());
}
else
{
features = new FeaturesFile().printGFFFormat(viewport.alignment
- .getSequencesArray(), viewport.featuresDisplayed);
+ .getSequencesArray(), getDisplayedFeatureCols());
}
if (displayTextbox)