Author: Christian Lopes
Date: 2010-12-03 15:55:34 -0800 (Fri, 03 Dec 2010)
New Revision: 23087

Added:
   cytoscapeweb/trunk/website/src/file/example_graphs/santa.xgmml
   cytoscapeweb/trunk/website/src/img/content/demo/examples/Reindeer-icon.png
   cytoscapeweb/trunk/website/src/img/content/demo/examples/Rudolph-icon.png
   cytoscapeweb/trunk/website/src/img/content/demo/examples/Santa-Claus-icon.png
   cytoscapeweb/trunk/website/src/img/content/demo/examples/reindeers.png
Modified:
   cytoscapeweb/trunk/website/src/css/content/demo.css
   cytoscapeweb/trunk/website/src/js/content/demo.js
   cytoscapeweb/trunk/website/src/js/cytoscape_web/cytoscapeweb-styles-demo.js
Log:
Added demo network with images loaded from URLs defined with a Passthrough 
Mapper.

Modified: cytoscapeweb/trunk/website/src/css/content/demo.css
===================================================================
--- cytoscapeweb/trunk/website/src/css/content/demo.css 2010-12-03 23:33:20 UTC 
(rev 23086)
+++ cytoscapeweb/trunk/website/src/css/content/demo.css 2010-12-03 23:55:34 UTC 
(rev 23087)
@@ -220,6 +220,7 @@
 #examples .entry.disconnected .icon { background-image: 
url("../../img/content/demo/examples/disconnected.png"); }
 #examples .entry.shapes .icon { background-image: 
url("../../img/content/demo/examples/shapes.png"); }
 #examples .entry.peterson .icon { background-image: 
url("../../img/content/demo/examples/petersen.png"); }
+#examples .entry.reindeers .icon { background-image: 
url("../../img/content/demo/examples/reindeers.png"); }
 #examples .entry, #examples .entry * { cursor: pointer; }
 #examples .entry .description { color: #707070; line-height: 1; }
 

Added: cytoscapeweb/trunk/website/src/file/example_graphs/santa.xgmml
===================================================================
--- cytoscapeweb/trunk/website/src/file/example_graphs/santa.xgmml              
                (rev 0)
+++ cytoscapeweb/trunk/website/src/file/example_graphs/santa.xgmml      
2010-12-03 23:55:34 UTC (rev 23087)
@@ -0,0 +1,320 @@
+<graph xmlns:dc="http://purl.org/dc/elements/1.1/"; 
xmlns:xlink="http://www.w3.org/1999/xlink"; 
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"; 
xmlns:cy="http://www.cytoscape.org"; xmlns="http://www.cs.rpi.edu/XGMML"; 
+       directed="0">
+       
+  <att type="string" name="backgroundColor" value="#070a5a"/>
+
+   <node label="Santa" id="-2">
+    <att type="string" name="Synonym" value="Kris Kringle"/>
+    <att type="string" name="canonicalName" value="Santa"/>
+    <att type="string" name="gene name" value="Santa"/>
+    <att type="real" name="log score" value="-0.2975108113041255"/>
+    <att type="string" name="node type" value="query"/>
+    <att type="real" name="score" value="0.7426645540050226"/>
+    <att type="string" name="user" value="Santa"/>
+    <att type="string" name="image" 
value="img/content/demo/examples/Santa-Claus-icon.png"/>
+    <graphics type="ELLIPSE" h="80" w="80" x="-144.08599090576172" 
y="380.77467346191406" fill="#070a5a" width="0" outline="#000000" 
cy:nodeTransparency="1.0" cy:nodeLabelFont="Default-0-12" 
cy:borderLineType="solid"/>
+  </node>
+  <node label="Vixen" id="-13">
+    <att type="string" name="canonicalName" value="Vixen"/>
+    <att type="string" name="gene name" value="Vixen"/>
+    <att type="real" name="log score" value="-6.335534869800079"/>
+    <att type="string" name="node type" value="result"/>
+    <att type="real" name="score" value="0.0017721976900291758"/>
+    <att type="string" name="user" value="Vixen"/>
+    <att type="string" name="image" 
value="img/content/demo/examples/Reindeer-icon.png"/>
+    <graphics type="ELLIPSE" h="80" w="80" x="221.7289810180664" 
y="306.4962463378906" fill="#070a5a" width="0" outline="#000000" 
cy:nodeTransparency="1.0" cy:nodeLabelFont="Default-0-12" 
cy:borderLineType="solid"/>
+  </node>
+  <node label="Prancer" id="-32">
+    <att type="string" name="canonicalName" value="Prancer"/>
+    <att type="string" name="gene name" value="Prancer"/>
+    <att type="real" name="log score" value="-6.335534869800079"/>
+    <att type="string" name="node type" value="result"/>
+    <att type="real" name="score" value="0.0017721976900291758"/>
+    <att type="string" name="user" value="Prancer"/>
+    <att type="string" name="image" 
value="img/content/demo/examples/Reindeer-icon.png"/>
+    <graphics type="ELLIPSE" h="80" w="80" x="175.98239135742188" 
y="183.8248748779297" fill="#070a5a" width="0" outline="#000000" 
cy:nodeTransparency="1.0" cy:nodeLabelFont="Default-0-12" 
cy:borderLineType="solid"/>
+  </node>
+  <node label="Cupid" id="-31">
+    <att type="string" name="canonicalName" value="Cupid"/>
+    <att type="string" name="gene name" value="Cupid"/>
+    <att type="real" name="log score" value="-4.250154882877387"/>
+    <att type="string" name="node type" value="result"/>
+    <att type="real" name="score" value="0.014262024794489125"/>
+    <att type="string" name="user" value="Cupid"/>
+    <att type="string" name="image" 
value="img/content/demo/examples/Reindeer-icon.png"/>
+    <graphics type="ELLIPSE" h="80" w="80" x="90.95795440673828" 
y="354.96177673339844" fill="#070a5a" width="0" outline="#000000" 
cy:nodeTransparency="1.0" cy:nodeLabelFont="Default-0-12" 
cy:borderLineType="solid"/>
+  </node>
+  <node label="Comet" id="-30">
+    <att type="string" name="canonicalName" value="Comet"/>
+    <att type="string" name="gene name" value="Comet"/>
+    <att type="real" name="log score" value="-4.250154882877387"/>
+    <att type="string" name="node type" value="result"/>
+    <att type="real" name="score" value="0.014262024794489125"/>
+    <att type="string" name="user" value="Comet"/>
+    <att type="string" name="image" 
value="img/content/demo/examples/Reindeer-icon.png"/>
+    <graphics type="ELLIPSE" h="80" w="80" x="41.28349494934082" 
y="230.15220642089844" fill="#070a5a" width="0" outline="#000000" 
cy:nodeTransparency="1.0" cy:nodeLabelFont="Default-0-12" 
cy:borderLineType="solid"/>
+  </node>
+  <node label="Blixem" id="-3">
+    <att type="string" name="Synonym" value="Blitzen"/>
+    <att type="string" name="canonicalName" value="Blixem"/>
+    <att type="string" name="gene name" value="Blixem"/>
+    <att type="real" name="log score" value="-2.1863673572304423"/>
+    <att type="string" name="node type" value="result"/>
+    <att type="real" name="score" value="0.1123240415118908"/>
+    <att type="string" name="user" value="Blixem"/>
+    <att type="string" name="image" 
value="img/content/demo/examples/Reindeer-icon.png"/>
+    <graphics type="ELLIPSE" h="80" w="80" x="-37.744534492492676" 
y="401.4985656738281" fill="#070a5a" width="0" outline="#000000" 
cy:nodeTransparency="1.0" cy:nodeLabelFont="Default-0-12" 
cy:borderLineType="solid"/>
+  </node>
+  <node label="Dunder" id="-1">
+    <att type="string" name="Synonym" value="Donner"/>
+    <att type="string" name="canonicalName" value="Dunder"/>
+    <att type="string" name="gene name" value="Dunder"/>
+    <att type="real" name="log score" value="-2.1863673572304423"/>
+    <att type="string" name="node type" value="result"/>
+    <att type="real" name="score" value="0.1123240415118908"/>
+    <att type="string" name="user" value="Dunder"/>
+    <att type="string" name="image" 
value="img/content/demo/examples/Reindeer-icon.png"/>
+    <graphics type="ELLIPSE" h="80" w="80" x="-84.76983261108398" 
y="286.78758239746094" fill="#070a5a" width="0" outline="#000000" 
cy:nodeTransparency="1.0" cy:nodeLabelFont="Default-0-12" 
cy:borderLineType="solid"/>
+  </node>
+  <node label="Dancer" id="-26">
+    <att type="string" name="canonicalName" value="Dancer"/>
+    <att type="string" name="gene name" value="Dancer"/>
+    <att type="real" name="log score" value="-8.269048168079786"/>
+    <att type="string" name="node type" value="result"/>
+    <att type="real" name="score" value="2.563291574530502E-4"/>
+    <att type="string" name="user" value="Dancer"/>
+    <att type="string" name="image" 
value="img/content/demo/examples/Reindeer-icon.png"/>
+    <graphics type="ELLIPSE" h="80" w="80" x="354.14991760253906" 
y="268.0941467285156" fill="#070a5a" width="0" outline="#000000" 
cy:nodeTransparency="1.0" cy:nodeLabelFont="Default-0-12" 
cy:borderLineType="solid"/>
+  </node>
+  <node label="Dasher" id="-27">
+    <att type="string" name="canonicalName" value="Dasher"/>
+    <att type="string" name="gene name" value="Dasher"/>
+    <att type="real" name="log score" value="-8.269048168079786"/>
+    <att type="string" name="node type" value="result"/>
+    <att type="real" name="score" value="2.563291574530502E-4"/>
+    <att type="string" name="user" value="Dasher"/>
+    <att type="string" name="image" 
value="img/content/demo/examples/Reindeer-icon.png"/>
+    <graphics type="ELLIPSE" h="80" w="80" x="313.19081115722656" 
y="151.59380340576172" fill="#070a5a" width="0" outline="#000000" 
cy:nodeTransparency="1.0" cy:nodeLabelFont="Default-0-12" 
cy:borderLineType="solid"/>
+  </node>
+  <node label="Rudolph" id="-29">
+    <att type="string" name="canonicalName" value="Rudolph"/>
+    <att type="string" name="gene name" value="Rudolph"/>
+    <att type="real" name="log score" value="-9.150257359325112"/>
+    <att type="string" name="node type" value="result"/>
+    <att type="real" name="score" value="1.061924696070804E-4"/>
+    <att type="string" name="user" value="Rudolph"/>
+    <att type="string" name="image" 
value="img/content/demo/examples/Rudolph-icon.png"/>
+    <graphics type="ELLIPSE" h="80" w="80" x="421.251953125" 
y="180.38258361816406" fill="#070a5a" width="0" outline="#000000" 
cy:nodeTransparency="1.0" cy:nodeLabelFont="Default-0-12" 
cy:borderLineType="solid"/>
+  </node>
+  
+  <edge label="Vixen (A Visit From St  Nicholas R  tarandus  4 ) Prancer" 
source="-13" target="-32">
+    <att type="string" name="canonicalName" value="Vixen (A Visit From St  
Nicholas R  tarandus  4 ) Prancer"/>
+    <att type="string" name="data type" value="A Visit From St. Nicholas"/>
+    <att type="integer" name="highlight" value="1"/>
+    <att type="string" name="interaction" value="A Visit From St  Nicholas R  
tarandus  4 " cy:editable="false"/>
+    <att type="list" name="networks">
+      <att type="string" name="networks" value="A Visit From St. Nicholas"/>
+    </att>
+    <att type="real" name="normalized max weight" value="0.1666666716337204"/>
+    <att type="integer" name="rank" value="0"/>
+    <att type="list" name="raw weights">
+      <att type="real" name="raw weights" value="0.3333333432674408"/>
+    </att>
+    <graphics width="3" fill="#ff0000" cy:sourceArrow="0" cy:targetArrow="0" 
cy:sourceArrowColor="#000000" cy:targetArrowColor="#000000" 
cy:edgeLabelFont="SanSerif-0-10" cy:edgeLineType="SOLID" 
cy:curved="STRAIGHT_LINES"/>
+  </edge>
+  <edge label="Vixen (A Visit From St  Nicholas R  tarandus  4 ) Cupid" 
source="-13" target="-31">
+    <att type="string" name="canonicalName" value="Vixen (A Visit From St  
Nicholas R  tarandus  4 ) Cupid"/>
+    <att type="string" name="data type" value="A Visit From St. Nicholas"/>
+    <att type="integer" name="highlight" value="1"/>
+    <att type="string" name="interaction" value="A Visit From St  Nicholas R  
tarandus  4 " cy:editable="false"/>
+    <att type="list" name="networks">
+      <att type="string" name="networks" value="A Visit From St. Nicholas"/>
+    </att>
+    <att type="real" name="normalized max weight" value="0.1666666716337204"/>
+    <att type="integer" name="rank" value="0"/>
+    <att type="list" name="raw weights">
+      <att type="real" name="raw weights" value="0.3333333432674408"/>
+    </att>
+    <graphics width="3" fill="#ff0000" cy:sourceArrow="0" cy:targetArrow="0" 
cy:sourceArrowColor="#000000" cy:targetArrowColor="#000000" 
cy:edgeLabelFont="SanSerif-0-10" cy:edgeLineType="SOLID" 
cy:curved="STRAIGHT_LINES"/>
+  </edge>
+  <edge label="Prancer (A Visit From St  Nicholas R  tarandus  4 ) Comet" 
source="-32" target="-30">
+    <att type="string" name="canonicalName" value="Prancer (A Visit From St  
Nicholas R  tarandus  4 ) Comet"/>
+    <att type="string" name="data type" value="A Visit From St. Nicholas"/>
+    <att type="integer" name="highlight" value="1"/>
+    <att type="string" name="interaction" value="A Visit From St  Nicholas R  
tarandus  4 " cy:editable="false"/>
+    <att type="list" name="networks">
+      <att type="string" name="networks" value="A Visit From St. Nicholas"/>
+    </att>
+    <att type="real" name="normalized max weight" value="0.1666666716337204"/>
+    <att type="integer" name="rank" value="0"/>
+    <att type="list" name="raw weights">
+      <att type="real" name="raw weights" value="0.3333333432674408"/>
+    </att>
+    <graphics width="3" fill="#ff0000" cy:sourceArrow="0" cy:targetArrow="0" 
cy:sourceArrowColor="#000000" cy:targetArrowColor="#000000" 
cy:edgeLabelFont="SanSerif-0-10" cy:edgeLineType="SOLID" 
cy:curved="STRAIGHT_LINES"/>
+  </edge>
+  <edge label="Cupid (A Visit From St  Nicholas R  tarandus  4 ) Comet" 
source="-31" target="-30">
+    <att type="string" name="canonicalName" value="Cupid (A Visit From St  
Nicholas R  tarandus  4 ) Comet"/>
+    <att type="string" name="data type" value="A Visit From St. Nicholas"/>
+    <att type="integer" name="highlight" value="1"/>
+    <att type="string" name="interaction" value="A Visit From St  Nicholas R  
tarandus  4 " cy:editable="false"/>
+    <att type="list" name="networks">
+      <att type="string" name="networks" value="A Visit From St. Nicholas"/>
+    </att>
+    <att type="real" name="normalized max weight" value="0.1666666716337204"/>
+    <att type="integer" name="rank" value="0"/>
+    <att type="list" name="raw weights">
+      <att type="real" name="raw weights" value="0.3333333432674408"/>
+    </att>
+    <graphics width="3" fill="#ff0000" cy:sourceArrow="0" cy:targetArrow="0" 
cy:sourceArrowColor="#000000" cy:targetArrowColor="#000000" 
cy:edgeLabelFont="SanSerif-0-10" cy:edgeLineType="SOLID" 
cy:curved="STRAIGHT_LINES"/>
+  </edge>
+  <edge label="Cupid (A Visit From St  Nicholas R  tarandus  4 ) Blixem" 
source="-31" target="-3">
+    <att type="string" name="canonicalName" value="Cupid (A Visit From St  
Nicholas R  tarandus  4 ) Blixem"/>
+    <att type="string" name="data type" value="A Visit From St. Nicholas"/>
+    <att type="integer" name="highlight" value="1"/>
+    <att type="string" name="interaction" value="A Visit From St  Nicholas R  
tarandus  4 " cy:editable="false"/>
+    <att type="list" name="networks">
+      <att type="string" name="networks" value="A Visit From St. Nicholas"/>
+    </att>
+    <att type="real" name="normalized max weight" value="0.1666666716337204"/>
+    <att type="integer" name="rank" value="0"/>
+    <att type="list" name="raw weights">
+      <att type="real" name="raw weights" value="0.3333333432674408"/>
+    </att>
+    <graphics width="3" fill="#ff0000" cy:sourceArrow="0" cy:targetArrow="0" 
cy:sourceArrowColor="#000000" cy:targetArrowColor="#000000" 
cy:edgeLabelFont="SanSerif-0-10" cy:edgeLineType="SOLID" 
cy:curved="STRAIGHT_LINES"/>
+  </edge>
+  <edge label="Comet (A Visit From St  Nicholas R  tarandus  4 ) Dunder" 
source="-30" target="-1">
+    <att type="string" name="canonicalName" value="Comet (A Visit From St  
Nicholas R  tarandus  4 ) Dunder"/>
+    <att type="string" name="data type" value="A Visit From St. Nicholas"/>
+    <att type="integer" name="highlight" value="1"/>
+    <att type="string" name="interaction" value="A Visit From St  Nicholas R  
tarandus  4 " cy:editable="false"/>
+    <att type="list" name="networks">
+      <att type="string" name="networks" value="A Visit From St. Nicholas"/>
+    </att>
+    <att type="real" name="normalized max weight" value="0.1666666716337204"/>
+    <att type="integer" name="rank" value="0"/>
+    <att type="list" name="raw weights">
+      <att type="real" name="raw weights" value="0.3333333432674408"/>
+    </att>
+    <graphics width="3" fill="#ff0000" cy:sourceArrow="0" cy:targetArrow="0" 
cy:sourceArrowColor="#000000" cy:targetArrowColor="#000000" 
cy:edgeLabelFont="SanSerif-0-10" cy:edgeLineType="SOLID" 
cy:curved="STRAIGHT_LINES"/>
+  </edge>
+  <edge label="Blixem (A Visit From St  Nicholas R  tarandus  4 ) Dunder" 
source="-3" target="-1">
+    <att type="string" name="canonicalName" value="Blixem (A Visit From St  
Nicholas R  tarandus  4 ) Dunder"/>
+    <att type="string" name="data type" value="A Visit From St. Nicholas"/>
+    <att type="integer" name="highlight" value="1"/>
+    <att type="string" name="interaction" value="A Visit From St  Nicholas R  
tarandus  4 " cy:editable="false"/>
+    <att type="list" name="networks">
+      <att type="string" name="networks" value="A Visit From St. Nicholas"/>
+    </att>
+    <att type="real" name="normalized max weight" value="0.1666666716337204"/>
+    <att type="integer" name="rank" value="0"/>
+    <att type="list" name="raw weights">
+      <att type="real" name="raw weights" value="0.3333333432674408"/>
+    </att>
+    <graphics width="3" fill="#ff0000" cy:sourceArrow="0" cy:targetArrow="0" 
cy:sourceArrowColor="#000000" cy:targetArrowColor="#000000" 
cy:edgeLabelFont="SanSerif-0-10" cy:edgeLineType="SOLID" 
cy:curved="STRAIGHT_LINES"/>
+  </edge>
+  <edge label="Blixem (A Visit From St  Nicholas R  tarandus  4 ) Santa" 
source="-3" target="-2">
+    <att type="string" name="canonicalName" value="Blixem (A Visit From St  
Nicholas R  tarandus  4 ) Santa"/>
+    <att type="string" name="data type" value="A Visit From St. Nicholas"/>
+    <att type="integer" name="highlight" value="1"/>
+    <att type="string" name="interaction" value="A Visit From St  Nicholas R  
tarandus  4 " cy:editable="false"/>
+    <att type="list" name="networks">
+      <att type="string" name="networks" value="A Visit From St. Nicholas"/>
+    </att>
+    <att type="real" name="normalized max weight" value="0.20412415266036987"/>
+    <att type="integer" name="rank" value="0"/>
+    <att type="list" name="raw weights">
+      <att type="real" name="raw weights" value="0.40824830532073975"/>
+    </att>
+    <graphics width="3" fill="#ff0000" cy:sourceArrow="0" cy:targetArrow="0" 
cy:sourceArrowColor="#000000" cy:targetArrowColor="#000000" 
cy:edgeLabelFont="SanSerif-0-10" cy:edgeLineType="SOLID" 
cy:curved="STRAIGHT_LINES"/>
+  </edge>
+  <edge label="Dunder (A Visit From St  Nicholas R  tarandus  4 ) Santa" 
source="-1" target="-2">
+    <att type="string" name="canonicalName" value="Dunder (A Visit From St  
Nicholas R  tarandus  4 ) Santa"/>
+    <att type="string" name="data type" value="A Visit From St. Nicholas"/>
+    <att type="integer" name="highlight" value="1"/>
+    <att type="string" name="interaction" value="A Visit From St  Nicholas R  
tarandus  4 " cy:editable="false"/>
+    <att type="list" name="networks">
+      <att type="string" name="networks" value="A Visit From St. Nicholas"/>
+    </att>
+    <att type="real" name="normalized max weight" value="0.20412415266036987"/>
+    <att type="integer" name="rank" value="0"/>
+    <att type="list" name="raw weights">
+      <att type="real" name="raw weights" value="0.40824830532073975"/>
+    </att>
+    <graphics width="3" fill="#ff0000" cy:sourceArrow="0" cy:targetArrow="0" 
cy:sourceArrowColor="#000000" cy:targetArrowColor="#000000" 
cy:edgeLabelFont="SanSerif-0-10" cy:edgeLineType="SOLID" 
cy:curved="STRAIGHT_LINES"/>
+  </edge>
+  <edge label="Dancer (A Visit From St  Nicholas R  tarandus  4 ) Dasher" 
source="-26" target="-27">
+    <att type="string" name="canonicalName" value="Dancer (A Visit From St  
Nicholas R  tarandus  4 ) Dasher"/>
+    <att type="string" name="data type" value="A Visit From St. Nicholas"/>
+    <att type="integer" name="highlight" value="1"/>
+    <att type="string" name="interaction" value="A Visit From St  Nicholas R  
tarandus  4 " cy:editable="false"/>
+    <att type="list" name="networks">
+      <att type="string" name="networks" value="A Visit From St. Nicholas"/>
+    </att>
+    <att type="real" name="normalized max weight" value="0.25"/>
+    <att type="integer" name="rank" value="0"/>
+    <att type="list" name="raw weights">
+      <att type="real" name="raw weights" value="0.5"/>
+    </att>
+    <graphics width="3" fill="#ff0000" cy:sourceArrow="0" cy:targetArrow="0" 
cy:sourceArrowColor="#000000" cy:targetArrowColor="#000000" 
cy:edgeLabelFont="SanSerif-0-10" cy:edgeLineType="SOLID" 
cy:curved="STRAIGHT_LINES"/>
+  </edge>
+  <edge label="Dancer (A Visit From St  Nicholas R  tarandus  4 ) Vixen" 
source="-26" target="-13">
+    <att type="string" name="canonicalName" value="Dancer (A Visit From St  
Nicholas R  tarandus  4 ) Vixen"/>
+    <att type="string" name="data type" value="A Visit From St. Nicholas"/>
+    <att type="integer" name="highlight" value="1"/>
+    <att type="string" name="interaction" value="A Visit From St  Nicholas R  
tarandus  4 " cy:editable="false"/>
+    <att type="list" name="networks">
+      <att type="string" name="networks" value="A Visit From St. Nicholas"/>
+    </att>
+    <att type="real" name="normalized max weight" value="0.20412415266036987"/>
+    <att type="integer" name="rank" value="0"/>
+    <att type="list" name="raw weights">
+      <att type="real" name="raw weights" value="0.40824830532073975"/>
+    </att>
+    <graphics width="3" fill="#ff0000" cy:sourceArrow="0" cy:targetArrow="0" 
cy:sourceArrowColor="#000000" cy:targetArrowColor="#000000" 
cy:edgeLabelFont="SanSerif-0-10" cy:edgeLineType="SOLID" 
cy:curved="STRAIGHT_LINES"/>
+  </edge>
+  <edge label="Dasher (A Visit From St  Nicholas R  tarandus  4 ) Prancer" 
source="-27" target="-32">
+    <att type="string" name="canonicalName" value="Dasher (A Visit From St  
Nicholas R  tarandus  4 ) Prancer"/>
+    <att type="string" name="data type" value="A Visit From St. Nicholas"/>
+    <att type="integer" name="highlight" value="1"/>
+    <att type="string" name="interaction" value="A Visit From St  Nicholas R  
tarandus  4 " cy:editable="false"/>
+    <att type="list" name="networks">
+      <att type="string" name="networks" value="A Visit From St. Nicholas"/>
+    </att>
+    <att type="real" name="normalized max weight" value="0.20412415266036987"/>
+    <att type="integer" name="rank" value="0"/>
+    <att type="list" name="raw weights">
+      <att type="real" name="raw weights" value="0.40824830532073975"/>
+    </att>
+    <graphics width="3" fill="#ff0000" cy:sourceArrow="0" cy:targetArrow="0" 
cy:sourceArrowColor="#000000" cy:targetArrowColor="#000000" 
cy:edgeLabelFont="SanSerif-0-10" cy:edgeLineType="SOLID" 
cy:curved="STRAIGHT_LINES"/>
+  </edge>
+  <edge label="Rudolph (Rudolph the Red Nosed Reindeer R  tarandus  4 ) 
Dancer" source="-29" target="-26">
+    <att type="string" name="canonicalName" value="Rudolph (Rudolph the Red 
Nosed Reindeer R  tarandus  4 ) Dancer"/>
+    <att type="string" name="data type" value="Rudolph the Red-Nosed 
Reindeer"/>
+    <att type="integer" name="highlight" value="1"/>
+    <att type="string" name="interaction" value="Rudolph the Red Nosed 
Reindeer R  tarandus  4 " cy:editable="false"/>
+    <att type="list" name="networks">
+      <att type="string" name="networks" value="Rudolph the Red-Nosed 
Reindeer"/>
+    </att>
+    <att type="real" name="normalized max weight" value="0.3535533845424652"/>
+    <att type="integer" name="rank" value="1"/>
+    <att type="list" name="raw weights">
+      <att type="real" name="raw weights" value="0.7071067690849304"/>
+    </att>
+    <graphics width="3" fill="#ff0000" cy:sourceArrow="0" cy:targetArrow="0" 
cy:sourceArrowColor="#000000" cy:targetArrowColor="#000000" 
cy:edgeLabelFont="SanSerif-0-10" cy:edgeLineType="SOLID" 
cy:curved="STRAIGHT_LINES"/>
+  </edge>
+  <edge label="Rudolph (Rudolph the Red Nosed Reindeer R  tarandus  4 ) 
Dasher" source="-29" target="-27">
+    <att type="string" name="canonicalName" value="Rudolph (Rudolph the Red 
Nosed Reindeer R  tarandus  4 ) Dasher"/>
+    <att type="string" name="data type" value="Rudolph the Red-Nosed 
Reindeer"/>
+    <att type="integer" name="highlight" value="1"/>
+    <att type="string" name="interaction" value="Rudolph the Red Nosed 
Reindeer R  tarandus  4 " cy:editable="false"/>
+    <att type="list" name="networks">
+      <att type="string" name="networks" value="Rudolph the Red-Nosed 
Reindeer"/>
+    </att>
+    <att type="real" name="normalized max weight" value="0.3535533845424652"/>
+    <att type="integer" name="rank" value="1"/>
+    <att type="list" name="raw weights">
+      <att type="real" name="raw weights" value="0.7071067690849304"/>
+    </att>
+    <graphics width="3" fill="#ff0000" cy:sourceArrow="0" cy:targetArrow="0" 
cy:sourceArrowColor="#000000" cy:targetArrowColor="#000000" 
cy:edgeLabelFont="SanSerif-0-10" cy:edgeLineType="SOLID" 
cy:curved="STRAIGHT_LINES"/>
+  </edge>
+</graph>

Added: 
cytoscapeweb/trunk/website/src/img/content/demo/examples/Reindeer-icon.png
===================================================================
(Binary files differ)


Property changes on: 
cytoscapeweb/trunk/website/src/img/content/demo/examples/Reindeer-icon.png
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: cytoscapeweb/trunk/website/src/img/content/demo/examples/Rudolph-icon.png
===================================================================
(Binary files differ)


Property changes on: 
cytoscapeweb/trunk/website/src/img/content/demo/examples/Rudolph-icon.png
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: 
cytoscapeweb/trunk/website/src/img/content/demo/examples/Santa-Claus-icon.png
===================================================================
(Binary files differ)


Property changes on: 
cytoscapeweb/trunk/website/src/img/content/demo/examples/Santa-Claus-icon.png
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: cytoscapeweb/trunk/website/src/img/content/demo/examples/reindeers.png
===================================================================
(Binary files differ)


Property changes on: 
cytoscapeweb/trunk/website/src/img/content/demo/examples/reindeers.png
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Modified: cytoscapeweb/trunk/website/src/js/content/demo.js
===================================================================
--- cytoscapeweb/trunk/website/src/js/content/demo.js   2010-12-03 23:33:20 UTC 
(rev 23086)
+++ cytoscapeweb/trunk/website/src/js/content/demo.js   2010-12-03 23:55:34 UTC 
(rev 23087)
@@ -354,11 +354,20 @@
                edgeTooltipsEnabled: true,
                swfPath: path("swf/CytoscapeWeb"),
                flashInstallerPath: path("swf/playerProductInstall"),
