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

cytoscape.visual.calculators
Class GenericNodeSizeCalculator

java.lang.Object
  extended by cytoscape.visual.calculators.AbstractCalculator
      extended by cytoscape.visual.calculators.BasicCalculator
          extended by cytoscape.visual.calculators.NodeCalculator
              extended by cytoscape.visual.calculators.GenericNodeSizeCalculator
All Implemented Interfaces:
Calculator, NodeSizeCalculator, Cloneable
Direct Known Subclasses:
GenericNodeHeightCalculator, GenericNodeUniformSizeCalculator, GenericNodeWidthCalculator

Deprecated. Use BasicCalculator(VisualPropertyType,...) instead. Will be hidden, although probably not removed, in 5/2008.

@Deprecated
public class GenericNodeSizeCalculator
extends NodeCalculator
implements NodeSizeCalculator

Double deprecated! Use NodeWidth,NodeHeight, or NodeUniformSize instead.


Field Summary
 
Fields inherited from interface cytoscape.visual.calculators.Calculator
ID
 
Constructor Summary
GenericNodeSizeCalculator(String name, ObjectMapping m)
          Deprecated. Will be removed 5/2008
GenericNodeSizeCalculator(String name, ObjectMapping m, VisualPropertyType type)
          Deprecated. Creates a new GenericNodeSizeCalculator object.
GenericNodeSizeCalculator(String name, Properties props, String baseKey)
          Deprecated. 
GenericNodeSizeCalculator(String name, Properties props, String baseKey, VisualPropertyType type)
          Deprecated. Creates a new GenericNodeSizeCalculator object.
 
Method Summary
 double calculateNodeSize(Node e, CyNetwork n)
          DOCUMENT ME!
 void set(VisualPropertyType t)
          Deprecated. This only exists to support deprecated code. DO NOT USE!!! will be removed 10/2007
 
Methods inherited from class cytoscape.visual.calculators.AbstractCalculator
addChangeListener, addMapping, apply, apply, clone, getDupeCount, getMapping, getMappings, getProperties, getProperties, getPropertyLabel, getType, getTypeName, getUI, getVisualPropertyType, removeChangeListener, setName, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface cytoscape.visual.calculators.NodeSizeCalculator
calculateNodeSize, set
 
Methods inherited from interface cytoscape.visual.calculators.Calculator
addChangeListener, apply, apply, clone, getMapping, getMappings, getProperties, getPropertyLabel, getType, getTypeName, getUI, getVisualPropertyType, removeChangeListener, setName, toString
 

Constructor Detail

GenericNodeSizeCalculator

@Deprecated
public GenericNodeSizeCalculator(String name,
                                            ObjectMapping m)
Deprecated. Will be removed 5/2008

Creates a new GenericNodeSizeCalculator object.

Parameters:
name - DOCUMENT ME!
m - DOCUMENT ME!

GenericNodeSizeCalculator

public GenericNodeSizeCalculator(String name,
                                 ObjectMapping m,
                                 VisualPropertyType type)
Deprecated. 
Creates a new GenericNodeSizeCalculator object.

Parameters:
name - DOCUMENT ME!
m - DOCUMENT ME!
type - DOCUMENT ME!

GenericNodeSizeCalculator

@Deprecated
public GenericNodeSizeCalculator(String name,
                                            Properties props,
                                            String baseKey)
Deprecated. 

Creates a new GenericNodeSizeCalculator object.

Parameters:
name - DOCUMENT ME!
props - DOCUMENT ME!
baseKey - DOCUMENT ME!

GenericNodeSizeCalculator

public GenericNodeSizeCalculator(String name,
                                 Properties props,
                                 String baseKey,
                                 VisualPropertyType type)
Deprecated. 
Creates a new GenericNodeSizeCalculator object.

Parameters:
name - DOCUMENT ME!
props - DOCUMENT ME!
baseKey - DOCUMENT ME!
type - DOCUMENT ME!
Method Detail

set

public void set(VisualPropertyType t)
Deprecated. This only exists to support deprecated code. DO NOT USE!!! will be removed 10/2007

DO NOT USE THIS METHOD (unless you're an appearance calculator)!!!


calculateNodeSize

public double calculateNodeSize(Node e,
                                CyNetwork n)
DOCUMENT ME!

Parameters:
e - DOCUMENT ME!
n - DOCUMENT ME!
Returns:
DOCUMENT ME!

www.cytoscape.org