Cytoscape 2.4.1 (c) 2006,2007 ISB, MSKCC, UCSD

cytoscape.visual.calculators
Class CalculatorFactory

java.lang.Object
  extended by cytoscape.visual.calculators.CalculatorFactory

public class CalculatorFactory
extends Object

This class provides static factory methods for constructing instances of Calculators as specified by arguments and static methods for getting names and labels based on calculator type.


Constructor Summary
CalculatorFactory()
           
 
Method Summary
static String getPropertyLabel(byte type)
          Returns the property label for calculators of a given type.
static String getTypeName(byte type)
          Returns the type name for calculators of a given type.
static Calculator newCalculator(String name, Properties calcProps, String baseKey)
          Attempt to construct an instance of Calculator as defined by the supplied arguments.
static Calculator newCalculator(String name, Properties calcProps, String baseKey, String intClassName)
          Deprecated. Use othe newCalculator - we don't need the base interface class name any more. Will be removed 10/2007.
static Calculator newDefaultCalculator(byte type, String calcName, ObjectMapping mapper)
          Creates a new default Calculator based on type.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CalculatorFactory

public CalculatorFactory()
Method Detail

newCalculator

public static Calculator newCalculator(String name,
                                       Properties calcProps,
                                       String baseKey,
                                       String intClassName)
Deprecated. Use othe newCalculator - we don't need the base interface class name any more. Will be removed 10/2007.


newCalculator

public static Calculator newCalculator(String name,
                                       Properties calcProps,
                                       String baseKey)
Attempt to construct an instance of Calculator as defined by the supplied arguments. It searches for a key-value pair identifying the name of the class to create, verifies that that class exists, implements the desired interface, and has an appropriate constructor, and calls that constructor with the appropriate arguments.


newDefaultCalculator

public static Calculator newDefaultCalculator(byte type,
                                              String calcName,
                                              ObjectMapping mapper)
Creates a new default Calculator based on type.


getTypeName

public static String getTypeName(byte type)
Returns the type name for calculators of a given type.


getPropertyLabel

public static String getPropertyLabel(byte type)
Returns the property label for calculators of a given type.


www.cytoscape.org