|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.ObjectreUnit
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 |
public reUnit()
| Method Detail |
public void addAtom(double x,
double y,
double z,
double mass,
java.awt.Color c)
public void drawMe(java.awt.Graphics g,
double x)
public void setBase(point3D b)
public int noOfAtoms()
public atom getAtom(int i)
public void rotateMe(double angle)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||