edu.sdsc.mbt.viewables
Class BondRadiusAsStick

java.lang.Object
  extended byedu.sdsc.mbt.viewables.BondRadiusAsStick
All Implemented Interfaces:
BondRadius

public class BondRadiusAsStick
extends java.lang.Object
implements BondRadius

This class implements the BondRadius interface by applying a fixed radius representing the width IN PIXELS of the wireframe bond.

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

Field Summary
static java.lang.String NAME
           
 
Method Summary
static BondRadiusAsStick create()
          Return the singleton instance of this class.
 double getBondRadius(Bond bond)
          Produce the primary radius (in pixel units) as a constant value.
 double getSplitBondRadius(Bond bond)
          Produce the secondary radius (in pixel units) as a constant value.
 
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 BondRadiusAsStick create()
Return the singleton instance of this class.


getBondRadius

public double getBondRadius(Bond bond)
Produce the primary radius (in pixel units) as a constant value.

Specified by:
getBondRadius in interface BondRadius

getSplitBondRadius

public double getSplitBondRadius(Bond bond)
Produce the secondary radius (in pixel units) as a constant value.

Specified by:
getSplitBondRadius in interface BondRadius