edu.sdsc.mbt.viewables
Class BondRadiusRegistry

java.lang.Object
  extended byedu.sdsc.mbt.viewables.BondRadiusRegistry

public class BondRadiusRegistry
extends java.lang.Object

A class used to register BondRadius implementation objects. The names of the BondRadius objects can be retrieved and used in a GUI menu in order for a user to pick the desired BondRadius algorithm. The retrieved BondRadius object may then be handed to a StructureStyle instance in order to assocate one or more Bond representations to a given radius scheme.

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

Constructor Summary
BondRadiusRegistry()
           
 
Method Summary
static void add(java.lang.String name, BondRadius bondRadius)
          Add a new BondRadius implementation.
static int count()
          Return the number of registered BondRadius impelementations.
static BondRadius get(java.lang.String name)
          Get an BondRadius implementation by name.
static BondRadius getDefault()
          Get the default BondRadius implementation.
static java.lang.String getDefaultName()
          Return the name of the default BondRadius impelementation.
static java.util.Enumeration names()
          Return an Enumeration of String values for all registered BondRadius objects.
static void remove(java.lang.String name)
          Remove an existing BondRadius implementation.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BondRadiusRegistry

public BondRadiusRegistry()
Method Detail

count

public static int count()
Return the number of registered BondRadius impelementations.


getDefaultName

public static java.lang.String getDefaultName()
Return the name of the default BondRadius impelementation.


add

public static void add(java.lang.String name,
                       BondRadius bondRadius)
Add a new BondRadius implementation.


remove

public static void remove(java.lang.String name)
Remove an existing BondRadius implementation.


get

public static BondRadius get(java.lang.String name)
Get an BondRadius implementation by name.


getDefault

public static BondRadius getDefault()
Get the default BondRadius implementation.


names

public static java.util.Enumeration names()
Return an Enumeration of String values for all registered BondRadius objects.