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

cytoscape.visual.calculators
Class EdgeCalculator

java.lang.Object
  extended by cytoscape.visual.calculators.AbstractCalculator
      extended by cytoscape.visual.calculators.EdgeCalculator
All Implemented Interfaces:
Calculator, Cloneable
Direct Known Subclasses:
GenericEdgeArrowCalculator, GenericEdgeColorCalculator, GenericEdgeFontFaceCalculator, GenericEdgeFontSizeCalculator, GenericEdgeLabelCalculator, GenericEdgeLabelColorCalculator, GenericEdgeLineTypeCalculator, GenericEdgeToolTipCalculator

public abstract class EdgeCalculator
extends AbstractCalculator

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


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

EdgeCalculator

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

EdgeCalculator

public EdgeCalculator(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 edge 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(EdgeAppearance appr,
                           Edge edge,
                           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