|
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.EdgeAppearanceCalculator
public class EdgeAppearanceCalculator
This class calculates the appearance of an Edge. It holds a default value and a (possibly null) calculator for each visual attribute.
Field Summary | |
---|---|
protected List<Calculator> |
calcs
|
protected static String |
CLONE_SUFFIX
|
protected VisualPropertyDependency |
deps
|
protected Appearance |
tmpDefaultAppearance
|
Constructor Summary | |
---|---|
EdgeAppearanceCalculator()
Deprecated. Use VisualStyle.getEdgeAppearanceCalculator() or new EdgeAppearanceCalculator( VisualStyle.getDependency() ); Will be removed Jan 2010. |
|
EdgeAppearanceCalculator(EdgeAppearanceCalculator toCopy)
Copy constructor. |
|
EdgeAppearanceCalculator(String name,
Properties eacProps,
String baseKey,
CalculatorCatalog catalog,
VisualPropertyDependency deps)
Creates a new EdgeAppearanceCalculator and immediately customizes it by calling applyProperties with the supplied arguments. |
|
EdgeAppearanceCalculator(VisualPropertyDependency deps)
Creates a new EdgeAppearanceCalculator object. |
Method Summary | |
---|---|
protected void |
applyProperties(Appearance appr,
String name,
Properties nacProps,
String baseKey,
CalculatorCatalog catalog)
|
void |
applyProperties(String name,
Properties eacProps,
String baseKey,
CalculatorCatalog catalog)
DOCUMENT ME! |
void |
calculateEdgeAppearance(EdgeAppearance appr,
Edge edge,
CyNetwork network)
Using the rules defined by the default values and calculators in this object, compute an appearance for the requested Edge in the supplied CyNetwork. |
EdgeAppearance |
calculateEdgeAppearance(Edge edge,
CyNetwork network)
Using the rules defined by the default values and calculators in this object, compute an appearance for the requested Edge in the supplied CyNetwork. |
Object |
clone()
Create deep copy of the object. |
Object |
clone(String vsName)
Make deep copy of this object |
protected void |
copyCalculators(cytoscape.visual.AppearanceCalculator copy)
|
protected void |
copyDefaultAppearance(cytoscape.visual.AppearanceCalculator toCopy)
|
Calculator |
getCalculator(VisualPropertyType type)
DOCUMENT ME! |
List<Calculator> |
getCalculators()
DOCUMENT ME! |
EdgeAppearance |
getDefaultAppearance()
DOCUMENT ME! |
String |
getDescription()
DOCUMENT ME! |
protected String |
getDescription(String name,
Appearance defaultAppr)
|
protected Properties |
getProperties(Appearance appr,
String baseKey)
|
Properties |
getProperties(String baseKey)
DOCUMENT ME! |
void |
removeCalculator(VisualPropertyType type)
DOCUMENT ME! |
void |
setCalculator(Calculator c)
DOCUMENT ME! |
void |
setDefaultAppearance(EdgeAppearance appr)
DOCUMENT ME! |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static final String CLONE_SUFFIX
protected final List<Calculator> calcs
protected Appearance tmpDefaultAppearance
protected VisualPropertyDependency deps
Constructor Detail |
---|
@Deprecated public EdgeAppearanceCalculator()
public EdgeAppearanceCalculator(VisualPropertyDependency deps)
public EdgeAppearanceCalculator(EdgeAppearanceCalculator toCopy)
public EdgeAppearanceCalculator(String name, Properties eacProps, String baseKey, CalculatorCatalog catalog, VisualPropertyDependency deps)
Method Detail |
---|
public Object clone()
public EdgeAppearance calculateEdgeAppearance(Edge edge, CyNetwork network)
public void calculateEdgeAppearance(EdgeAppearance appr, Edge edge, CyNetwork network)
public EdgeAppearance getDefaultAppearance()
public void setDefaultAppearance(EdgeAppearance appr)
appr
- DOCUMENT ME!public String getDescription()
public void applyProperties(String name, Properties eacProps, String baseKey, CalculatorCatalog catalog)
name
- DOCUMENT ME!eacProps
- DOCUMENT ME!baseKey
- DOCUMENT ME!catalog
- DOCUMENT ME!public Properties getProperties(String baseKey)
baseKey
- DOCUMENT ME!
protected void copyDefaultAppearance(cytoscape.visual.AppearanceCalculator toCopy)
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!protected String getDescription(String name, Appearance defaultAppr)
protected void applyProperties(Appearance appr, String name, Properties nacProps, String baseKey, CalculatorCatalog catalog)
protected Properties getProperties(Appearance appr, String baseKey)
protected void copyCalculators(cytoscape.visual.AppearanceCalculator copy)
|
Cytoscape 2.8.0 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |