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

cytoscape.visual.calculators
Class GenericNodeWidthCalculator

java.lang.Object
  extended by cytoscape.visual.calculators.AbstractCalculator
      extended by cytoscape.visual.calculators.NodeCalculator
          extended by cytoscape.visual.calculators.GenericNodeSizeCalculator
              extended by cytoscape.visual.calculators.GenericNodeWidthCalculator
All Implemented Interfaces:
Calculator, NodeSizeCalculator, Cloneable

public class GenericNodeWidthCalculator
extends GenericNodeSizeCalculator
implements NodeSizeCalculator


Field Summary
 
Fields inherited from class cytoscape.visual.calculators.AbstractCalculator
ID
 
Constructor Summary
GenericNodeWidthCalculator(String name, ObjectMapping m)
          Creates a new GenericNodeWidthCalculator object.
GenericNodeWidthCalculator(String name, Properties props, String baseKey)
          Creates a new GenericNodeWidthCalculator object.
 
Method Summary
 void apply(NodeAppearance appr, Node node, CyNetwork network)
          DOCUMENT ME!
 double calculateNodeSize(Node e, CyNetwork n)
          DOCUMENT ME!
 String getPropertyLabel()
          DOCUMENT ME!
 byte getType()
          DOCUMENT ME!
 String getTypeName()
          DOCUMENT ME!
 void set(byte b, String p, String n)
          Deprecated. This only exists to support deprecated code. DO NOT USE!!! will be removed 10/2007
 
Methods inherited from class cytoscape.visual.calculators.NodeCalculator
getUI
 
Methods inherited from class cytoscape.visual.calculators.AbstractCalculator
addChangeListener, addMapping, apply, clone, getDupeCount, getMapping, getMappings, getProperties, getProperties, 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
set
 
Methods inherited from interface cytoscape.visual.calculators.Calculator
addChangeListener, apply, clone, getMapping, getMappings, getProperties, getUI, removeChangeListener, setName, toString
 

Constructor Detail

GenericNodeWidthCalculator

public GenericNodeWidthCalculator(String name,
                                  ObjectMapping m)
Creates a new GenericNodeWidthCalculator object.

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

GenericNodeWidthCalculator

public GenericNodeWidthCalculator(String name,
                                  Properties props,
                                  String baseKey)
Creates a new GenericNodeWidthCalculator object.

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

getType

public byte getType()
DOCUMENT ME!

Specified by:
getType in interface Calculator
Overrides:
getType in class GenericNodeSizeCalculator
Returns:
DOCUMENT ME!

getPropertyLabel

public String getPropertyLabel()
DOCUMENT ME!

Specified by:
getPropertyLabel in interface Calculator
Overrides:
getPropertyLabel in class GenericNodeSizeCalculator
Returns:
DOCUMENT ME!

getTypeName

public String getTypeName()
DOCUMENT ME!

Specified by:
getTypeName in interface Calculator
Overrides:
getTypeName in class GenericNodeSizeCalculator
Returns:
DOCUMENT ME!

apply

public void apply(NodeAppearance appr,
                  Node node,
                  CyNetwork network)
DOCUMENT ME!

Specified by:
apply in interface Calculator
Overrides:
apply in class GenericNodeSizeCalculator
Parameters:
appr - DOCUMENT ME!
node - DOCUMENT ME!
network - DOCUMENT ME!

calculateNodeSize

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

Specified by:
calculateNodeSize in interface NodeSizeCalculator
Overrides:
calculateNodeSize in class GenericNodeSizeCalculator
Parameters:
e - DOCUMENT ME!
n - DOCUMENT ME!
Returns:
DOCUMENT ME!

set

public void set(byte b,
                String p,
                String n)
Deprecated. This only exists to support deprecated code. DO NOT USE!!! will be removed 10/2007


www.cytoscape.org