cytoscape.visual.calculators
Class GenericNodeSizeCalculator
java.lang.Object
cytoscape.visual.calculators.AbstractCalculator
cytoscape.visual.calculators.NodeCalculator
cytoscape.visual.calculators.GenericNodeSizeCalculator
- All Implemented Interfaces:
- Calculator, NodeSizeCalculator, Cloneable
public class GenericNodeSizeCalculator
- extends NodeCalculator
- implements NodeSizeCalculator
Method Summary |
double |
calculateNodeSize(giny.model.Node node,
CyNetwork network)
calculateNodeSize returns -1 if there is no mapping;
since a negative number has no meaning as a node size,
this is a case that the caller of calculateNodeSize
should expect to handle. |
Methods inherited from class cytoscape.visual.calculators.AbstractCalculator |
addChangeListener, addMapping, clone, fireStateChanged, getAttrBundle, getDupeCount, getMapping, getMappings, getProperties, getUI, removeChangeListener, setName, toString |
GenericNodeSizeCalculator
public GenericNodeSizeCalculator(String name,
ObjectMapping m)
GenericNodeSizeCalculator
public GenericNodeSizeCalculator(String name,
Properties props,
String baseKey)
- Constructor for dynamic creation via properties.
calculateNodeSize
public double calculateNodeSize(giny.model.Node node,
CyNetwork network)
- calculateNodeSize returns -1 if there is no mapping;
since a negative number has no meaning as a node size,
this is a case that the caller of calculateNodeSize
should expect to handle. The usual caller is
NodeAppearanceCalculator.
- Specified by:
calculateNodeSize
in interface NodeSizeCalculator