|
Cytoscape 2.7.0 (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.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. |
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()
public 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 typepublic 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()
public Collection<Calculator> getCalculators(VisualPropertyType type)
type
- DOCUMENT ME!
public Calculator getCalculator(VisualPropertyType type, String name)
type
- DOCUMENT ME!name
- DOCUMENT ME!
public String checkCalculatorName(VisualPropertyType type, String name)
type
- DOCUMENT ME!name
- DOCUMENT ME!
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 |