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

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, GenericNodeLabelPositionCalculator, GenericNodeLineTypeCalculator, GenericNodeShapeCalculator, GenericNodeSizeCalculator, GenericNodeToolTipCalculator

public abstract class NodeCalculator
extends AbstractCalculator

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


Field Summary
 
Fields inherited from class cytoscape.visual.calculators.AbstractCalculator
ID
 
Constructor Summary
NodeCalculator(String name, ObjectMapping m, Class c)
           
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
abstract  void apply(NodeAppearance appr, Node node, CyNetwork network)
           
abstract  String getPropertyLabel()
           
abstract  byte getType()
           
abstract  String getTypeName()
           
 JPanel getUI(JDialog parent, CyNetwork n)
          Get the UI for node calculators.
 
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
 

Constructor Detail

NodeCalculator

public NodeCalculator(String name,
                      ObjectMapping m,
                      Class c)

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

apply

public abstract void apply(NodeAppearance appr,
                           Node node,
                           CyNetwork network)
Specified by:
apply in interface Calculator
Overrides:
apply in class AbstractCalculator

getPropertyLabel

public abstract String getPropertyLabel()

getType

public abstract byte getType()

getTypeName

public abstract String getTypeName()
Specified by:
getTypeName in interface Calculator
Specified by:
getTypeName in class AbstractCalculator

www.cytoscape.org