VeaR/JEllipse

pl.krakow.cmuj.bioinformatics.jellipse.chemtoolkit
Class Atom

java.lang.Object
  extended by pl.krakow.cmuj.bioinformatics.jellipse.chemtoolkit.Atom

public class Atom
extends java.lang.Object

Coordinates for an atom, and read-only methods. Instances are not consciuos about their belonging to a Chain or Aminoacid (up-downwards attitude applied that seems to be enough when we are not dabbling with e.g. visual picking).


Field Summary
private  float x
          1st coordinate (0X)
private  float y
          2nd coordinate (0Y)
private  float z
          3rd coordinate (0Z)
 
Constructor Summary
Atom(Atom atom)
           
Atom(float[] Coords)
          Creates a new instance of Atom
Atom(float x, float y, float z)
           
Atom(java.lang.Object o)
           
 
Method Summary
 float getCoordX()
           
 float[] getCoordXYZ()
           
 float getCoordY()
           
 float getCoordZ()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

x

private float x
1st coordinate (0X)


y

private float y
2nd coordinate (0Y)


z

private float z
3rd coordinate (0Z)

Constructor Detail

Atom

public Atom(float[] Coords)
Creates a new instance of Atom

Parameters:
Coords - array containing 3 coordinates

Atom

public Atom(java.lang.Object o)

Atom

public Atom(Atom atom)

Atom

public Atom(float x,
            float y,
            float z)
Method Detail

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

getCoordX

public float getCoordX()
Returns:
1st coordinate

getCoordY

public float getCoordY()
Returns:
2nd coordinate

getCoordZ

public float getCoordZ()
Returns:
3rd coordinate

getCoordXYZ

public float[] getCoordXYZ()
Returns:
all coordinates

VeaR/JEllipse