|
Cytoscape 2.6.2 (c) 2006,2007 ISB, MSKCC, UCSD | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object cytoscape.visual.CalculatorCatalog
public class CalculatorCatalog
Stores various types of Calculators from data attributes to an attribute of a specified type. Also keeps track of available mappings. Notifies interested classes of changes to the underlying datasets.
Constructor Summary | |
---|---|
CalculatorCatalog()
Creates a new CalculatorCatalog object. |
|
CalculatorCatalog(Properties props)
Creates a new CalculatorCatalog object. |
Method Summary | |
---|---|
void |
addCalculator(Calculator dupe)
Add any calculator to the catalog. |
void |
addChangeListener(ChangeListener l,
byte type)
Deprecated. Will be removed 5/2008 |
void |
addChangeListener(ChangeListener l,
VisualPropertyType type)
DOCUMENT ME! |
void |
addMapping(String name,
Class m)
Add a mapping to the database of available mappings. |
void |
addVisualStyle(VisualStyle vs)
DOCUMENT ME! |
String |
checkCalculatorName(byte type,
String name)
Deprecated. Will be removed 5/2008 |
String |
checkCalculatorName(String calcName,
byte calcType)
Deprecated. Will be removed 5/2008 |
String |
checkCalculatorName(String calcName,
VisualPropertyType calcType)
DOCUMENT ME! |
String |
checkCalculatorName(VisualPropertyType type,
String name)
DOCUMENT ME! |
String |
checkMappingName(String name)
DOCUMENT ME! |
String |
checkVisualStyleName(String name)
DOCUMENT ME! |
void |
clear()
DOCUMENT ME! |
void |
createDefaultVisualStyle()
DOCUMENT ME! |
Calculator |
getCalculator(byte type,
String name)
Deprecated. Will be removed 5/2008 |
Calculator |
getCalculator(VisualPropertyType type,
String name)
DOCUMENT ME! |
Collection<Calculator> |
getCalculators()
DOCUMENT ME! |
Collection<Calculator> |
getCalculators(byte type)
Deprecated. Will be removed 5/2008 |
Collection<Calculator> |
getCalculators(VisualPropertyType type)
DOCUMENT ME! |
Collection<VisualPropertyType> |
getCalculatorTypes()
DOCUMENT ME! |
Class |
getMapping(String name)
DOCUMENT ME! |
Set |
getMappingNames()
Returns the HashMap of mappers |
VisualStyle |
getVisualStyle(String name)
DOCUMENT ME! |
Set<String> |
getVisualStyleNames()
DOCUMENT ME! |
Collection<VisualStyle> |
getVisualStyles()
DOCUMENT ME! |
Calculator |
removeCalculator(byte type,
String name)
Deprecated. Will be removed 5/2008 |
void |
removeCalculator(Calculator c)
Remove a calculator. |
Calculator |
removeCalculator(VisualPropertyType type,
String name)
DOCUMENT ME! |
Class |
removeMapping(String name)
DOCUMENT ME! |
VisualStyle |
removeVisualStyle(String name)
DOCUMENT ME! |
void |
renameCalculator(Calculator c,
String name)
Renames a calculator. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CalculatorCatalog()
public CalculatorCatalog(Properties props)
props
- DOCUMENT ME!Method Detail |
---|
public void clear()
@Deprecated public void addChangeListener(ChangeListener l, byte type) throws IllegalArgumentException
l
- ChangeListener to addtype
- type of calculator to add to, one of VizMapUI
's
constants
IllegalArgumentException
- if unknown type passed inpublic void addChangeListener(ChangeListener l, VisualPropertyType type) throws IllegalArgumentException
l
- DOCUMENT ME!type
- DOCUMENT ME!
IllegalArgumentException
- DOCUMENT ME!public void addCalculator(Calculator dupe) throws DuplicateCalculatorNameException, IllegalArgumentException
dupe
- Calculator to add
DuplicateCalculatorNameException
- if calculator's name is a duplicate with valid name as detail
message
IllegalArgumentException
- if calculator is of an unknown type@Deprecated public String checkCalculatorName(String calcName, byte calcType)
calcName
- Name to checkcalcType
- Type of calculator VizMapUI
public String checkCalculatorName(String calcName, VisualPropertyType calcType)
calcName
- DOCUMENT ME!calcType
- DOCUMENT ME!
public void renameCalculator(Calculator c, String name) throws DuplicateCalculatorNameException, IllegalArgumentException
c
- Calculator to renamename
- New name for calculator
DuplicateCalculatorNameException
- if name is a duplicate with valid name as detail message
IllegalArgumentException
- if c is of an unknown typepublic void removeCalculator(Calculator c) throws IllegalArgumentException
c
- Calculator to remove
IllegalArgumentException
- if c is of an unknown calculator typepublic Set getMappingNames()
public void addMapping(String name, Class m) throws DuplicateCalculatorNameException, IllegalArgumentException
name
- Name of the mappingm
- Class of the mapping
DuplicateCalculatorNameException
- if the given name is already taken
IllegalArgumentException
- if the given class is not in the mapping hierarchypublic Class removeMapping(String name)
name
- DOCUMENT ME!
public Class getMapping(String name)
name
- DOCUMENT ME!
public String checkMappingName(String name)
name
- DOCUMENT ME!
public Set<String> getVisualStyleNames()
public Collection<VisualStyle> getVisualStyles()
public void addVisualStyle(VisualStyle vs)
vs
- DOCUMENT ME!public VisualStyle removeVisualStyle(String name)
name
- DOCUMENT ME!
public VisualStyle getVisualStyle(String name)
name
- DOCUMENT ME!
public String checkVisualStyleName(String name)
name
- DOCUMENT ME!
public Collection<Calculator> getCalculators()
@Deprecated public Collection<Calculator> getCalculators(byte type)
type
-
public Collection<Calculator> getCalculators(VisualPropertyType type)
type
- DOCUMENT ME!
@Deprecated public Calculator getCalculator(byte type, String name)
type
- name
-
public Calculator getCalculator(VisualPropertyType type, String name)
type
- DOCUMENT ME!name
- DOCUMENT ME!
@Deprecated public String checkCalculatorName(byte type, String name)
type
- name
-
public String checkCalculatorName(VisualPropertyType type, String name)
type
- DOCUMENT ME!name
- DOCUMENT ME!
@Deprecated public Calculator removeCalculator(byte type, String name)
type
- name
-
public Calculator removeCalculator(VisualPropertyType type, String name)
type
- DOCUMENT ME!name
- DOCUMENT ME!
public Collection<VisualPropertyType> getCalculatorTypes()
public void createDefaultVisualStyle()
|
www.cytoscape.org | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |