Difference between revisions of "Wgraph:Tutorial node layout"

From FollowTheScore
Jump to: navigation, search
 
Line 17: Line 17:
  
 
   node A {
 
   node A {
     label      "<u>This node ''demonstrates'' "
+
     label      "<u>This node ''demonstrates''_"
                 "the '''use of''' various "
+
                 "the '''use of''' various_"
                 "layout properties</u> which "
+
                 "layout properties</u> which ----"
 
                 "''can be '''used''' in'' WGL ''alone'' or '''''together'''''."
 
                 "''can be '''used''' in'' WGL ''alone'' or '''''together'''''."
 
     textmode    left_justify
 
     textmode    left_justify
Line 30: Line 30:
 
     borderstyle double
 
     borderstyle double
 
     width      250
 
     width      250
     height      130
+
     height      180
 
   }
 
   }
 
   node B {  
 
   node B {  
     label      "in a special font"
+
     label      "in a ----special font"
 
     fontname    courBO18
 
     fontname    courBO18
 
   }
 
   }

Latest revision as of 18:14, 21 October 2007

node layout

  • Icons
    • when you specify 'iconfile' then 'bordercolor' will implicitly be set to 'white' and 'label' will be set to an empty string.
  • Node Geometry
    • when calling #wgraph you can set two scale factors, one for the image and one for the corresponding thumb image.
    • these scale factors can be understood as "dots per inch" measures.
    • scaling does not work with bitmap images
  • Colors
    • there are 31 pre-defined names
    • you can use #000000 .. #ffffff notation


{{#wgraph: thumb=40 | wgl | png | svg | gdl |

 node A {
   label       "This node demonstrates_"
               "the use of various_"
               "layout properties which ----"
               "can be used in WGL alone or together."
   textmode    left_justify
   url         Wgraph:Sample_3.wgl
   textwidth   20
   color       #ddccff
   textcolor   blue
   bordercolor green
   borderwidth 50
   borderstyle double
   width       250
   height      180
 }
 node B { 
   label       "in a ----special font"
   fontname    courBO18
 }
 edge from A to B { label . }
 node C { 
   label       "\n\n\n my image"
   scaling     2
   icon        user
 }
 edge from B to C { label . }
 label "node layout demo"

}}