*/
package MCview;
+import jalview.schemes.ResidueProperties;
+
import java.awt.Color;
public class Atom
name = str.substring(12, 15).trim();
resName = str.substring(17, 20);
+ // JAL-1828 treat MSE Selenomethionine as MET (etc)
+ resName = ResidueProperties.getCanonicalAminoAcid(resName);
chain = str.substring(21, 22);
}
}
+ @Override
+ public boolean equals(Object that)
+ {
+ if (this == that || that == null)
+ {
+ return true;
+ }
+ if (that instanceof Atom)
+ {
+ Atom other = (Atom) that;
+ return other.resName.equals(this.resName)
+ && other.resNumber == this.resNumber
+ && other.resNumIns.equals(this.resNumIns)
+ && other.chain.equals(this.chain);
+ }
+ return false;
+ }
+
public Atom(float x, float y, float z)
{
this.x = x;