import jalview.datamodel.SequenceI;
import jalview.schemes.ColourSchemeI;
+/**
+ * This interface should be implemented by complex file parser with the ability
+ * to store linked data and complex view states in addition to alingment data
+ *
+ * @author tcnofoegbu
+ *
+ */
public interface ComplexAlignFile
{
+ /**
+ * Determines if Sequence features should be shown
+ *
+ * @return
+ */
public boolean isShowSeqFeatures();
+ /**
+ * Obtains the colour scheme from a complex file parser
+ *
+ * @return
+ */
public ColourSchemeI getColourScheme();
+ /**
+ * Retrieves the Column selection/hidden column from a complex file parser
+ *
+ * @return
+ */
public ColumnSelection getColumnSelection();
+ /**
+ * Retrieves hidden sequences from a complex file parser
+ *
+ * @return
+ */
public SequenceI[] getHiddenSequences();
}
af.getViewport().setShowSequenceFeatures(showSeqFeatures);
af.changeColour(cs);
- // ((HtmlFile) source).applySettingsToAlignmentView(af);
}
- // else if (source instanceof JSONFile)
- // {
- // ColumnSelection colSel = ((JSONFile) source).getColumnSelection();
- // SequenceI[] hiddenSeqs = ((JSONFile) source).getHiddenSequences();
- // boolean showSeqFeatures = ((HtmlFile) source).isShowSeqFeatures();
- // ColourSchemeI cs = ((HtmlFile) source).getColourScheme();
- // af = new AlignFrame(al, hiddenSeqs, colSel,
- // AlignFrame.DEFAULT_WIDTH,
- // AlignFrame.DEFAULT_HEIGHT);
- // af.getViewport().setShowSequenceFeatures(showSeqFeatures);
- // af.changeColour(cs);
- // // ((JSONFile) source).applySettingsToAlignmentView(af);
- // }
else
{
af = new AlignFrame(al, AlignFrame.DEFAULT_WIDTH,