Class reUnit

java.lang.Object
  extended byreUnit

public class reUnit
extends java.lang.Object

class to represent a repeating unit, it the atoms to be placed at each lattice point


Constructor Summary
reUnit()
          basic constructor to
 
Method Summary
 void addAtom(double x, double y, double z, double mass, java.awt.Color c)
          add an atom of the specified type to the repeating unit.
 void drawMe(java.awt.Graphics g, double x)
          draws the repeating unit
 atom getAtom(int i)
          get the i'th atom
 int noOfAtoms()
          returns the number of atoms in the repeating unit
 void rotateMe(double angle)
          rotates the entire repeating unit and its atoms
 void setBase(point3D b)
          sets the base point that the repeating unit is located at
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

reUnit

public reUnit()
basic constructor to

Method Detail

addAtom

public void addAtom(double x,
                    double y,
                    double z,
                    double mass,
                    java.awt.Color c)
add an atom of the specified type to the repeating unit.


drawMe

public void drawMe(java.awt.Graphics g,
                   double x)
draws the repeating unit


setBase

public void setBase(point3D b)
sets the base point that the repeating unit is located at


noOfAtoms

public int noOfAtoms()
returns the number of atoms in the repeating unit


getAtom

public atom getAtom(int i)
get the i'th atom


rotateMe

public void rotateMe(double angle)
rotates the entire repeating unit and its atoms