|
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.SubjectBase cytoscape.visual.VisualMappingManager
public class 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.
Field Summary |
---|
Fields inherited from class cytoscape.visual.SubjectBase |
---|
observers |
Constructor Summary | |
---|---|
VisualMappingManager(CyNetworkView networkView)
Creates a new VisualMappingManager object. |
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. |
CalculatorCatalog |
getCalculatorCatalog()
DOCUMENT ME! |
CustomGraphicsManager |
getCustomGraphicsManager()
|
CyNetwork |
getNetwork()
DOCUMENT ME! |
CyNetworkView |
getNetworkView()
DOCUMENT ME! |
RangeValueCalculatorFactory |
getRangeValueCalculatorFactory()
|
VisualStyle |
getVisualStyle()
DOCUMENT ME! |
void |
loadCalculatorCatalog()
Attempts to load a CalculatorCatalog object, using the information from the CytoscapeConfig object. |
void |
loadCalculatorCatalog(String vizmapLocation)
DOCUMENT ME! |
void |
setNetworkView(CyNetworkView new_view)
DOCUMENT ME! |
VisualStyle |
setVisualStyle(String newVSName)
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)
DOCUMENT ME! |
void |
vizmapNode(NodeView nodeView,
CyNetworkView network_view)
DOCUMENT ME! |
Methods inherited from class cytoscape.visual.SubjectBase |
---|
addChangeListener, fireStateChanged, removeChangeListener |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public VisualMappingManager(CyNetworkView networkView)
networkView
- DOCUMENT ME!Method Detail |
---|
public void loadCalculatorCatalog()
CalculatorCatalog
,
CalculatorCatalogFactory
public void loadCalculatorCatalog(String vizmapLocation)
vizmapLocation
- DOCUMENT ME!public void setNetworkView(CyNetworkView new_view)
new_view
- DOCUMENT ME!public CyNetworkView getNetworkView()
public CyNetwork getNetwork()
public CalculatorCatalog getCalculatorCatalog()
public VisualStyle getVisualStyle()
public VisualStyle setVisualStyle(VisualStyle vs)
public VisualStyle setVisualStyle(String newVSName)
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)
nodeView
- DOCUMENT ME!network_view
- DOCUMENT ME!public void vizmapEdge(EdgeView edgeView, CyNetworkView network_view)
edgeView
- DOCUMENT ME!network_view
- DOCUMENT ME!public CustomGraphicsManager getCustomGraphicsManager()
public RangeValueCalculatorFactory getRangeValueCalculatorFactory()
|
Cytoscape 2.8.0 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |