Advertisement
Guest User

Untitled

a guest
Jul 22nd, 2017
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 10.56 KB | None | 0 0
  1.             <!--global-->
  2.         <form method="post" name="style_global" >
  3.         <table class = "submenu11" id="submenu11">
  4.             <tr><td><label class="text-titre" >Background</label></td></tr>
  5.             <tr><td>
  6.                 <label class="style">Color </label>
  7.                 <input class="default colour_sample_bg" id="bckgrd_color"
  8.                 name="bckgrd_color" type="text" size=10 value=$vis.visualStyle.global.backgroundColor()>>
  9.             </tr></td>
  10.             <tr><td><label class="text-titre" >Selection Rectangle</label></tr></td>
  11.             <tr><td>
  12.                 <label class="style">Line Width <span class="ui-validation-error-message"></span></label>
  13.                 <input class="default" id="selRec_width" name="selRec_width" type="text" size=10>
  14.             </tr></td>
  15.             <tr><td>
  16.                 <label class="style">Line Color <span class="ui-validation-error-message"></span></label>
  17.                 <input class="default colour_sample_bg" id="selRec_color" name="selRec_color" type="text" size=10>
  18.             </tr></td>
  19.             <tr><td>
  20.                 <label class="style">Line Opacity <span class="ui-validation-error-message"></span></label>
  21.                 <input class="default" id="selRec_opacity" name="selRec_opacity" type="text" size=10>
  22.             </tr></td>
  23.             <tr><td>
  24.                 <label class="style">Fill Color <span class="ui-validation-error-message"></span></label>
  25.                 <input class="default colour_sample_bg" type="text" id="selRec_fillColor" name="selRec_fillColor" size=10>
  26.             </tr></td>
  27.             <tr><td>
  28.                 <label class="style">Fill Opacity <span class="ui-validation-error-message"></span></label>
  29.                 <input class="default" type="text" id="selRec_fillOpacity" name="selRec_fillOpacity" size=10>
  30.             </tr></td>
  31.             <tr><td><label class="text-titre" >Tooltip</label></tr></td>
  32.             <tr><td>
  33.                 <label class="style">Delay (milliseconds) <span class="ui-validation-error-message"></span></label>
  34.                 <input class="default" type="text" id="tooltip" name="tooltip" size=10>
  35.             </tr></td>
  36.             </table>
  37.         </form>
  38.         <script>
  39.         var style = {
  40.             global: {
  41.                 backgroundColor: $_POST['bckgrd_color'],
  42.                 selectionFillColor : $_POST['selRec_fillColor'],
  43.                 selectionLineColor : $_POST['selRec_color'],
  44.                 selectionFillOpacity : $_POST['selRec_fillOpacity'],
  45.                 selectionLineOpacity : $_POST['selRec_opacity'],
  46.                 selectionLineWidth : $_POST['selRec_width'],
  47.                 tooltipDelay: $_POST['tooltip']
  48.             }
  49.         };
  50.         vis.visualStyle(style);</script>
  51.        
  52.         <!--
  53.     backgroundColor {String}: Background color of the network view (hexadecimal code). The default value is "#ffffff".
  54.     tooltipDelay {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.
  55.     selectionFillColor {String}: Fill color of the drag-selection rectangle. The default value is "#8888ff".
  56.     selectionLineColor {String}: Line color of the drag-selection border. The default value is "#8888ff".
  57.     selectionFillOpacity {Number}: Fill opacity of the drag-selection rectangle (0 to 1). The default value is 0.1.
  58.     selectionLineOpacity {Number}: Line opacity of the drag-selection border (0 to 1). The default value is 0.8.
  59.     selectionLineWidth {Number}: Line width of the drag-selection border. The default value is 1.
  60.     -->
  61.  
  62.     <!-- vizmapper_Nodes -->
  63.     <form method="post" name="style_nodes" >
  64.        
  65.     <table class="submenu12" id="submenu12">
  66.     <tr><td><label class="text-titre" >Border</label></td></tr>
  67. <!-- Border Width -->
  68.     <tr><td>
  69.         <label class="style">Width </label>
  70.         <input class="default" id="nBorder_width" name="nBorder_width" type="text" size=10 value=$vis.selected.nodes.borderWidth()>
  71.     </tr></td>
  72. <!-- Border Color -->
  73.     <tr><td>
  74.         <label class="style">Color </label>
  75.         <input class="default" id="nBorder_color" name="nBorder_color" type="text" size=10 value=$vis.selected.nodes.borderColor()>
  76.     </tr></td>
  77.    
  78.     <tr><td><label class="text-titre" >Fill</label></td></tr>
  79. <!-- Size -->
  80.     <tr><td>
  81.     <label class="style">Size </label>
  82.     <input class="default" id="n_size" name="n_size" type="text" size=10 value=$vis.selected.nodes.size()>
  83.     </tr></td>
  84.    
  85. <!-- Color -->
  86.     <tr><td>
  87.     <label class="style">Color </label>
  88.     <input class="default" id="n_color" name="n_color" type="text" size=10 value=$vis.selected.nodes.color()>
  89.     </tr></td>
  90.  
  91. <!-- Opacity -->
  92.     <tr><td>
  93.     <label class="style">Opacity </label>
  94.     <input class="default" id="n_opacity" name="n_opacity" type="text" size=10 value=$vis.selected.nodes.opacity()>
  95.     </tr></td>
  96.  
  97. <!-- Shape -->
  98.     <tr><td>
  99.     <label class="style">Shape </label>
  100.     <input class="default" id="n_shape" name="n_shape" type="text" size=10 value=$vis.selected.nodes.shape()>
  101.     <div align="center"><br>
  102. <input type="checkbox" name="ellipse" value="ellipse"> Ellipse<br>
  103. <input type="checkbox" name="triangle" value="triangle"> Triangle<br>
  104. <input type="checkbox" name="diamond" value="diamond"> Diamond<br>
  105. <input type="checkbox" name="rectangle" value="rectangle"> Rectangle<br>
  106. <br></div>
  107.     </tr></td>
  108.    
  109.     </table>
  110.     </form>
  111.    
  112. <!--    
  113.     * shape {NodeShape}: Node shape name. The default value is "ELLIPSE".
  114.    * size {Number}: Node size, in pixels. The default value is 24.
  115.    * color {String}: Fill color code of nodes. The default value is "#f5f5f5".
  116.    * image {String}: The URL of the image to be used as the node background. No image is used by default. If you specify a cross-domain address, then the image might not be loaded by Flash, unless the host provides a cross-domain XML file that allows you to do so. We recommend you use a server-side proxy on your web host machine if you have this issue. See an example in PHP to understand the process of writing your own proxy.
  117.    * borderColor {String}: Border color of nodes. The default value is "#666666".
  118.    * borderWidth {Number}: Border width of nodes. The default value is 1.
  119.    * opacity {Number}: The node opacity (0 to 1). The default value is 0.8.
  120.    * selectionColor {String}: The fill color of selected nodes. The default value is the same one set to color.
  121.    * selectionBorderColor {String}: The border color of selected nodes. The default value is the same one set to borderColor.
  122.    * selectionOpacity {Number}: The opacity of selected nodes (0 to 1). The default value is the same one set to opacity.
  123.    * selectionBorderWidth {Number}: The border width of selected nodes (0 to 1). The default value is the same one set to borderWidth.
  124.    * selectionGlowColor {String}: The glow color of selected nodes.The default value is "#ffff33".
  125.    * selectionGlowOpacity {Number}: The glow transparency of selected nodes. Valid values are 0 to 1. The default value is 0.6 (60% opaque).
  126.    * selectionGlowBlur {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.
  127.    * selectionGlowStrength {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.
  128.    * hoverOpacity {Number}: The opacity of the node when the mouse is over it (0 to 1). The default value is the same one set to opacity.
  129.    * hoverBorderColor {String}: The border color when the mouse is over a node. The default value is the same one set to borderColor.
  130.    * hoverBorderWidth {Number}: The node border width on mouse over. The default value is the same one set to borderWidth.
  131.    * hoverGlowColor {String}: The node glow color on mouse over. The default value is "#aae6ff".
  132.    * hoverGlowOpacity {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.
  133.    * hoverGlowBlur {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.
  134.    * hoverGlowStrength {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.
  135.    * label {String}: The text to be displayed as node label. A Passthrough Mapper is created by default, and it displays the node data.label attribute value.
  136.    * labelFontName {String}: Font name of node labels. The default is "Arial".
  137.    * labelFontSize {Number}: The point size of node labels. The default size is 11.
  138.    * labelFontColor {String}: Font color of node labels. The default value "#000000".
  139.    * labelFontWeight {String}: normal or bold. The default is "normal".
  140.    * labelFontStyle {String}: normal or italic. The default is "normal".
  141.    * labelHorizontalAnchor {String}: The horizontal label anchor: left, center or right
  142.    * labelVerticalAnchor {String}: The vertical label anchor: top, middle or bottom
  143.    * labelXOffset {Number}: Horizontal distance of the label from the node border. If labelHorizontalAnchor is "right", the distance is measured from the left side of the node, and a negative offset displaces the label towards left.
  144.    * labelYOffset {Number}: Vertical distance of the label from the node border. If labelVerticalAnchor is "bottom", the distance is measured from the top side of the node, and a negative offset moves the label upper.
  145.    * labelGlowColor {String}: The color of the label glow. The default value is "#ffffff".
  146.    * labelGlowOpacity {Number}: The alpha transparency of the label glow. Valid values are 0 to 1. The default value is 0 (totally transparent).
  147.    * labelGlowBlur {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.
  148.    * labelGlowStrength {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.
  149.    * tooltipText {String}: Static text or a text formatter for node tool tips. A list with all the node data attributes is displayed by default.
  150.    * tooltipFont {String}: Font name of node tool tips. The default font is "Arial".
  151.    * tooltipFontSize {Number}: The point size of node tool tips. The default value is 11.
  152.    * tooltipFontColor {String}: Font color of node tool tips. The default value is "#000000".
  153.    * tooltipBackgroundColor {String}: Background color of node tool tips. The default value is "#f5f5cc".
  154.    * tooltipBorderColor {String}: Border color of node tool tips. The default value is "#000000".
  155. -->
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement