Cytoscape 2.6.2 (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)
          Deprecated. Use VisualPropertyType.getPropertyLabel(). Will be removed 4/2008
static String getTypeName(byte type)
          Deprecated. Use VisualPropertyType.getName() instead. Gone 5/2008.
static Calculator newCalculator(String name, Properties calcProps, String baseKey)
          Creates a caclculator defined by the type identified by the ".visualPropertyType" property in the calcProps argument.
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 t, String calcName, ObjectMapping mapper)
          Deprecated. Use new BasicCalculator(name,mapper,type) instead. Gone 5/2008.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CalculatorFactory

public CalculatorFactory()
Method Detail

newCalculator

@Deprecated
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)
Creates a caclculator defined by the type identified by the ".visualPropertyType" property in the calcProps argument. If that isn't found, it looks for a ".class" property and then tries the old-school approach using reflection to create a calculator.


newDefaultCalculator

@Deprecated
public static Calculator newDefaultCalculator(byte t,
                                                         String calcName,
                                                         ObjectMapping mapper)
Deprecated. Use new BasicCalculator(name,mapper,type) instead. Gone 5/2008.

Creates a new default Calculator based on type.


getTypeName

@Deprecated
public static String getTypeName(byte type)
Deprecated. Use VisualPropertyType.getName() instead. Gone 5/2008.

Returns the type name for calculators of a given type.


getPropertyLabel

@Deprecated
public static String getPropertyLabel(byte type)
Deprecated. Use VisualPropertyType.getPropertyLabel(). Will be removed 4/2008

Returns the property label for calculators of a given type.


www.cytoscape.org