edu.sdsc.mbt.viewables
Class BondFormRegistry

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

public class BondFormRegistry
extends java.lang.Object

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

Author:
John L. Moreland
See Also:
BondForm,


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

Constructor Detail

BondFormRegistry

public BondFormRegistry()
Method Detail

count

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


getDefaultName

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


add

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


remove

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


get

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


getDefault

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


names

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