edu.sdsc.mbt.viewables
Class BondRadiusByScaledAtomRadius

java.lang.Object
  extended by edu.sdsc.mbt.viewables.BondRadiusByScaledAtomRadius
All Implemented Interfaces:
BondRadius

public class BondRadiusByScaledAtomRadius
extends Object
implements BondRadius

This class implements the BondRadius interface by applying a radius to the given Bond by using the AtomRadius class.

Author:
John L. Moreland
See Also:
BondRadius, Bond

Field Summary
static String NAME
           
 
Method Summary
static BondRadiusByScaledAtomRadius create()
          Return the singleton instance of this class.
 double getBondRadius(Bond bond)
          Produce the primary radius based upon the first atom radius.
 double getSplitBondRadius(Bond bond)
          Produce the secondary radius based upon the second atom radius.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NAME

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

create

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


getBondRadius

public double getBondRadius(Bond bond)
Produce the primary radius based upon the first atom radius.

Specified by:
getBondRadius in interface BondRadius

getSplitBondRadius

public double getSplitBondRadius(Bond bond)
Produce the secondary radius based upon the second atom radius.

Specified by:
getSplitBondRadius in interface BondRadius


Copyright © 2006 SDSC. All Rights Reserved.