X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=src%2Fjalview%2Fio%2FHtmlFile.java;h=af3fb5dd97d0267a94fe59a8852385ee1d173f1e;hb=fb4028aee26fec7707500b32632ce27521bcf3c4;hp=0cb7c00271724496240c4db8454d7a73c06b5559;hpb=dc1ad37588e94cbc9ebbfaab2e9e49407f464310;p=jalview.git diff --git a/src/jalview/io/HtmlFile.java b/src/jalview/io/HtmlFile.java index 0cb7c00..af3fb5d 100644 --- a/src/jalview/io/HtmlFile.java +++ b/src/jalview/io/HtmlFile.java @@ -1,6 +1,6 @@ /* - * Jalview - A Sequence Alignment Editor and Viewer (Version 2.9) - * Copyright (C) 2015 The Jalview Authors + * Jalview - A Sequence Alignment Editor and Viewer ($$Version-Rel$$) + * Copyright (C) $$Year-Rel$$ The Jalview Authors * * This file is part of Jalview. * @@ -22,6 +22,7 @@ package jalview.io; import jalview.api.ComplexAlignFile; +import jalview.api.FeatureSettingsModelI; import jalview.api.FeaturesDisplayedI; import jalview.datamodel.ColumnSelection; import jalview.datamodel.SequenceI; @@ -59,9 +60,10 @@ public class HtmlFile extends AlignFile implements ComplexAlignFile super(source); } - public HtmlFile(String inFile, String type) throws IOException + public HtmlFile(String inFile, DataSourceType sourceType) + throws IOException { - super(inFile, type); + super(inFile, sourceType); } @Override @@ -118,12 +120,13 @@ public class HtmlFile extends AlignFile implements ComplexAlignFile } @Override - public String print() + public String print(SequenceI[] sqs, boolean jvsuffix) { throw new UnsupportedOperationException( "Print method of HtmlFile is not supported!"); } + @Override public boolean isShowSeqFeatures() { return showSeqFeatures; @@ -134,6 +137,7 @@ public class HtmlFile extends AlignFile implements ComplexAlignFile this.showSeqFeatures = showSeqFeatures; } + @Override public String getGlobalColourScheme() { return globalColourScheme; @@ -144,6 +148,7 @@ public class HtmlFile extends AlignFile implements ComplexAlignFile this.globalColourScheme = globalColourScheme; } + @Override public ColumnSelection getColumnSelection() { return columnSelection; @@ -154,6 +159,7 @@ public class HtmlFile extends AlignFile implements ComplexAlignFile this.columnSelection = columnSelection; } + @Override public SequenceI[] getHiddenSequences() { return hiddenSequences; @@ -170,4 +176,19 @@ public class HtmlFile extends AlignFile implements ComplexAlignFile return displayedFeatures; } + /** + * Returns a descriptor for suitable feature display settings with + * + */ + @Override + public FeatureSettingsModelI getFeatureColourScheme() + { + return new PDBFeatureSettings(); + } + }