Cytoscape 2.8.0 API

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 Calculator newCalculator(String name, Properties calcProps, String baseKey)
          Creates a caclculator defined by the type identified by the ".visualPropertyType" property in the calcProps argument.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, 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)
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.


Cytoscape 2.8.0 API

Copyright 2010 Cytoscape Consortium. All rights reserved.