cytoscape.visual.calculators
Class NodeCalculator

java.lang.Object
  extended by cytoscape.visual.calculators.AbstractCalculator
      extended by cytoscape.visual.calculators.NodeCalculator
All Implemented Interfaces:
Calculator, Cloneable
Direct Known Subclasses:
GenericNodeColorCalculator, GenericNodeFontFaceCalculator, GenericNodeFontSizeCalculator, GenericNodeLabelCalculator, GenericNodeLabelColorCalculator, GenericNodeLineTypeCalculator, GenericNodeShapeCalculator, GenericNodeSizeCalculator, GenericNodeToolTipCalculator

public abstract class NodeCalculator
extends AbstractCalculator

NodeCalculator implements some UI features for calculators lower in the object tree.


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
NodeCalculator(String name, ObjectMapping m)
           
NodeCalculator(String name, Properties props, String baseKey, ValueParser parser, Object defObj)
          Constructor that calls MappingFactory to construct a new ObjectMapping based on the supplied arguments.
 
Method Summary
protected  Map getAttrBundle(String name)
          Simple passthrough method that is specific to nodes.
 JPanel getUI(JDialog parent, CyNetwork n)
          Get the UI for node calculators.
 
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
 

Constructor Detail

NodeCalculator

public NodeCalculator(String name,
                      ObjectMapping m)

NodeCalculator

public NodeCalculator(String name,
                      Properties props,
                      String baseKey,
                      ValueParser parser,
                      Object defObj)
Constructor that calls MappingFactory to construct a new ObjectMapping based on the supplied arguments.

Method Detail

getUI

public JPanel getUI(JDialog parent,
                    CyNetwork n)
Get the UI for node calculators. Display a JPanel with a JPanel from AbstractCalculator AbstractCalculator.getUI(javax.swing.JDialog, cytoscape.CyNetwork) and the underlying mapper's UI JPanel in a FlowLayout.

Specified by:
getUI in interface Calculator
Specified by:
getUI in class AbstractCalculator
Parameters:
parent - Parent dialog for the child UI
n - CyNetwork representing the graph
Returns:
JPanel containing JComboBox

getAttrBundle

protected Map getAttrBundle(String name)
Simple passthrough method that is specific to nodes. See AbstractCalculator.getAttrBundle() for more details.