|
Cytoscape 2.3.1 (c) 2004 ISB, MSKCC, UCSD | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcytoscape.visual.SubjectBase
cytoscape.visual.VisualMappingManager
Top-level class for controlling the visual appearance of nodes and edges according to data attributes, as well as some global visual attributes. This class holds a reference to a NetworkView that displays the network, a CalculatorCatalog that holds the set of known visual styles and calculators, and a current VisualStyle that is used to determine the values of the visual attributes. A Logger is also supplied to report errors.
Note that a null VisualStyle is not allowed; this class always provides at least a default object.
The key methods are the apply* methods. These methods first recalculate the visual appearances by delegating to the calculators contained in the current visual style. The usual return value of these methods is an Appearance object that contains the visual attribute values; these values are then applied to the network by calling the appropriate set methods in the graph view API.
Constructor Summary | |
VisualMappingManager(CyNetworkView networkView)
|
Method Summary | |
void |
applyAppearances()
Recalculates and reapplies all of the node, edge, and global visual attributes. |
void |
applyEdgeAppearances()
Recalculates and reapplies all of the edge appearances. |
void |
applyEdgeAppearances(CyNetwork network,
CyNetworkView network_view)
Recalculates and reapplies all of the edge appearances. |
void |
applyGlobalAppearances()
Recalculates and reapplies the global visual attributes. |
void |
applyGlobalAppearances(CyNetwork network,
CyNetworkView network_view)
Recalculates and reapplies the global visual attributes. |
void |
applyNodeAppearances()
Recalculates and reapplies all of the node appearances. |
void |
applyNodeAppearances(CyNetwork network,
CyNetworkView network_view)
Recalculates and reapplies all of the node appearances. |
cytoscape.visual.CalculatorCatalog |
getCalculatorCatalog()
|
CyNetwork |
getNetwork()
|
CyNetworkView |
getNetworkView()
|
VisualStyle |
getVisualStyle()
|
void |
loadCalculatorCatalog()
Attempts to load a CalculatorCatalog object, using the information from the CytoscapeConfig object. |
void |
loadCalculatorCatalog(String vizmapLocation)
|
void |
setNetworkView(CyNetworkView new_view)
|
VisualStyle |
setVisualStyle(String name)
Sets a new visual style. |
VisualStyle |
setVisualStyle(VisualStyle vs)
Sets a new visual style, and returns the old style. |
void |
vizmapEdge(EdgeView edgeView,
CyNetworkView network_view)
|
void |
vizmapNode(NodeView nodeView,
CyNetworkView network_view)
|
Methods inherited from class cytoscape.visual.SubjectBase |
addChangeListener, fireStateChanged, removeChangeListener |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public VisualMappingManager(CyNetworkView networkView)
Method Detail |
public void loadCalculatorCatalog()
CalculatorCatalog
,
CalculatorCatalogFactory
public void loadCalculatorCatalog(String vizmapLocation)
public void setNetworkView(CyNetworkView new_view)
public CyNetworkView getNetworkView()
public CyNetwork getNetwork()
public cytoscape.visual.CalculatorCatalog getCalculatorCatalog()
public VisualStyle getVisualStyle()
public VisualStyle setVisualStyle(VisualStyle vs)
public VisualStyle setVisualStyle(String name)
public void applyNodeAppearances()
public void applyNodeAppearances(CyNetwork network, CyNetworkView network_view)
public void applyEdgeAppearances()
public void applyEdgeAppearances(CyNetwork network, CyNetworkView network_view)
public void applyGlobalAppearances()
public void applyGlobalAppearances(CyNetwork network, CyNetworkView network_view)
network
- the network to apply tonetwork_view
- the view to apply topublic void applyAppearances()
public void vizmapNode(NodeView nodeView, CyNetworkView network_view)
public void vizmapEdge(EdgeView edgeView, CyNetworkView network_view)
|
www.cytoscape.org | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |