Author: Christian Lopes
Date: 2010-01-15 14:43:48 -0800 (Fri, 15 Jan 2010)
New Revision: 18938

Modified:
   cytoscapeweb/trunk/cytoscapeweb/html-template/js/cytoscapeweb.js
Log:
API documentation corrections.

Modified: cytoscapeweb/trunk/cytoscapeweb/html-template/js/cytoscapeweb.js
===================================================================
--- cytoscapeweb/trunk/cytoscapeweb/html-template/js/cytoscapeweb.js    
2010-01-15 21:55:34 UTC (rev 18937)
+++ cytoscapeweb/trunk/cytoscapeweb/html-template/js/cytoscapeweb.js    
2010-01-15 22:43:48 UTC (rev 18938)
@@ -75,22 +75,22 @@
      * @param {String} containerId The id of the HTML element (containing your 
alternative content)
      *                             you would like to have replaced by the 
Flash object.
      * @param {Object} [options] Cytoscape Web parameters:
-     *                <ul>
-     *                    <li><strong><code>swfPath</code></strong>: The path 
of the compiled Cytoscape Web SWF file, but without the
+     *                <ul class="options">
+     *                    <li><code>swfPath</code>: The path of the compiled 
Cytoscape Web SWF file, but without the
      *                                                               
<code>.swf</code> extension. If you use the provided 
<code>CytoscapeWeb.swf</code>
      *                                                               file and 
put it in the root path of the web application, this option does not need
      *                                                               to be 
informed. But, for example, if you deploy the swf file at 
<code>/plugin/flash</code>,
      *                                                               the 
<code>swfPath</code> value must be "/plugin/flash/CytoscapeWeb".</li>
-     *                    
<li><strong><code>flashInstallerPath</code></strong>: The path to the compiled 
Flash video that should be displayed in case
+     *                    <li><code>flashInstallerPath</code>: The path to the 
compiled Flash video that should be displayed in case
      *                                                                         
 the browser does not have the Flash Player version required by Cytoscape Web.
      *                                                                         
 The default value is "playerProductInstall" and, if this option is not changed,
      *                                                                         
 the <code>playerProductInstall.swf</code> file must be deployed in the
      *                                                                         
 web site's root path. Otherwise, just inform the new path without the
      *                                                                         
 <code>.swf</code> extension.</li>
-     *                    
<li><strong><code>flashAlternateContent</code></strong>: The text message that 
should be displayed if the browser does not have
+     *                    <li><code>flashAlternateContent</code>: The text 
message that should be displayed if the browser does not have
      *                                                                         
    the Flash Player plugin. If none is provided, Cytoscape Web will show
      *                                                                         
    a default message and a link to the "Get Flash" page.</li>
-     *                    <li><strong><code>resourceBundleUrl</code></strong>: 
An optional resource bundle path. Usually a <code>.properties</code></strong> 
file
+     *                    <li><code>resourceBundleUrl</code>: An optional 
resource bundle path. Usually a <code>.properties</code> file
      *                                                                         
that redefines the default labels and messages used by Cytoscape Web.
      *                                                                         
Example of a valid file with all the available keys:
      * <pre>
@@ -106,7 +106,7 @@
      * zoom.slider.tooltip = {0}%
      * zoom.slider.datatip = {0}%
      * </pre></li>
-     *                    <li><strong><code>idToken</code></strong>: A string 
used to create the embedded Flash video id
+     *                    <li><code>idToken</code>: A string used to create 
the embedded Flash video id
      *                                                               (usually 
an HTML <code>embed</code> or <code>object</code> tag).
      *                                                               The 
default token is "cytoscapeWeb" and the final id will be the token followed
      *                                                               by a 
number, so if the application has two instances of the Visualization in the 
same page,
@@ -176,29 +176,29 @@
          * vis.draw({ network: '&lt;graphml&gt;...&lt;/graphml&gt;' });
          *
          * @param {Object} options
-         *               <ul>Possible options:
-         *                    <li><strong><code>network</code></strong>: The 
XML string that describes the network, either a
+         *               <ul class="options">Possible options:
+         *                    <li><code>network</code>: The XML string that 
describes the network, either a
          *                                                               <a 
href="http://graphml.graphdrawing.org/primer/graphml-primer.html"; 
target="_blank">GraphML</a>
          *                                                               or an 
