org.jscience.chemistry.gui.basic
Class Atom

java.lang.Object
  extended by org.jscience.chemistry.gui.basic.Atom

public class Atom
extends java.lang.Object

A class representing an Atom in 3D.


Field Summary
 int m_nFog
          DOCUMENT ME!
 java.lang.String m_sName
          DOCUMENT ME!
 double m_tx
          DOCUMENT ME!
 double m_ty
          DOCUMENT ME!
 double m_tz
          DOCUMENT ME!
 double m_x
          DOCUMENT ME!
 double m_y
          DOCUMENT ME!
 double m_z
          DOCUMENT ME!
 
Constructor Summary
Atom(java.lang.String s, double x, double y, double z)
           
 
Method Summary
 void addBond(Bond bond)
           
 java.awt.Color adjustColor(java.awt.Color orig)
          Carbon light grey [200,200,200] C8C8C8 Oxygen red [240,0,0] F00000 Hydrogen white [255,255,255] FFFFFF Nitrogen light blue [143,143,255] 8F8FFF Sulfur yellow [255,200,50] FFC832 Phosphorus orange [255,165,0] FFA500 Chlorine green [0,255,0] 00FF00 Bromine, Zinc brown [165,42,42] A52A2A Sodium blue [0,0,255] 0000FF Iron orange [255,165,0] FFA500 Magnesium dark green [42,128,42] 2A802A Calcium dark grey [128,128,128] 808090 Unknown deep pink [255,20,147] FF1493
 void calculateFog(double min_range, double max_range)
           
 void setColor(java.awt.Graphics g, double min_range, double max_range)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

m_sName

public java.lang.String m_sName
DOCUMENT ME!


m_x

public double m_x
DOCUMENT ME!


m_y

public double m_y
DOCUMENT ME!


m_z

public double m_z
DOCUMENT ME!


m_tx

public double m_tx
DOCUMENT ME!


m_ty

public double m_ty
DOCUMENT ME!


m_tz

public double m_tz
DOCUMENT ME!


m_nFog

public int m_nFog
DOCUMENT ME!

Constructor Detail

Atom

public Atom(java.lang.String s,
            double x,
            double y,
            double z)
Method Detail

addBond

public void addBond(Bond bond)

calculateFog

public void calculateFog(double min_range,
                         double max_range)

setColor

public void setColor(java.awt.Graphics g,
                     double min_range,
                     double max_range)

adjustColor

public java.awt.Color adjustColor(java.awt.Color orig)
Carbon light grey [200,200,200] C8C8C8 Oxygen red [240,0,0] F00000 Hydrogen white [255,255,255] FFFFFF Nitrogen light blue [143,143,255] 8F8FFF Sulfur yellow [255,200,50] FFC832 Phosphorus orange [255,165,0] FFA500 Chlorine green [0,255,0] 00FF00 Bromine, Zinc brown [165,42,42] A52A2A Sodium blue [0,0,255] 0000FF Iron orange [255,165,0] FFA500 Magnesium dark green [42,128,42] 2A802A Calcium dark grey [128,128,128] 808090 Unknown deep pink [255,20,147] FF1493

Parameters:
orig - DOCUMENT ME!
Returns:
DOCUMENT ME!