cytoscape.visual.calculators
Class GenericNodeShapeCalculator

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

public class GenericNodeShapeCalculator
extends NodeCalculator
implements NodeShapeCalculator


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
GenericNodeShapeCalculator(String name, ObjectMapping m)
           
GenericNodeShapeCalculator(String name, Properties props, String baseKey)
          Constructor for dynamic creation via properties.
 
Method Summary
 byte calculateNodeShape(giny.model.Node node, CyNetwork network)
          It is hoped that the -1 value of a byte will not conflict with any of the values used by ShapeNodeRealizer.
 
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

GenericNodeShapeCalculator

public GenericNodeShapeCalculator(String name,
                                  ObjectMapping m)

GenericNodeShapeCalculator

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

Method Detail

calculateNodeShape

public byte calculateNodeShape(giny.model.Node node,
                               CyNetwork network)
It is hoped that the -1 value of a byte will not conflict with any of the values used by ShapeNodeRealizer.

Specified by:
calculateNodeShape in interface NodeShapeCalculator