Cytoscape 2.8.0 API

cytoscape.visual.calculators
Interface Calculator

All Superinterfaces:
Cloneable
All Known Implementing Classes:
AbstractCalculator, BasicCalculator, GenericNodeCustomGraphicCalculator

public interface Calculator
extends Cloneable


Field Summary
static String ID
           
 
Method Summary
 void addChangeListener(ChangeListener l)
          Add a ChangeListener to the calcaultor.
 void apply(Appearance appr, Edge e, CyNetwork net)
          DOCUMENT ME!
 void apply(Appearance appr, Node n, CyNetwork net)
          DOCUMENT ME!
 Object clone()
          Clone the calculator.
 ObjectMapping getMapping(int i)
          DOCUMENT ME!
 Vector<ObjectMapping> getMappings()
          DOCUMENT ME!
 Properties getProperties()
          Get a description of this calculator as a Properties object.
 JPanel getUI(JDialog parent, CyNetwork network)
          Deprecated. replaced by new VizMap GUI components. Will be removed in 2.8 or 3.0
 VisualPropertyType getVisualPropertyType()
          This method replaces the three methods above.
 void removeChangeListener(ChangeListener l)
          Remove a ChangeListener from the calcaultor.
 void setName(String newName)
          Set calculator name.
 String toString()
          Gets calculator name.
 

Field Detail

ID

static final String ID
See Also:
Constant Field Values
Method Detail

getUI

@Deprecated
JPanel getUI(JDialog parent,
                        CyNetwork network)
Deprecated. replaced by new VizMap GUI components. Will be removed in 2.8 or 3.0

Get the UI for a calculator.

Parameters:
parent - Parent JDialog for the UI
network - CyNetwork object containing underlying graph data

toString

String toString()
Gets calculator name.

Overrides:
toString in class Object

setName

void setName(String newName)
Set calculator name. DO NOT CALL THIS METHOD unless you first get a valid name from the CalculatorCatalog. Even if you have a guaranteed valid name from the CalculatorCatalog, it is still preferrable to use the renameCalculator method in the CalculatorCatalog.


clone

Object clone()
             throws CloneNotSupportedException
Clone the calculator.

Throws:
CloneNotSupportedException

getProperties

Properties getProperties()
Get a description of this calculator as a Properties object.


addChangeListener

void addChangeListener(ChangeListener l)
Add a ChangeListener to the calcaultor. When the state underlying the calculator changes, all ChangeListeners will be notified. This is used in the UI classes to ensure that the UI panes stay consistent with the data held in the mappings.

Parameters:
l - ChangeListener to add

removeChangeListener

void removeChangeListener(ChangeListener l)
Remove a ChangeListener from the calcaultor. When the state underlying the calculator changes, all ChangeListeners will be notified. This is used in the UI classes to ensure that the UI panes stay consistent with the data held in the mappings.

Parameters:
l - ChangeListener to add

getVisualPropertyType

VisualPropertyType getVisualPropertyType()
This method replaces the three methods above.

Returns:

apply

void apply(Appearance appr,
           Edge e,
           CyNetwork net)
DOCUMENT ME!

Parameters:
appr - DOCUMENT ME!
e - DOCUMENT ME!
net - DOCUMENT ME!

apply

void apply(Appearance appr,
           Node n,
           CyNetwork net)
DOCUMENT ME!

Parameters:
appr - DOCUMENT ME!
n - DOCUMENT ME!
net - DOCUMENT ME!

getMappings

Vector<ObjectMapping> getMappings()
DOCUMENT ME!

Returns:
DOCUMENT ME!

getMapping

ObjectMapping getMapping(int i)
DOCUMENT ME!

Parameters:
i - DOCUMENT ME!
Returns:
DOCUMENT ME!

Cytoscape 2.8.0 API

Copyright 2010 Cytoscape Consortium. All rights reserved.