import jalview.api.FeatureColourI;
import jalview.schemes.FeatureColourAdapter;
import jalview.schemes.FeatureSettingsAdapter;
-import jalview.ws.dbsources.Pdb;
import java.awt.Color;
public class PDBFeatureSettings extends FeatureSettingsAdapter
{
+ public static final String FEATURE_INSERTION = "INSERTION";
+
+ public static final String FEATURE_RES_NUM = "RESNUM";
+
@Override
public boolean isFeatureDisplayed(String type)
{
- return type.equalsIgnoreCase(Pdb.FEATURE_INSERTION)
- || type.equalsIgnoreCase(Pdb.FEATURE_RES_NUM);
+ return type.equalsIgnoreCase(FEATURE_INSERTION)
+ || type.equalsIgnoreCase(FEATURE_RES_NUM);
}
@Override
public FeatureColourI getFeatureColour(String type)
{
- if (type.equalsIgnoreCase(Pdb.FEATURE_INSERTION))
+ if (type.equalsIgnoreCase(FEATURE_INSERTION))
{
return new FeatureColourAdapter()
{
@Override
public int compare(String feature1, String feature2)
{
- if (feature1.equalsIgnoreCase(Pdb.FEATURE_INSERTION))
+ if (feature1.equalsIgnoreCase(FEATURE_INSERTION))
{
return +1;
}
- if (feature2.equalsIgnoreCase(Pdb.FEATURE_INSERTION))
+ if (feature2.equalsIgnoreCase(FEATURE_INSERTION))
{
return -1;
}
- if (feature1.equalsIgnoreCase(Pdb.FEATURE_RES_NUM))
+ if (feature1.equalsIgnoreCase(FEATURE_RES_NUM))
{
return +1;
}
- if (feature2.equalsIgnoreCase(Pdb.FEATURE_RES_NUM))
+ if (feature2.equalsIgnoreCase(FEATURE_RES_NUM))
{
return -1;
}