3 import jalview.api.FeatureColourI;
4 import jalview.schemes.FeatureColour;
5 import jalview.schemes.FeatureSettingsAdapter;
9 public class PDBFeatureSettings extends FeatureSettingsAdapter
12 public static final String FEATURE_INSERTION = "INSERTION";
14 public static final String FEATURE_RES_NUM = "RESNUM";
17 public boolean isFeatureDisplayed(String type)
19 return type.equalsIgnoreCase(FEATURE_INSERTION)
20 || type.equalsIgnoreCase(FEATURE_RES_NUM);
24 public FeatureColourI getFeatureColour(String type)
26 if (type.equalsIgnoreCase(FEATURE_INSERTION))
28 return new FeatureColour()
32 public Color getColour()
42 * Order to render insertion after ResNum
45 public int compare(String feature1, String feature2)
47 if (feature1.equalsIgnoreCase(FEATURE_INSERTION))
51 if (feature2.equalsIgnoreCase(FEATURE_INSERTION))
55 if (feature1.equalsIgnoreCase(FEATURE_RES_NUM))
59 if (feature2.equalsIgnoreCase(FEATURE_RES_NUM))