edu.sdsc.mbt.viewables
Class AtomRadiusRegistry

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

public class AtomRadiusRegistry
extends java.lang.Object

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

Author:
John L. Moreland
See Also:
AtomRadius,


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

Constructor Detail

AtomRadiusRegistry

public AtomRadiusRegistry()
Method Detail

count

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


getDefaultName

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


add

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


remove

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


get

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


getDefault

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


names

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