cytoscape.visual.calculators
Class GenericNodeLabelColorCalculator

java.lang.Object
  extended by cytoscape.visual.calculators.AbstractCalculator
      extended by cytoscape.visual.calculators.NodeCalculator
          extended by cytoscape.visual.calculators.GenericNodeLabelColorCalculator
All Implemented Interfaces:
Calculator, NodeLabelColorCalculator, Cloneable

public class GenericNodeLabelColorCalculator
extends NodeCalculator
implements NodeLabelColorCalculator


Nested Class Summary
 
Nested classes/interfaces inherited from class cytoscape.visual.calculators.AbstractCalculator
AbstractCalculator.CalculatorUI, AbstractCalculator.MappingListener
 
Field Summary
 
Fields inherited from class cytoscape.visual.calculators.AbstractCalculator
acceptedDataClasses, changeEvent, changeListeners, ID, mappings, name
 
Constructor Summary
GenericNodeLabelColorCalculator(String name, ObjectMapping m)
           
GenericNodeLabelColorCalculator(String name, Properties props, String baseKey)
          Constructor for dynamic creation via properties.
 
Method Summary
 Color calculateNodeLabelColor(giny.model.Node node, CyNetwork network)
           
 
Methods inherited from class cytoscape.visual.calculators.NodeCalculator
getAttrBundle, getUI
 
Methods inherited from class cytoscape.visual.calculators.AbstractCalculator
addChangeListener, addMapping, clone, fireStateChanged, getAttrBundle, getDupeCount, getMapping, getMappings, getProperties, getUI, removeChangeListener, setName, toString
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface cytoscape.visual.calculators.Calculator
addChangeListener, clone, getProperties, getUI, removeChangeListener, setName, toString
 

Constructor Detail

GenericNodeLabelColorCalculator

public GenericNodeLabelColorCalculator(String name,
                                       ObjectMapping m)

GenericNodeLabelColorCalculator

public GenericNodeLabelColorCalculator(String name,
                                       Properties props,
                                       String baseKey)
Constructor for dynamic creation via properties.

Method Detail

calculateNodeLabelColor

public Color calculateNodeLabelColor(giny.model.Node node,
                                     CyNetwork network)
Specified by:
calculateNodeLabelColor in interface NodeLabelColorCalculator