edu.washington.biostr.sig.brainj3d.viewvolume.colors
Class BlendFunctionFactory

java.lang.Object
  extended by edu.washington.biostr.sig.brainj3d.viewvolume.colors.BlendFunctionFactory

public final class BlendFunctionFactory
extends Object

This factory manages the creation of and access to BlendFunctions. All BlendFunction should be registered with this factory to be compatable with existing code that queries this Factory.

Author:
Peter

Method Summary
static Set<String> functions()
          Gets a set of all function names stored in this factory.
static Set<String> functionsWithoutParameters()
          Gets a set of all function names stored in this factory where the function permit use of the default constructor.
static Set<String> functionsWithParameters()
          Gets a set of all function names stored in this factory where the function does not permit use of the default constructor.
static BlendFunction get(String name)
          Gets a BlendFunction by name.
static BlendFunction get(String name, Object[] parameters)
          Gets a BlendFunction by name and the specified input parameters.
static String[] getDesiredParameterNames(String name)
          Gets a list of friendly desired parameter names for a particular blend function.
static Class[] getDesiredParameters(String name)
          Gets a list of desired parameter types for a particular blend function.
static Object[] getDesiredParamterDefaultValues(String name)
          Gets a list of desired parameter default values for a particular blend function.
static String getParametersTitle(String name)
          Gets a string to represent the title of an input box for entering the parameters desired to create a new instance of the named blend function.
static void put(BlendFunction bf)
          Adds a blend function to the factory.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

put

public static void put(BlendFunction bf)
Adds a blend function to the factory.

Parameters:
bf -

functions

public static Set<String> functions()
Gets a set of all function names stored in this factory.

Returns:

functionsWithoutParameters

public static Set<String> functionsWithoutParameters()
Gets a set of all function names stored in this factory where the function permit use of the default constructor.

Returns:

functionsWithParameters

public static Set<String> functionsWithParameters()
Gets a set of all function names stored in this factory where the function does not permit use of the default constructor.

Returns:

getDesiredParameters

public static Class[] getDesiredParameters(String name)
Gets a list of desired parameter types for a particular blend function.

Parameters:
name -
Returns:

getDesiredParameterNames

public static String[] getDesiredParameterNames(String name)
Gets a list of friendly desired parameter names for a particular blend function.

Parameters:
name -
Returns:

getDesiredParamterDefaultValues

public static Object[] getDesiredParamterDefaultValues(String name)
Gets a list of desired parameter default values for a particular blend function.

Parameters:
name -
Returns:

getParametersTitle

public static String getParametersTitle(String name)
Gets a string to represent the title of an input box for entering the parameters desired to create a new instance of the named blend function.

Parameters:
name -
Returns:

get

public static BlendFunction get(String name)
Gets a BlendFunction by name. Does not provide any input parameters

Parameters:
name -
Returns:
null if the blend function is not found, or the blend function requires input parameters

get

public static BlendFunction get(String name,
                                Object[] parameters)
Gets a BlendFunction by name and the specified input parameters.

Parameters:
name -
parameters -
Returns:
null if the blend function is not found or the there was a problem processing the input parameters


Copyright © 2006 University of Washington. All Rights Reserved.