<a href="http://www.cs.rpi.edu/~puninj/XGMML/"; target="_blank">XGMML</a> 
format.</li>
-         *                    <li><strong><code>visualStyle</code></strong>: 
an optional {...@link org.cytoscapeweb.VisualStyle} object to be applied on 
this network.</li>
-         *                    <li><strong><code>layout</code></strong>: an 
optional {...@link org.cytoscapeweb.Layout} name to be applied on this network. 
The default is "ForceDirected"</li>
-         *                    
<li><strong><code>nodeLabelsVisible</code></strong>: Boolean that defines 
whether or not the node labels will be visible.
+         *                    <li><code>visualStyle</code>: an optional 
{...@link org.cytoscapeweb.VisualStyle} object to be applied on this 
network.</li>
+         *                    <li><code>layout</code>: an optional {...@link 
org.cytoscapeweb.Layout} name to be applied on this network. The default is 
"ForceDirected"</li>
+         *                    <li><code>nodeLabelsVisible</code>: Boolean that 
defines whether or not the node labels will be visible.
          *                                                                     
    The default value is <code>true</code>.
          *                                                                     
    You can call {...@link org.cytoscapeweb.Visualization#nodeLabelsVisible} 
          *                                                                     
    later (after the network is ready) to change it.</li>
-         *                    
<li><strong><code>edgeLabelsVisible</code></strong>: Boolean that defines 
whether or not the edge labels will be visible.
+         *                    <li><code>edgeLabelsVisible</code>: Boolean that 
defines whether or not the edge labels will be visible.
          *                                                                     
    The default value is <code>false</code>.
          *                                                                     
    You can use {...@link org.cytoscapeweb.Visualization#edgeLabelsVisible} 
later to change it.</li>
-         *                    
<li><strong><code>nodeTooltipsEnabled</code></strong>: Boolean value that 
enables or disables the node tooltips.
+         *                    <li><code>nodeTooltipsEnabled</code>: Boolean 
value that enables or disables the node tooltips.
          *                                                                     
      The default value is <code>true</code>.
          *                                                                     
      You can call {...@link 
org.cytoscapeweb.Visualization#nodeTooltipsEnabled} later to change it.</li>
-         *                    
<li><strong><code>edgeTooltipsEnabled</code></strong>: Boolean that enables or 
disables the edge tooltips.
+         *                    <li><code>edgeTooltipsEnabled</code>: Boolean 
that enables or disables the edge tooltips.
          *                                                                     
      The default value is <code>true</code>.
          *                                                                     
      You can use {...@link org.cytoscapeweb.Visualization#edgeTooltipsEnabled} 
later to change it.</li>
-         *                    <li><strong><code>edgesMerged</code></strong>: 
Boolean that defines whether or not the network will be initially
+         *                    <li><code>edgesMerged</code>: Boolean that 
defines whether or not the network will be initially
          *                                                                   
rendered with merged edges. The default value is <code>false</code>.
          *                                                                   
You can call {...@link org.cytoscapeweb.Visualization#edgesMerged} after the 
network is ready to change it.</li>
-         *                    
<li><strong><code>panZoomControlVisible</code></strong>: Boolean value that 
sets whether or not the built-in control
+         *                    <li><code>panZoomControlVisible</code>: Boolean 
value that sets whether or not the built-in control
          *                                                                     
        will be visible. The default value is <code>true</code>.
          *                                                                     
        The visibility of the control can be changed later with
          *                                                                     
        {...@link org.cytoscapeweb.Visualization#panZoomControlVisible}.</li>
@@ -669,10 +669,10 @@
          * <p>Return the first neighbors of one or more nodes.</p>
          * @param {Array} nodes Array of node objects or node IDs.
          * @return An object that contains the following properties: 
-         *         <ul><li><code>rootNodes {Array}</code>: the node objects 
that were passed as the function parameter.</li>
-         *             <li><code>neighbors {Array}</code>: the node objects 
that are neighbors of the root ones.</li>
-         *             <li><code>edges {Array}</code>: the edge objects that 
connects the root and the neighbor nodes.</li>
-         *             <li><code>mergedEdges {Array}</code>: the merged edge 
objects that connect the returned nodes.</li></ul>.
+         *         <ul class="options"><li><code>rootNodes</code> {Array}: the 
node objects that were passed as the function parameter.</li>
+         *             <li><code>neighbors</code> {Array}: the node objects 
that are neighbors of the root ones.</li>
+         *             <li><code>edges</code> {Array}: the edge objects that 
connects the root and the neighbor nodes.</li>
+         *             <li><code>mergedEdges</code> {Array}: the merged edge 
objects that connect the returned nodes.</li></ul>.
          */
         firstNeighbors: function (nodes) {
             var str = this.swf().firstNeighbors(nodes);
@@ -749,9 +749,9 @@
          * @param {String} format One of: <code>png</code>, <code>pdf</code>, 
<code>xgmml</code>, <code>graphml</code>.
          * @param {String} url The url that will receive the exported image 
(bytes) or xml (text).
          * @param {Object} [options] Additional options:
-         *                              
<ul><li><strong><code>width</code>:</strong> The desired width of the image in 
pixels (only for 'pdf' format).</li>
-         *                                  
<li><strong><code>height</code>:</strong> The desired height of the image in 
pixels (only for 'pdf' format).</li>
-         *                                  
<li><strong><code>window</code>:</strong> The browser window or HTML frame in 
which to display the exported image or xml.
+         *                              <ul 
class="options"><li><code>width</code>:</strong> The desired width of the image 
in pixels (only for 'pdf' format).</li>
+         *                                  <li><code>height</code>:</strong> 
The desired height of the image in pixels (only for 'pdf' format).</li>
+         *                                  <li><code>window</code>:</strong> 
The browser window or HTML frame in which to display the exported image or xml.
          *                                                  You can enter the 
name of a specific window or use one of the following values:
          *                                                  
<ul><li><code>_self</code>: the current frame in the current window.</li>
          *                                                      
<li><code>_blank</code>: a new window.</li>
@@ -1668,12 +1668,19 @@
     /**
      * <p>This object represents a Visual Style type, but it is actually just 
an untyped object.</p>
      * <p>A visual style may have three attributes:</p>
-     * <ul><li>global</li><li>nodes</li><li>edges</li></ul>
+     * <ul class="options">
+     *     <li><code>global</code></li>
+     *     <li><code>nodes</code></li>
+     *     <li><code>edges</code></li></ul>
      * <p>Each one is an object that defines a set of visual properties.</p>
      * 
      * <p>For each visual property, you can specify a default value or define 
a dynamic visual mapping.
      * Cytoscape Web currently supports four different types of visual 
mappers:</p>
-     * 
<ul><li>continuousMapper</li><li>discreteMapper</li><li>passthroughMapper</li><li>customMapper</li></ul>
 
+     * <ul class="options">
+     *     <li><code>continuousMapper</code></li>
+     *     <li><code>discreteMapper</code></li>
+     *     <li><code>passthroughMapper</code></li>
+     *     <li><code>customMapper</code></li></ul> 
      * 
      * <p>In order to create a visual style, just create an object with the 
expected fields.</p>
      * <p>Never do:</p>
@@ -1719,15 +1726,15 @@
      * <p>Remember that global properties do not accept visual mappers, 
because they cannot be associated with nodes/edges data attributes.
      * If you try to set a mapper to a global property, the mapper is simply 
ignored.</p>
      * <p>The possible global properties are:</p>
-     * <ul><li><strong><code>backgroundColor</code></strong> {String}: 
Background color of the network view (hexadecimal code).
+     * <ul class="options"><li><code>backgroundColor</code> {String}: 
Background color of the network view (hexadecimal code).
      *                                                                 The 
default value is "#ffffff".</li>
-     *     <li><strong><code>tooltipDelay</code></strong>  {Number}: Number of 
milliseconds to delay before displaying the tooltip, when the cursor is over a 
node or edge.
+     *     <li><code>tooltipDelay</code>  {Number}: Number of milliseconds to 
delay before displaying the tooltip, when the cursor is over a node or edge.
      *                                                               The 
default value is 800 milliseconds.</li>
-     *     <li><strong><code>selectionFillColor</code></strong> {String}: Fill 
color of the drag-selection rectangle. The default value is "#8888ff".</li>
-     *     <li><strong><code>selectionLineColor</code></strong> {String}: Line 
color of the drag-selection border. The default value is "#8888ff".</li>
-     *     <li><strong><code>selectionFillOpacity</code></strong> {Number}: 
Fill opacity of the drag-selection rectangle (0 to 1). The default value is 
0.1.</li>
-     *     <li><strong><code>selectionLineOpacity</code></strong> {Number}: 
Line opacity of the drag-selection border (0 to 1). The default value is 
0.8.</li>
-     *     <li><strong><code>selectionLineWidth</code></strong> {Number}: Line 
width of the drag-selection border. The default value is 1.</li></ul>
+     *     <li><code>selectionFillColor</code> {String}: Fill color of the 
drag-selection rectangle. The default value is "#8888ff".</li>
+     *     <li><code>selectionLineColor</code> {String}: Line color of the 
drag-selection border. The default value is "#8888ff".</li>
+     *     <li><code>selectionFillOpacity</code> {Number}: Fill opacity of the 
drag-selection rectangle (0 to 1). The default value is 0.1.</li>
+     *     <li><code>selectionLineOpacity</code> {Number}: Line opacity of the 
drag-selection border (0 to 1). The default value is 0.8.</li>
+     *     <li><code>selectionLineWidth</code> {Number}: Line width of the 
drag-selection border. The default value is 1.</li></ul>
      * @property
      * @name global
      * @type Object
@@ -1736,82 +1743,82 @@
     /**
      * <p>An object that defines visual styles for nodes.</p>
      * <p>The possible node properties are:</p>
-     * <ul><li><strong><code>shape</code></strong> {...@link 
org.cytoscapeweb.NodeShape}}: Node shape name. The default value is 
"ELLIPSE".</li>
-     *     <li><strong><code>size</code></strong> {Number}: Node size, in 
pixels. The default value is 24.</li>
-     *     <li><strong><code>color</code></strong> {String}: Fill color code 
of nodes. The default value is "#f5f5f5".</li>
-     *     <li><strong><code>borderColor</code></strong> {String}: Border 
color of nodes. The default value is "#666666".</li>
-     *     <li><strong><code>borderWidth</code></strong> {Number}: Border 
width of nodes. The default value is 1.</li>
-     *     <li><strong><code>opacity</code></strong> {Number}: The node 
opacity (0 to 1). The default value is 0.8.</li>
-     *     <li><strong><code>selectionColor</code></strong> {String}: The fill 
color of selected nodes.
+     * <ul class="options"><li><code>shape</code> {...@link 
org.cytoscapeweb.NodeShape}}: Node shape name. The default value is 
"ELLIPSE".</li>
+     *     <li><code>size</code> {Number}: Node size, in pixels. The default 
value is 24.</li>
+     *     <li><code>color</code> {String}: Fill color code of nodes. The 
default value is "#f5f5f5".</li>
+     *     <li><code>borderColor</code> {String}: Border color of nodes. The 
default value is "#666666".</li>
+     *     <li><code>borderWidth</code> {Number}: Border width of nodes. The 
default value is 1.</li>
+     *     <li><code>opacity</code> {Number}: The node opacity (0 to 1). The 
default value is 0.8.</li>
+     *     <li><code>selectionColor</code> {String}: The fill color of 
selected nodes.
      *                                                                The 
default value is the same one set to <code>color</code>.</li>
-     *     <li><strong><code>selectionBorderColor</code></strong> {String}: 
The border color of selected nodes.
+     *     <li><code>selectionBorderColor</code> {String}: The border color of 
selected nodes.
      *                                                                      
The default value is the same one set to <code>borderColor</code>.</li>
-     *     <li><strong><code>selectionOpacity</code></strong> {Number}: The 
opacity of selected nodes (0 to 1).
+     *     <li><code>selectionOpacity</code> {Number}: The opacity of selected 
nodes (0 to 1).
      *                                                                  The 
default value is the same one set to <code>opacity</code>.</li>
-     *     <li><strong><code>selectionBorderWidth</code></strong> {Number}: 
The border width of selected nodes (0 to 1).
+     *     <li><code>selectionBorderWidth</code> {Number}: The border width of 
selected nodes (0 to 1).
      *                                                                      
The default value is the same one set to <code>borderWidth</code>.</li>
-     *     <li><strong><code>selectionGlowColor</code></strong> {String}: The 
glow color of selected nodes.The default value is "#ffff33".</li>
-     *     <li><strong><code>selectionGlowOpacity</code></strong> {Number}: 
The glow transparency of selected nodes. Valid values are 0 to 1.
+     *     <li><code>selectionGlowColor</code> {String}: The glow color of 
selected nodes.The default value is "#ffff33".</li>
+     *     <li><code>selectionGlowOpacity</code> {Number}: The glow 
transparency of selected nodes. Valid values are 0 to 1.
      *                                                                      
The default value is 0.6 (60% opaque).</li>
-     *     <li><strong><code>selectionGlowBlur</code></strong> {Number}: The 
amount of blur for the selection glow. Valid values are 0 to 255 (floating 
point).
+     *     <li><code>selectionGlowBlur</code> {Number}: The amount of blur for 
the selection glow. Valid values are 0 to 255 (floating point).
      *                                                                   The 
default value is 8. Values that are a power of 2 (such as 2, 4, 8, 16, and 32) 
      *                                                                   are 
optimized to render more quickly.</li>
-     *     <li><strong><code>selectionGlowStrength</code></strong> {Number}: 
The strength of the glow color imprint or spread when the node is selected.
+     *     <li><code>selectionGlowStrength</code> {Number}: The strength of 
the glow color imprint or spread when the node is selected.
      *                                                                       
The higher the value, the more color is imprinted and the stronger the contrast
      *                                                                       
between the glow and the background.
      *                                                                       
Valid values are 0 to 255. The default is 6.</li>
-     *     <li><strong><code>hoverOpacity</code></strong> {Number}: The 
opacity of the node when the mouse is over it (0 to 1).
+     *     <li><code>hoverOpacity</code> {Number}: The opacity of the node 
when the mouse is over it (0 to 1).
      *                                                              The 
default value is the same one set to <code>opacity</code>.</li>
-     *     <li><strong><code>hoverBorderColor</code></strong> {String}: The 
border color when the mouse is over a node.
+     *     <li><code>hoverBorderColor</code> {String}: The border color when 
the mouse is over a node.
      *                                                                  The 
default value is the same one set to <code>borderColor</code>.</li>
-     *     <li><strong><code>hoverBorderWidth</code></strong> {Number}: The 
node border width on mouse over.
+     *     <li><code>hoverBorderWidth</code> {Number}: The node border width 
on mouse over.
      *                                                                  The 
default value is the same one set to <code>borderWidth</code>.</li>
-     *     <li><strong><code>hoverGlowColor</code></strong> {String}: The node 
glow color on mouse over.
+     *     <li><code>hoverGlowColor</code> {String}: The node glow color on 
mouse over.
      *                                                                The 
default value is "#aae6ff".</li>
-     *     <li><strong><code>hoverGlowOpacity</code></strong> {Number}: The 
node glow opacity on mouse over (0 to 1).
+     *     <li><code>hoverGlowOpacity</code> {Number}: The node glow opacity 
on mouse over (0 to 1).
      *                                                                  The 
default value is 0, which means that there is no visible glow on mouse 
over.</li>
-     *     <li><strong><code>hoverGlowBlur</code></strong> {Number}: The 
amount of blur for the mouse over glow. Valid values are 0 to 255 (floating 
point).
+     *     <li><code>hoverGlowBlur</code> {Number}: The amount of blur for the 
mouse over glow. Valid values are 0 to 255 (floating point).
      *                                                               The 
default value is 8. Values that are a power of 2 (such as 2, 4, 8, 16, and 32) 
      *                                                               are 
optimized to render more quickly.</li>
-     *     <li><strong><code>hoverGlowStrength</code></strong> {Number}: The 
strength of the glow color imprint or spread on mouse over.
+     *     <li><code>hoverGlowStrength</code> {Number}: The strength of the 
glow color imprint or spread on mouse over.
      *                                                                   The 
higher the value, the more color is imprinted and the stronger the contrast
      *                                                                   
between the glow and the background.
      *                                                                   Valid 
values are 0 to 255. The default is 6.</li>
-     *     <li><strong><code>label</code></strong> {String}: The text to be 
displayed as node label. A Passthrough Mapper is created by default, 
+     *     <li><code>label</code> {String}: The text to be displayed as node 
label. A Passthrough Mapper is created by default, 
      *                                                       and it displays 
the node <code>data.label</code> attribute value.</li>
-     *     <li><strong><code>labelFontName</code></strong> {String}: Font name 
of node labels. The default is "Arial".</li>
-     *     <li><strong><code>labelFontSize</code></strong> {Number}: The point 
size of node labels. The default size is 11.</li>
-     *     <li><strong><code>labelFontColor</code></strong> {String}: Font 
color of node labels. The default value "#000000".</li>
-     *     <li><strong><code>labelFontWeight</code></strong> {String}: 
<code>normal</code> or <code>bold</code>. The default is "normal".</li>
-     *     <li><strong><code>labelFontStyle</code></strong> {String}: 
<code>normal</code> or <code>italic</code>. The default is "normal".</li>
-     *     <li><strong><code>labelHorizontalAnchor</code></strong> {String}: 
The horizontal label anchor: 
+     *     <li><code>labelFontName</code> {String}: Font name of node labels. 
The default is "Arial".</li>
+     *     <li><code>labelFontSize</code> {Number}: The point size of node 
labels. The default size is 11.</li>
+     *     <li><code>labelFontColor</code> {String}: Font color of node 
labels. The default value "#000000".</li>
+     *     <li><code>labelFontWeight</code> {String}: <code>normal</code> or 
<code>bold</code>. The default is "normal".</li>
+     *     <li><code>labelFontStyle</code> {String}: <code>normal</code> or 
<code>italic</code>. The default is "normal".</li>
+     *     <li><code>labelHorizontalAnchor</code> {String}: The horizontal 
label anchor: 
      *                                                                       
<code>left</code>, <code>center</code> or <code>right</code></li>
-     *     <li><strong><code>labelVerticalAnchor</code></strong> {String}: The 
vertical label anchor: 
+     *     <li><code>labelVerticalAnchor</code> {String}: The vertical label 
anchor: 
      *                                                                     
<code>top</code>, <code>middle</code> or <code>bottom</code></li>
-     *     <li><strong><code>labelXOffset</code></strong> {Number}: Horizontal 
distance of the label from the node border. 
+     *     <li><code>labelXOffset</code> {Number}: Horizontal distance of the 
label from the node border. 
      *                                                              If 
<code>labelHorizontalAnchor</code> is "right",
      *                                                              the 
distance is measured from the left side of the node, and
      *                                                              a negative 
offset displaces the label towards left.</li>
-     *     <li><strong><code>labelYOffset</code></strong> {Number}: Vertical 
distance of the label from the node border. 
+     *     <li><code>labelYOffset</code> {Number}: Vertical distance of the 
label from the node border. 
      *                                                              If 
<code>labelVerticalAnchor</code> is "bottom", 
      *                                                              the 
distance is measured from the top side of the node, and
      *                                                              a negative 
offset moves the label upper.</li>
-     *     <li><strong><code>labelGlowColor</code></strong> {String}: The 
color of the label glow. The default value is "#ffffff".</li>
-     *     <li><strong><code>labelGlowOpacity</code></strong> {Number}: The 
alpha transparency of the label glow. Valid values are 0 to 1.
+     *     <li><code>labelGlowColor</code> {String}: The color of the label 
glow. The default value is "#ffffff".</li>
+     *     <li><code>labelGlowOpacity</code> {Number}: The alpha transparency 
of the label glow. Valid values are 0 to 1.
      *                                                                  The 
default value is 0 (totally transparent).</li>
-     *     <li><strong><code>labelGlowBlur</code></strong> {Number}: The 
amount of blur for the label glow. Valid values are 0 to 255 (floating point).
+     *     <li><code>labelGlowBlur</code> {Number}: The amount of blur for the 
label glow. Valid values are 0 to 255 (floating point).
      *                                                               The 
default value is 8. Values that are a power of 2 (such as 2, 4, 8, 16, and 32) 
      *                                                               are 
optimized to render more quickly.</li>
-     *     <li><strong><code>labelGlowStrength</code></strong> {Number}: The 
strength of the imprint or spread. The higher the value, the more color 
+     *     <li><code>labelGlowStrength</code> {Number}: The strength of the 
imprint or spread. The higher the value, the more color 
      *                                                                   is 
imprinted and the stronger the contrast between the glow and the background.
      *                                                                   Valid 
values are 0 to 255. The default is 20.</li>
-     *     <li><strong><code>tooltipText</code></strong> {String}: Static text 
or a text formatter for node tool tips. 
-     *                                                             A list with 
all the node <code>data</data> attributes is displayed by default.</li>
-     *     <li><strong><code>tooltipFont</code></strong> {String}: Font name 
of node tool tips. The default font is "Arial".</li>
-     *     <li><strong><code>tooltipFontSize</code></strong> {Number}: The 
point size of node tool tips. The default value is 11.</li>
-     *     <li><strong><code>tooltipFontColor</code></strong> {String}: Font 
color of node tool tips. The default value is "#000000".</li>
-     *     <li><strong><code>tooltipBackgroundColor</code></strong> {String}: 
Background color of node tool tips. The default value is "#f5f5cc".</li>
-     *     <li><strong><code>tooltipBorderColor</code></strong> {String}: 
Border color of node tool tips. The default value is "#000000".</li></ul>
+     *     <li><code>tooltipText</code> {String}: Static text or a text 
formatter for node tool tips. 
+     *                                                             A list with 
all the node <code>data</code> attributes is displayed by default.</li>
+     *     <li><code>tooltipFont</code> {String}: Font name of node tool tips. 
The default font is "Arial".</li>
+     *     <li><code>tooltipFontSize</code> {Number}: The point size of node 
tool tips. The default value is 11.</li>
+     *     <li><code>tooltipFontColor</code> {String}: Font color of node tool 
tips. The default value is "#000000".</li>
+     *     <li><code>tooltipBackgroundColor</code> {String}: Background color 
of node tool tips. The default value is "#f5f5cc".</li>
+     *     <li><code>tooltipBorderColor</code> {String}: Border color of node 
tool tips. The default value is "#000000".</li></ul>
      * @property
      * @name nodes
      * @type Object
@@ -1820,64 +1827,64 @@
     /**
      * <p>An object that defines visual styles for edges.</p>
      * <p>The possible edge properties are:</p>
-     * <ul><li><strong><code>color</code></strong> {String}: Color of edges. 
The default value is "#999999".</li>
-     *     <li><strong><code>width</code></strong> {Number}: Line width of 
edges. The default value is 1 pixel.</li>
-     *     <li><strong><code>opacity</code></strong> {Number}: The edge 
opacity (0 to 1). The default value is 0.8.</li>
-     *     <li><strong><code>mergeColor</code></strong> {String}: Line color 
for merged edges. The default value is "#666666".</li>
-     *     <li><strong><code>mergeWidth</code></strong> {Number}: Line width 
for merged edges. The default value is 1 pixel.</li>
-     *     <li><strong><code>mergeOpacity</code></strong> {Number}: Opacity of 
merged edges (0 to 1). The default value is 0.8.</li>
-     *     <li><strong><code>selectionColor</code></strong> {String}: The fill 
color of selected edges.
+     * <ul class="options"><li><code>color</code> {String}: Color of edges. 
The default value is "#999999".</li>
+     *     <li><code>width</code> {Number}: Line width of edges. The default 
value is 1 pixel.</li>
+     *     <li><code>opacity</code> {Number}: The edge opacity (0 to 1). The 
default value is 0.8.</li>
+     *     <li><code>mergeColor</code> {String}: Line color for merged edges. 
The default value is "#666666".</li>
+     *     <li><code>mergeWidth</code> {Number}: Line width for merged edges. 
The default value is 1 pixel.</li>
+     *     <li><code>mergeOpacity</code> {Number}: Opacity of merged edges (0 
to 1). The default value is 0.8.</li>
+     *     <li><code>selectionColor</code> {String}: The fill color of 
selected edges.
      *                                                                The 
default value is the same one set to <code>color</code>
      *                                                                (or 
<code>mergeColor</code>, when edges are merged).</li>
-     *     <li><strong><code>selectionOpacity</code></strong> {Number}: The 
opacity of selected edges (0 to 1).
+     *     <li><code>selectionOpacity</code> {Number}: The opacity of selected 
edges (0 to 1).
      *                                                                  The 
default value is the same one set to <code>opacity</code>.</li>
-     *     <li><strong><code>selectionLineWidth</code></strong> {Number}: The 
border width of selected edges (0 to 1).
+     *     <li><code>selectionLineWidth</code> {Number}: The border width of 
selected edges (0 to 1).
      *                                                                    The 
default value is the same one set to <code>width</code>.</li>
-     *     <li><strong><code>selectionGlowColor</code></strong> {String}: The 
glow color of selected edges.The default value is "#ffff33".</li>
-     *     <li><strong><code>selectionGlowOpacity</code></strong> {Number}: 
The glow transparency of selected edges. Valid values are 0 to 1.
+     *     <li><code>selectionGlowColor</code> {String}: The glow color of 
selected edges.The default value is "#ffff33".</li>
+     *     <li><code>selectionGlowOpacity</code> {Number}: The glow 
transparency of selected edges. Valid values are 0 to 1.
      *                                                                      
The default value is 0.6 (60% opaque).</li>
-     *     <li><strong><code>selectionGlowBlur</code></strong> {Number}: The 
amount of blur for the selection glow. Valid values are 0 to 255 (floating 
point).
+     *     <li><code>selectionGlowBlur</code> {Number}: The amount of blur for 
the selection glow. Valid values are 0 to 255 (floating point).
      *                                                                   The 
default value is 4. Values that are a power of 2 (such as 2, 4, 8, 16, and 32) 
      *                                                                   are 
optimized to render more quickly.</li>
-     *     <li><strong><code>selectionGlowStrength</code></strong> {Number}: 
The strength of the glow color imprint or spread when the edge is selected.
+     *     <li><code>selectionGlowStrength</code> {Number}: The strength of 
the glow color imprint or spread when the edge is selected.
      *                                                                       
The higher the value, the more color is imprinted and the stronger the contrast
      *                                                                       
between the glow and the background.
      *                                                                       
Valid values are 0 to 255. The default is 10.</li>
-     *     <li><strong><code>hoverOpacity</code></strong> {Number}: The 
opacity of the edge when the mouse is over it (0 to 1).
+     *     <li><code>hoverOpacity</code> {Number}: The opacity of the edge 
when the mouse is over it (0 to 1).
      *                                                              The 
default value is the same one set to <code>opacity</code>.</li>
-     *     <li><strong><code>curvature</code></strong> {Number}: The curvature 
amount of curved edges. The default value is 18.</li>
-     *     <li><strong><code>sourceArrowShape</code></strong> {...@link 
org.cytoscapeweb.ArrowShape}}: Shape name of source arrows. The default value 
is "NONE".</li>
-     *     <li><strong><code>targetArrowShape</code></strong> {...@link 
org.cytoscapeweb.ArrowShape}}: Shape name of target arrows.
+     *     <li><code>curvature</code> {Number}: The curvature amount of curved 
edges. The default value is 18.</li>
+     *     <li><code>sourceArrowShape</code> {...@link 
org.cytoscapeweb.ArrowShape}}: Shape name of source arrows. The default value 
is "NONE".</li>
+     *     <li><code>targetArrowShape</code> {...@link 
org.cytoscapeweb.ArrowShape}}: Shape name of target arrows.
      *                                                                         
                       For directed edges, the default value is "DELTA".
      *                                                                         
                       For undirected ones, the default value is "NONE".</li>
-     *     <li><strong><code>sourceArrowColor</code></strong> {String}: Color 
code of source arrows.
+     *     <li><code>sourceArrowColor</code> {String}: Color code of source 
arrows.
      *                                                                  The 
default value is the same one set to the edge <code>color</code> property.</li>
-     *     <li><strong><code>targetArrowColor</code></strong> {String}: Color 
code of target arrows.
+     *     <li><code>targetArrowColor</code> {String}: Color code of target 
arrows.
      *                                                                  The 
default value is the same one set to the edge <code>color</code> property.</li>
-     *     <li><strong><code>label</code></strong> {String}: The text to be 
displayed as edge label. There is no default value or mapper for edge 
labels.</li>
-     *     <li><strong><code>labelFontName</code></strong> {String}: Font name 
of edge labels. The default is "Arial".</li>
-     *     <li><strong><code>labelFontSize</code></strong> {Number}: The point 
size of edge labels. The default size is 11.</li>
-     *     <li><strong><code>labelFontColor</code></strong> {String}: Font 
color of edge labels. The default value "#000000".</li>
-     *     <li><strong><code>labelFontWeight</code></strong> {String}: 
<code>normal</code> or <code>bold</code>. The default is "normal".</li>
-     *     <li><strong><code>labelFontStyle</code></strong> {String}: 
<code>normal</code> or <code>italic</code>. The default is "normal".</li>
-     *     <li><strong><code>labelGlowColor</code></strong> {String}: The 
color of the label glow. The default value is "#ffffff".</li>
-     *     <li><strong><code>labelGlowOpacity</code></strong> {Number}: The 
alpha transparency of the label glow. Valid values are 0 to 1.
+     *     <li><code>label</code> {String}: The text to be displayed as edge 
label. There is no default value or mapper for edge labels.</li>
+     *     <li><code>labelFontName</code> {String}: Font name of edge labels. 
The default is "Arial".</li>
+     *     <li><code>labelFontSize</code> {Number}: The point size of edge 
labels. The default size is 11.</li>
+     *     <li><code>labelFontColor</code> {String}: Font color of edge 
labels. The default value "#000000".</li>
+     *     <li><code>labelFontWeight</code> {String}: <code>normal</code> or 
<code>bold</code>. The default is "normal".</li>
+     *     <li><code>labelFontStyle</code> {String}: <code>normal</code> or 
<code>italic</code>. The default is "normal".</li>
+     *     <li><code>labelGlowColor</code> {String}: The color of the label 
glow. The default value is "#ffffff".</li>
+     *     <li><code>labelGlowOpacity</code> {Number}: The alpha transparency 
of the label glow. Valid values are 0 to 1.
      *                                                                  The 
default value is 0 (totally transparent).</li>
-     *     <li><strong><code>labelGlowBlur</code></strong> {Number}: The 
amount of blur for the label glow. Valid values are 0 to 255 (floating point).
+     *     <li><code>labelGlowBlur</code> {Number}: The amount of blur for the 
label glow. Valid values are 0 to 255 (floating point).
      *                                                               The 
default value is 2. Values that are a power of 2 (such as 2, 4, 8, 16, and 32) 
      *                                                               are 
optimized to render more quickly.</li>
-     *     <li><strong><code>labelGlowStrength</code></strong> {Number}: The 
strength of the imprint or spread. The higher the value, the more color 
+     *     <li><code>labelGlowStrength</code> {Number}: The strength of the 
imprint or spread. The higher the value, the more color 
      *                                                                   is 
imprinted and the stronger the contrast between the glow and the background.
      *                                                                   Valid 
values are 0 to 255. The default is 20.</li>
-     *     <li><strong><code>tooltipText</code></strong> {String}: Static text 
or a text formatter for regular edge tool tips. 
-     *                                                             A list with 
all the edge <code>data</data> attributes is displayed by default.</li>
-     *     <li><strong><code>mergeTooltipText</code></strong> {String}: Static 
text or a text formatter for merged edge tool tips.
+     *     <li><code>tooltipText</code> {String}: Static text or a text 
formatter for regular edge tool tips. 
+     *                                                             A list with 
all the edge <code>data</code> attributes is displayed by default.</li>
+     *     <li><code>mergeTooltipText</code> {String}: Static text or a text 
formatter for merged edge tool tips.
      *                                                                  A list 
with all the merged edge <code>data</code> attributes is displayed by 
default.</li>
-     *     <li><strong><code>tooltipFont</code></strong> {String}: Font name 
of edge tool tips. The default font is "Arial".</li>
-     *     <li><strong><code>tooltipFontSize</code></strong> {Number}: The 
point size of edge tool tips. The default value is 11.</li>
-     *     <li><strong><code>tooltipFontColor</code></strong> {String}: Font 
color of edge tool tips. The default value is "#000000".</li>
-     *     <li><strong><code>tooltipBackgroundColor</code></strong> {String}: 
Background color of edge tool tips. The default value is "#f5f5cc".</li>
-     *     <li><strong><code>tooltipBorderColor</code></strong> {String}: 
Border color of edge tool tips. The default value is "#000000".</li></ul>
+     *     <li><code>tooltipFont</code> {String}: Font name of edge tool tips. 
The default font is "Arial".</li>
+     *     <li><code>tooltipFontSize</code> {Number}: The point size of edge 
tool tips. The default value is 11.</li>
+     *     <li><code>tooltipFontColor</code> {String}: Font color of edge tool 
tips. The default value is "#000000".</li>
+     *     <li><code>tooltipBackgroundColor</code> {String}: Background color 
of edge tool tips. The default value is "#f5f5cc".</li>
+     *     <li><code>tooltipBorderColor</code> {String}: Border color of edge 
tool tips. The default value is "#000000".</li></ul>
      * @property
      * @name edges
      * @type Object
@@ -1888,7 +1895,7 @@
     
     /**
      * <p>This object represents a Continuous Mapper type, although it is just 
an untyped object.</p>
-     * <p>Depending on the visual attribute, there are three kinds of 
continuous mappers:</p>
+     * <p>Depending on the visual attribute, there are two kinds of continuous 
mappers:</p>
      * <ol><li><strong>Continuous-to-Continuous Mapper:</strong> for example, 
you can map a continuous numerical value to a node size.</li>
      *     <li><strong>Color Gradient Mapper:</strong> This is a special case 
of continuous-to-continuous mapping. 
      *         Continuous numerical values are mapped to a color 
gradient.</li></ol>
@@ -1949,12 +1956,16 @@
      * <p>The most common use case is using this mapper to specify node/edge 
labels.
      * For example, a passthrough mapper can label all nodes with their gene 
symbols.</p>
      * @example
-     * var colorMapper = {
-     *         attrName: "nodeType",
-     *         entries: [ { attrValue: "typeA", value: "#ff0000" },
-     *                    { attrValue: "typeB", value: "#00ff00" },
-     *                    { attrValue: "typeC", value: "#0000ff" } ]
+     * // Create the mapper and set it to a Visual Style's nodes.label 
property;
+     * var style = {
+     *         nodes: {
+     *             label: { passthroughMapper: { attrName: "symbol" } }
+     *         }
      * };
+     * 
+     * // Set the new style to the Visualization:
+     * vis.visualStyle(style);
+     * 
      * @class
      * @name PassthroughMapper
      * @type Object
@@ -2044,7 +2055,7 @@
     /**
      * <p>This object represents a Group type. In actuality, it is a 
string.</p>
      * <p>However, its value must be one of:</p>
-     * 
<ul><li><code>nodes</code></li><li><code>edges</code></li><li><code>none</code> 
(same as <code>null</code>)</li></ul>
+     * <ul 
class="options"><li><code>nodes</code></li><li><code>edges</code></li><li><code>none</code>
 (same as <code>null</code>)</li></ul>
      * @class
      * @name Group
      * @type String
@@ -2056,21 +2067,21 @@
      * ({...@link org.cytoscapeweb.Visualization#addListener}, {...@link 
org.cytoscapeweb.Visualization#hasListener} and
      * {...@link org.cytoscapeweb.Visualization#removeListener}).</p>
      * <p>Its value must be one of:</p>
-     *     <ul><li><strong><code>click</code>:</strong> For mouse click events 
on nodes, edges or the visualization background.</li>
-     *         <li><strong><code>dblclick</code>:</strong> For double-click 
events on nodes, edges or the visualization background.</li>
-     *         <li><strong><code>mouseover</code>:</strong> For mouse-over 
events on nodes, edges or the visualization background.</li>
-     *         <li><strong><code>mouseout</code>:</strong> For mouse-out 
events on nodes, edges or the visualization background.</li>
-     *         <li><strong><code>select</code>:</strong> For events dispatched 
after nodes or edges are selected (e.g. by direct mouse clicking or by 
drag-selecting).</li>
-     *         <li><strong><code>deselect</code>:</strong> For events 
dispatched after nodes or edges are unselected.</li>
-     *         <li><strong><code>filter</code>:</strong> For events dispatched 
after nodes or edges are filtered.</li>
-     *         <li><strong><code>zoom</code>:</strong> For events dispatched 
after the network is rescaled.</li>
-     *         <li><strong><code>layout</code>:</strong> For events dispatched 
after a new layout is applied or the current one is recomputed.</li>
-     *         <li><strong><code>visualstyle</code>:</strong> For events 
dispatched after a new visual style is set.</li>
-     *         <li><strong><code>contextmenu</code>:</strong> For events 
dispatched after a right-click context menu item is selected.
+     *     <ul class="options"><li><code>click</code>:</strong> For mouse 
click events on nodes, edges or the visualization background.</li>
+     *         <li><code>dblclick</code>:</strong> For double-click events on 
nodes, edges or the visualization background.</li>
+     *         <li><code>mouseover</code>:</strong> For mouse-over events on 
nodes, edges or the visualization background.</li>
+     *         <li><code>mouseout</code>:</strong> For mouse-out events on 
nodes, edges or the visualization background.</li>
+     *         <li><code>select</code>:</strong> For events dispatched after 
nodes or edges are selected (e.g. by direct mouse clicking or by 
drag-selecting).</li>
+     *         <li><code>deselect</code>:</strong> For events dispatched after 
nodes or edges are unselected.</li>
+     *         <li><code>filter</code>:</strong> For events dispatched after 
nodes or edges are filtered.</li>
+     *         <li><code>zoom</code>:</strong> For events dispatched after the 
network is rescaled.</li>
+     *         <li><code>layout</code>:</strong> For events dispatched after a 
new layout is applied or the current one is recomputed.</li>
+     *         <li><code>visualstyle</code>:</strong> For events dispatched 
after a new visual style is set.</li>
+     *         <li><code>contextmenu</code>:</strong> For events dispatched 
after a right-click context menu item is selected.
      *                                                        You cannot use 
this type with the listener methods (e.g. {...@link 
org.cytoscapeweb.Visualization#addListener}).
      *                                                        Events of this 
type are only dispatched to the callback functions that are registered with
      *                                                        {...@link 
org.cytoscapeweb.Visualization#addContextMenuItem}.</li>
-     *         <li><strong><code>error</code>:</strong> For events dispatched 
when an internal error or exception occurs.</li></ul>
+     *         <li><code>error</code>:</strong> For events dispatched when an 
internal error or exception occurs.</li></ul>
      * @class
      * @name EventType
      * @type String
@@ -2083,9 +2094,10 @@
     /**
      * <p>This object represents node shapes. In actuality, it is just a 
string.</p>
      * <p>Possible values:</p>
-     * <ul><li><code>ELLIPSE</code></li>
+     * <ul class="options"><li><code>ELLIPSE</code></li>
      *    <li><code>RECTANGLE</code></li>
      *    <li><code>TRIANGLE</code></li>
+     *    <li><code>DIAMOND</code></li>
      *    <li><code>HEXAGON</code></li>
      *    <li><code>OCTAGON</code></li>
      *    <li><code>PARALLELOGRAM</code></li>
@@ -2098,7 +2110,7 @@
     /**
      * <p>This object represents edge arrow shapes. In actuality, it is just a 
string.</p>
      * <p>Its value must be one of:</p>
-     * <ul><li><code>NONE</code>: indicates that there is no arrow.</li>
+     * <ul class="options"><li><code>NONE</code>: indicates that there is no 
arrow.</li>
       *     <li><code>DELTA</code></li>
       *     <li><code>DIAMOND</code></li>
       *     <li><code>CIRCLE</code></li>
@@ -2111,7 +2123,7 @@
     /**
      * <p>This object represents available network layouts. In actuality, it 
is just a string.</p>
      * <p>Its value must be one of:</p>
-     * <ul><li><code>ForceDirected</code>
+     * <ul class="options"><li><code>ForceDirected</code>
      *     <li><code>Circle</code></li>
      *     <li><code>CircleTree</code></li>
      *     <li><code>Radial</code></li>

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