Author: kono
Date: 2010-08-10 10:45:05 -0700 (Tue, 10 Aug 2010)
New Revision: 21279
Modified:
core3/io-impl/trunk/src/main/java/org/cytoscape/io/internal/read/gml/GMLReader.java
core3/io-impl/trunk/src/main/java/org/cytoscape/io/internal/read/xgmml/XGMMLReader.java
Log:
Method name changed from getSource() to getModel() for consistency.
Modified:
core3/io-impl/trunk/src/main/java/org/cytoscape/io/internal/read/gml/GMLReader.java
===================================================================
---
core3/io-impl/trunk/src/main/java/org/cytoscape/io/internal/read/gml/GMLReader.java
2010-08-10 17:43:01 UTC (rev 21278)
+++
core3/io-impl/trunk/src/main/java/org/cytoscape/io/internal/read/gml/GMLReader.java
2010-08-10 17:45:05 UTC (rev 21279)
@@ -563,7 +563,7 @@
* @param myView the view of the network we want to layout
*/
public void layout(CyNetworkView myView) {
- if ((myView == null) || (myView.getSource().getNodeCount() ==
0)) {
+ if ((myView == null) || (myView.getModel().getNodeCount() ==
0)) {
return;
}
Modified:
core3/io-impl/trunk/src/main/java/org/cytoscape/io/internal/read/xgmml/XGMMLReader.java
===================================================================
---
core3/io-impl/trunk/src/main/java/org/cytoscape/io/internal/read/xgmml/XGMMLReader.java
2010-08-10 17:43:01 UTC (rev 21278)
+++
core3/io-impl/trunk/src/main/java/org/cytoscape/io/internal/read/xgmml/XGMMLReader.java
2010-08-10 17:45:05 UTC (rev 21279)
@@ -187,7 +187,7 @@
* the view of the network we want to layout
*/
private void layout() {
- if ((view == null) || (view.getSource().getNodeCount() == 0))
+ if ((view == null) || (view.getModel().getNodeCount() == 0))
return;
// TODO: Inject correct property
@@ -276,7 +276,7 @@
final boolean buildStyle) {
// The identifier of this node
- CyRow nodeAttrs = nodeView.getSource().attrs();
+ CyRow nodeAttrs = nodeView.getModel().attrs();
/*
// Location and size of the node
@@ -435,7 +435,7 @@
private void layoutEdgeGraphics(final Attributes graphics,
final View<CyEdge> edgeView, final VisualStyleBuilder
graphStyle,
final boolean buildStyle) {
- CyRow edgeAttrs = edgeView.getSource().attrs();
+ CyRow edgeAttrs = edgeView.getModel().attrs();
// TODO fix for new style view
/*
if (buildStyle
--
You received this message because you are subscribed to the Google Groups
"cytoscape-cvs" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/cytoscape-cvs?hl=en.