Author: kono
Date: 2010-09-28 17:50:35 -0700 (Tue, 28 Sep 2010)
New Revision: 22100
Modified:
core3/layout-api/trunk/src/main/java/org/cytoscape/view/layout/LayoutTask.java
Log:
Unnecessary comments are removed.
Modified:
core3/layout-api/trunk/src/main/java/org/cytoscape/view/layout/LayoutTask.java
===================================================================
---
core3/layout-api/trunk/src/main/java/org/cytoscape/view/layout/LayoutTask.java
2010-09-28 23:49:31 UTC (rev 22099)
+++
core3/layout-api/trunk/src/main/java/org/cytoscape/view/layout/LayoutTask.java
2010-09-29 00:50:35 UTC (rev 22100)
@@ -18,7 +18,10 @@
public abstract class LayoutTask extends AbstractTask {
+
protected static final Logger logger =
LoggerFactory.getLogger(LayoutTask.class);
+
+ protected static final String LAYOUT_ALGORITHM = "layoutAlgorithm";
protected final CyNetworkView networkView;
private final String name;
@@ -51,28 +54,16 @@
if (network.getNodeCount() <= 0)
return;
- // set up the edit
-// undoableEdit = new ViewChangeEdit(networkView, toString() + "
Layout", undo);
-
// this is overridden by children and does the actual layout
doLayout(taskMonitor, network);
- // update the view
-// if (!selectedOnly)
-// networkView.fitContent();
-
-// networkView.updateView();
-
- // post the edit
-// undoableEdit.post();
-
// Fit Content method always redraw the presentation.
networkView.fitContent();
// update the __layoutAlgorithm attribute
final CyRow networkAttributes =
network.getCyRow(CyNetwork.HIDDEN_ATTRS);
-
networkAttributes.getDataTable().createColumn("layoutAlgorithm",String.class,false);
- networkAttributes.set("layoutAlgorithm", name);
+ networkAttributes.getDataTable().createColumn(LAYOUT_ALGORITHM,
String.class, false);
+ networkAttributes.set(LAYOUT_ALGORITHM, name);
logger.debug("Layout finished: " +
(System.currentTimeMillis()-start) + " msec.");
}
--
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.