edu.sdsc.mbt.viewables
Class AtomRadiusByScaledCpk

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

public class AtomRadiusByScaledCpk
extends java.lang.Object
implements AtomRadius

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

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


Field Summary
static java.lang.String NAME
           
 
Method Summary
static AtomRadiusByScaledCpk create()
          Return the singleton instance of this class.
 double getAtomRadius(Atom atom)
          Produce a radius based upon the atom element type.
 double getScale()
          Get the CPK radius scale factor.
 void setScale(double scale)
          Set the CPK radius scale factor.
 
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 AtomRadiusByScaledCpk 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

setScale

public void setScale(double scale)
Set the CPK radius scale factor.


getScale

public double getScale()
Get the CPK radius scale factor.