|
Cytoscape 2.8.0 API | |||||||||
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.
Field Summary | |
---|---|
protected ChangeEvent |
changeEvent
Only one ChangeEvent is needed per catalog instance since
the event's only state is the source property. |
Constructor Summary | |
---|---|
CalculatorCatalog()
Creates a new CalculatorCatalog object. |
|
CalculatorCatalog(Properties props)
Creates a new CalculatorCatalog object. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected transient ChangeEvent changeEvent
ChangeEvent
is needed per catalog instance since
the event's only state is the source property. The source of events
generated is always "this".
Constructor Detail |
---|
public CalculatorCatalog()
public CalculatorCatalog(Properties props)
props
- DOCUMENT ME!Method Detail |
---|
public void clear()
protected List getListenerList(VisualPropertyType type) throws IllegalArgumentException
IllegalArgumentException
public void addChangeListener(ChangeListener l, VisualPropertyType type) throws IllegalArgumentException
l
- DOCUMENT ME!type
- DOCUMENT ME!
IllegalArgumentException
- DOCUMENT ME!protected void fireStateChanged(VisualPropertyType type) throws IllegalArgumentException
IllegalArgumentException
protected Map<String,Calculator> getCalculatorMap(VisualPropertyType type)
VisualPropertyType
- a known type identifier
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<String> 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!
protected void addCalculator(Calculator c, Map m) throws DuplicateCalculatorNameException
DuplicateCalculatorNameException
protected String checkName(String name, Map m)
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()
|
Cytoscape 2.8.0 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |