Author: Christian Lopes
Date: 2010-10-26 16:37:27 -0700 (Tue, 26 Oct 2010)
New Revision: 22492
Modified:
cytoscapeweb/trunk/cytoscapeweb/src/org/cytoscapeweb/view/components/GraphVis.as
Log:
Draft implementation of custom images on nodes
Modified:
cytoscapeweb/trunk/cytoscapeweb/src/org/cytoscapeweb/view/components/GraphVis.as
===================================================================
---
cytoscapeweb/trunk/cytoscapeweb/src/org/cytoscapeweb/view/components/GraphVis.as
2010-10-26 23:34:34 UTC (rev 22491)
+++
cytoscapeweb/trunk/cytoscapeweb/src/org/cytoscapeweb/view/components/GraphVis.as
2010-10-26 23:37:27 UTC (rev 22492)
@@ -190,19 +190,21 @@
this._style = style;
// Preload images:
- var imgCache:ImageCache = ImageCache.instance;
- imgCache.loadImages(style);
+ doSetStyle();
+// TODO:
+// var imgCache:ImageCache = ImageCache.instance;
+// imgCache.loadImages(style);
+//
+// if (imgCache.isLoading()) waitForImages();
+// else doSetStyle();
+//
+// function waitForImages():void {trace("%% waiting for images...");
+// setTimeout(function():void {
+// if (imgCache.isLoading()) waitForImages();
+// else doSetStyle();
+// }, 50);
+// }
- if (imgCache.isLoading()) waitForImages();
- else doSetStyle();
-
- function waitForImages():void {trace("%% waiting for images...");
- setTimeout(function():void {
- if (imgCache.isLoading()) waitForImages();
- else doSetStyle();
- }, 50);
- }
-
function doSetStyle():void {
// Nodes & Edges properties:
// ---------------------------------------------------------
--
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.