edu.sdsc.mbt.viewables
Class AtomRadiusByConstant

java.lang.Object
  extended byedu.sdsc.mbt.viewables.AtomRadiusByConstant
All Implemented Interfaces:
AtomRadius

public class AtomRadiusByConstant
extends java.lang.Object
implements AtomRadius

This class implements the AtomRadius interface by applying a radius to the given an Atom by using the radius of the bond.

Author:
John L. Moreland
See Also:
AtomRadius, Atom, PeriodicTable, Element,


Field Summary
static java.lang.String NAME
           
 
Method Summary
static AtomRadiusByConstant create()
          Return the singleton instance of this class.
 double getAtomRadius(Atom atom)
          Produce a radius based upon the atom element type.
 double getRadius()
          Get the constant radius.
 void setRadius(double radius)
          Set the constant radius.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NAME

public static final java.lang.String NAME
See Also:
Constant Field Values
Method Detail

create

public static AtomRadiusByConstant create()
Return the singleton instance of this class.


getAtomRadius

public double getAtomRadius(Atom atom)
Produce a radius based upon the atom element type.

Specified by:
getAtomRadius in interface AtomRadius

setRadius

public void setRadius(double radius)
Set the constant radius.


getRadius

public double getRadius()
Get the constant radius.