|
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.NodeAppearanceCalculator
public class NodeAppearanceCalculator
This class calculates the appearance of a Node. It holds a default value and a (possibly null) calculator for each visual attribute.
Constructor Summary | |
---|---|
NodeAppearanceCalculator()
Deprecated. Use VisualStyle.getNodeAppearanceCalculator() or new NodeAppearancCalculator( VisualStyle.getDependency() ) instead. Will be removed January 2011. |
|
NodeAppearanceCalculator(NodeAppearanceCalculator toCopy)
Copy constructor. |
|
NodeAppearanceCalculator(String name,
Properties nacProps,
String baseKey,
CalculatorCatalog catalog,
VisualPropertyDependency deps)
Creates a new NodeAppearanceCalculator and immediately customizes it by calling applyProperties with the supplied arguments. |
|
NodeAppearanceCalculator(VisualPropertyDependency deps)
Creates a new NodeAppearanceCalculator object. |
Method Summary | |
---|---|
void |
applyProperties(String name,
Properties nacProps,
String baseKey,
CalculatorCatalog catalog)
DOCUMENT ME! |
void |
calculateNodeAppearance(NodeAppearance appr,
Node node,
CyNetwork network)
Using the rules defined by the default values and calculators in this object, compute an appearance for the requested Node in the supplied CyNetwork. |
NodeAppearance |
calculateNodeAppearance(Node node,
CyNetwork network)
Using the rules defined by the default values and calculators in this object, compute an appearance for the requested Node in the supplied CyNetwork. |
Object |
clone()
Create deep copy of the object. |
Object |
clone(String vsName)
Make deep copy of this object |
Calculator |
getCalculator(VisualPropertyType type)
DOCUMENT ME! |
List<Calculator> |
getCalculators()
DOCUMENT ME! |
NodeAppearance |
getDefaultAppearance()
DOCUMENT ME! |
String |
getDescription()
Returns a text description of the current default values and calculator names. |
boolean |
getNodeSizeLocked()
Deprecated. Use VisualStyle.getDependency().check(VisualPropertyDependency.Definition.NODE_SIZE_LOCKED) instead. Will be removed Jan 2011. |
Properties |
getProperties(String baseKey)
DOCUMENT ME! |
void |
removeCalculator(VisualPropertyType type)
DOCUMENT ME! |
void |
setCalculator(Calculator c)
DOCUMENT ME! |
void |
setDefaultAppearance(NodeAppearance n)
DOCUMENT ME! |
void |
setNodeSizeLocked(boolean b)
Deprecated. Use VisualStyle.getDependency().set(VisualPropertyDependency.Definition.NODE_SIZE_LOCKED,b) instead. Will be removed Jan 2011. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
@Deprecated public NodeAppearanceCalculator()
public NodeAppearanceCalculator(VisualPropertyDependency deps)
public NodeAppearanceCalculator(String name, Properties nacProps, String baseKey, CalculatorCatalog catalog, VisualPropertyDependency deps)
public NodeAppearanceCalculator(NodeAppearanceCalculator toCopy)
Method Detail |
---|
public NodeAppearance calculateNodeAppearance(Node node, CyNetwork network)
public Object clone()
public void calculateNodeAppearance(NodeAppearance appr, Node node, CyNetwork network)
public NodeAppearance getDefaultAppearance()
public void setDefaultAppearance(NodeAppearance n)
n
- DOCUMENT ME!public String getDescription()
public void applyProperties(String name, Properties nacProps, String baseKey, CalculatorCatalog catalog)
name
- DOCUMENT ME!nacProps
- DOCUMENT ME!baseKey
- DOCUMENT ME!catalog
- DOCUMENT ME!public Properties getProperties(String baseKey)
baseKey
- DOCUMENT ME!
public boolean getNodeSizeLocked()
public void setNodeSizeLocked(boolean b)
public Object clone(String vsName)
public Calculator getCalculator(VisualPropertyType type)
type
- DOCUMENT ME!
public List<Calculator> getCalculators()
public void removeCalculator(VisualPropertyType type)
type
- DOCUMENT ME!public void setCalculator(Calculator c)
c
- DOCUMENT ME!
|
www.cytoscape.org | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |