Difference between revisions of "Wgraph:Tutorial edge layout"

From FollowTheScore
Jump to: navigation, search
(New page: == edge layout == On edge level you can specify * kind (normal,back,near,rightnear,leftnear,bentnear,rightbentnear,leftbentnear) * color * thickness * linestyle (continuous,dashed,dott...)
 
Line 9: Line 9:
 
* linestyle (continuous,dashed,dotted,double,invisible,solid,triple)
 
* linestyle (continuous,dashed,dotted,double,invisible,solid,triple)
  
* arrowcolor
+
* arrowcolor / backarrowcolor
* arrowsize
+
* arrowsize / backarrowsize
 
* arrowstyle / backarrowstyle (solid, line, none, [half] circle, [half] rhomb, dslash) and combinations...
 
* arrowstyle / backarrowstyle (solid, line, none, [half] circle, [half] rhomb, dslash) and combinations...
 +
 +
* priority
 +
* anchor (int)
  
 
* and optionally you can add a text label.
 
* and optionally you can add a text label.
Line 18: Line 21:
  
 
On graph level you can specify
 
On graph level you can specify
* arrowmmode (free,fixed)
+
* arrowmode (free,fixed)
 +
* show_edgetypes
 +
* skip_edgetypes
 +
* hide_nodetypes
 +
* hide_edgetypes
  
 +
----
  
 
{{#wgraph: thumb=40 | wgl | png | svg | gdl |
 
{{#wgraph: thumb=40 | wgl | png | svg | gdl |
  
   node A {
+
   node A {}
    label      "<u>This node ''demonstrates'' "
+
   node B {}
                "the '''use of''' various "
+
   node C {}
                "layout properties</u> which "
+
   node D {}
                "''can be '''used''' in'' WGL ''alone'' or '''''together'''''."
+
   node E{}
    textmode    left_justify
+
   edge A B {label "some text" linestyle dashed color blue thickness 4}
    url        Wgraph:Sample_3.wgl
+
   nodetype * {width 40 height 20 color yellow}
    textwidth  20
 
    color      #ddccff
 
    textcolor  blue
 
    bordercolor green
 
    borderwidth 50
 
    borderstyle double
 
    width      250
 
    height      130
 
  }
 
   node B {  
 
    label      "in a special font"
 
    fontname    HelvBO18
 
   }
 
   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"
 
 
}}
 
}}
  
 
[[Category:Wgraph]]
 
[[Category:Wgraph]]

Revision as of 10:39, 15 August 2007

edge layout

On edge level you can specify

  • kind (normal,back,near,rightnear,leftnear,bentnear,rightbentnear,leftbentnear)
  • color
  • thickness
  • linestyle (continuous,dashed,dotted,double,invisible,solid,triple)
  • arrowcolor / backarrowcolor
  • arrowsize / backarrowsize
  • arrowstyle / backarrowstyle (solid, line, none, [half] circle, [half] rhomb, dslash) and combinations...
  • priority
  • anchor (int)
  • and optionally you can add a text label.

On graph level you can specify

  • arrowmode (free,fixed)
  • show_edgetypes
  • skip_edgetypes
  • hide_nodetypes
  • hide_edgetypes

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

 node A {}
 node B {}
 node C {}
 node D {}
 node E{}
 edge A B {label "some text" linestyle dashed color blue thickness 4}
 nodetype * {width 40 height 20 color yellow}

}}