3 import jalview.api.FeatureColourI;
4 import jalview.schemes.FeatureColourAdapter;
5 import jalview.schemes.FeatureSettingsAdapter;
6 import jalview.ws.dbsources.Pdb;
10 public class PDBFeatureSettings extends FeatureSettingsAdapter
14 public boolean isFeatureDisplayed(String type)
16 return type.equalsIgnoreCase(Pdb.FEATURE_INSERTION)
17 || type.equalsIgnoreCase(Pdb.FEATURE_RES_NUM);
21 public FeatureColourI getFeatureColour(String type)
23 if (type.equalsIgnoreCase(Pdb.FEATURE_INSERTION))
25 return new FeatureColourAdapter()
29 public Color getColour()
39 * Order to render insertion after ResNum
42 public int compare(String feature1, String feature2)
44 if (feature1.equalsIgnoreCase(Pdb.FEATURE_INSERTION))
48 if (feature2.equalsIgnoreCase(Pdb.FEATURE_INSERTION))
52 if (feature1.equalsIgnoreCase(Pdb.FEATURE_RES_NUM))
56 if (feature2.equalsIgnoreCase(Pdb.FEATURE_RES_NUM))