Class lattice

java.lang.Object
  extended bylattice
Direct Known Subclasses:
bodyC, faceC, primative

public abstract class lattice
extends java.lang.Object

An abstract class that is extended by the various diffrent lattice types. Each type overides the setLatticePoints method to describe where the lattice points are located in the cube


Constructor Summary
lattice()
           
 
Method Summary
 void clear()
          clears all the atoms attatched to the lattice
 void drawAtoms(java.awt.Graphics g)
          draws all the atoms at the relevent points on the lattice
 void drawLattice(java.awt.Graphics g2)
          draws the lattice box
 void drawLatticePoints(java.awt.Graphics g)
          draws all the lattice points
 void rotate()
          Rotates the entire lattice and atom positions arround the (1,1,1) axis
 void setRu(reUnit r)
          sets the repeating unit to be copied at each lattice point
 void setUpCube()
          Sets up the unit cube that the lattice is based on
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

lattice

public lattice()
Method Detail

setUpCube

public void setUpCube()
Sets up the unit cube that the lattice is based on


setRu

public void setRu(reUnit r)
sets the repeating unit to be copied at each lattice point


drawLattice

public void drawLattice(java.awt.Graphics g2)
draws the lattice box


drawAtoms

public void drawAtoms(java.awt.Graphics g)
draws all the atoms at the relevent points on the lattice


drawLatticePoints

public void drawLatticePoints(java.awt.Graphics g)
draws all the lattice points


rotate

public void rotate()
Rotates the entire lattice and atom positions arround the (1,1,1) axis


clear

public void clear()
clears all the atoms attatched to the lattice