+               preloadImages: false,
                useProxy: false
     };
     
     // example graphs    
     var examples = {
+        reindeers: {
+               name: "Reindeers",
+               description: "Merry Christmas!",
+               url: path("file/example_graphs/santa.xgmml"),
+               visualStyleName: "Dark",
+               visualStyle: GRAPH_STYLES["Images"],
+               nodeLabelsVisible: true
+           },
         shapes: {
             name: "Shapes example",
             description: "A graph that contains all possible shapes for nodes 
and arrows",
@@ -367,14 +376,6 @@
             visualStyle: GRAPH_STYLES["Shapes"],
             nodeLabelsVisible: false
         },
-        peterson: {
-            name: "Petersen example",
-            description: "The Petersen graph",
-            url: path("file/example_graphs/petersen.xgmml"),
-            visualStyleName: "Circles",
-            visualStyle: GRAPH_STYLES["Circles"],
-            nodeLabelsVisible: false
-        },
         disconnected: {
             name: "Disconnected example",
             description: "A graph that contains several, disconnected 
components",
@@ -438,6 +439,7 @@
         if( options.url != undefined ) {
             $.ajax({
                 url: options.url,
+                dataType: "text/plain",
                 
                 success: function(data){
                        options.network = data;

Modified: 
cytoscapeweb/trunk/website/src/js/cytoscape_web/cytoscapeweb-styles-demo.js
===================================================================
--- cytoscapeweb/trunk/website/src/js/cytoscape_web/cytoscapeweb-styles-demo.js 
2010-12-03 23:33:20 UTC (rev 23086)
+++ cytoscapeweb/trunk/website/src/js/cytoscape_web/cytoscapeweb-styles-demo.js 
2010-12-03 23:55:34 UTC (rev 23087)
@@ -280,6 +280,10 @@
        
        GRAPH_STYLES["Shapes"] = {
                        nodes: {
+                               selectionColor: "#aaaaff",
+                               selectionOpacity: 1,
+                               hoverOpacity: 1,
+                       image: 
"/file/php/proxy.php?mimeType=image/gif&url=http://chart.apis.google.com/chart?chs=300x300%26cht=p%26chd=e0:U-gh..bR";,
                                shape: { passthroughMapper: { attrName: "shape" 
} }
                        },
                        edges: {
@@ -408,5 +412,44 @@
                                selectionOpacity: 1
                        }
        };
+       
+       /*---- IMAGES 
------------------------------------------------------------------------------------*/
+       
+       GRAPH_STYLES["Images"] = {
+                       global: {
+                       backgroundColor: "#000000",
+                       selectionLineColor: "#ffffff",
+                       selectionLineOpacity: 0.5,
+                       selectionLineWidth: 1,
+                       selectionFillColor: "#fefefe",
+                       selectionFillOpacity: 0.1
+               },
+               nodes: {
+                       opacity: 1,
+                       size: 40,
+                       labelFontColor: "#ffffff",
+                       labelVerticalAnchor: "top",
+                       tooltipText: "${label}",
+                       tooltipFontColor: "#ffffff",
+                       tooltipBackgroundColor: "#000000",
+                       tooltipBorderColor: "#999999",
+                       labelGlowOpacity: 0,
+                       selectionGlowColor: "#ffffaa",
+                       image: { passthroughMapper: { attrName: "image" } }
+               },
+               edges: {
+                       opacity: 1,
+                       color: "#ff0000",
+                       width: 3,
+                       mergeWidth: 3,
+                       labelFontColor: "#ffffff",
+                       tooltipFontColor: "#ffffff",
+                       tooltipBackgroundColor: "#000000",
+                       tooltipBorderColor: "#999999",
+                       selectionGlowColor: "#ffffaa",
+                       hoverOpacity: 1,
+                       selectionOpacity: 1
+               }
+       };
 
 });
\ No newline at end of file

-- 
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.

Reply via email to