|
Cytoscape 2.5.1 (c) 2006,2007 ISB, MSKCC, UCSD | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcytoscape.visual.calculators.AbstractCalculator
public abstract class AbstractCalculator
AbstractCalculator is the top of the tree for the Calculator classes. DO
NOT extend this class directly! All calculators should extend one of
NodeCalculator or EdgeCalculator TODO this shouldn't be
public
| Field Summary |
|---|
| Fields inherited from interface cytoscape.visual.calculators.Calculator |
|---|
ID |
| Constructor Summary | |
|---|---|
AbstractCalculator(String name,
ObjectMapping m,
Class c)
Deprecated. |
|
AbstractCalculator(String name,
ObjectMapping m,
VisualPropertyType type)
Creates a new AbstractCalculator object. |
|
| Method Summary | |
|---|---|
void |
addChangeListener(ChangeListener l)
Add a ChangeListener to the calcaultor. |
void |
addMapping(ObjectMapping m)
Add a mapping to the mappings contained by the calculator. |
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. |
int |
getDupeCount()
Get how many times this calculator has been duplicated. |
ObjectMapping |
getMapping(int i)
Get the mapping at a specific index in this calculator. |
Vector<ObjectMapping> |
getMappings()
Get all mappings contained by this calculator. |
Properties |
getProperties()
Returns a properties description of this calculator. |
Properties |
getProperties(String baseKey)
Deprecated. Just use getProperties() - baseKey is already known by the calculator. This will be removed 10/2007. |
String |
getPropertyLabel()
Deprecated. |
byte |
getType()
Deprecated. |
String |
getTypeName()
Deprecated. |
JPanel |
getUI(JDialog parent,
CyNetwork network)
Get the UI for the calculator. |
VisualPropertyType |
getVisualPropertyType()
Replaces the following 3 methods: public byte getType(); public String getTypeName(); public String getPropertyLabel(); The returned enum VisualPropertyType has replacement for these methods. |
void |
removeChangeListener(ChangeListener l)
Remove a ChangeListener from the calcaultor. |
void |
setName(String newName)
Set the name of this calculator. |
String |
toString()
Get the name of this calculator. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
@Deprecated
public AbstractCalculator(String name,
ObjectMapping m,
Class c)
m - Object mapping for this calculator, or nullname - Name of this calculator
public AbstractCalculator(String name,
ObjectMapping m,
VisualPropertyType type)
name - DOCUMENT ME!m - DOCUMENT ME!c - DOCUMENT ME!type - DOCUMENT ME!| Method Detail |
|---|
public void addMapping(ObjectMapping m)
m - Mapping to add.public Vector<ObjectMapping> getMappings()
getMappings in interface Calculatorpublic ObjectMapping getMapping(int i)
getMapping in interface Calculatori - index of mapping to retrieve
public int getDupeCount()
public Object clone()
throws CloneNotSupportedException
clone in interface Calculatorclone in class ObjectCloneNotSupportedException - if something is seriously borked.public final String toString()
toString in interface CalculatortoString in class Objectpublic void setName(String newName)
setName in interface CalculatornewName - the new name for this calculator. Must be unique.public Properties getProperties()
getProperties in interface Calculatorpublic Properties getProperties(String baseKey)
public JPanel getUI(JDialog parent,
CyNetwork network)
getUI in interface Calculatorparent - Parent JDialog for the UInetwork - CyNetwork object containing underlying graph datapublic void addChangeListener(ChangeListener l)
addChangeListener in interface Calculatorl - ChangeListener to addpublic void removeChangeListener(ChangeListener l)
removeChangeListener in interface Calculatorl - ChangeListener to add
public void apply(Appearance appr,
Edge e,
CyNetwork net)
apply in interface Calculatorappr - DOCUMENT ME!e - DOCUMENT ME!net - DOCUMENT ME!
public void apply(Appearance appr,
Node n,
CyNetwork net)
apply in interface Calculatorappr - DOCUMENT ME!n - DOCUMENT ME!net - DOCUMENT ME!public VisualPropertyType getVisualPropertyType()
getVisualPropertyType in interface Calculator@Deprecated public byte getType()
getType in interface Calculator@Deprecated public String getPropertyLabel()
getPropertyLabel in interface Calculator@Deprecated public String getTypeName()
getTypeName in interface Calculator
|
www.cytoscape.org | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||