edu.sdsc.mbt.viewables
Class FragmentFormRegistry

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

public class FragmentFormRegistry
extends java.lang.Object

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

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

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

Constructor Detail

FragmentFormRegistry

public FragmentFormRegistry()
Method Detail

count

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


getDefaultName

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


add

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


remove

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


get

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


getDefault

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


names

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