GDL: Node Size and Position<>index

Node size and position

» The scaling factor of a node (the node text size) is specified by

   scaling: float   // relation to the graph scaling factor

» Node dimensions are specified by

   height: integer  // incl. the node border
   width:  integer  // incl. the node border
   // correspond to the number of pixels used when
   // both the node and graph scaling factors are 1.0

» The minimum space between nodes is specified by

   xspace: integer  // number of pixels when the 
   yspace: integer  // graph scaling factor is 1.0

» The node to be centered in the graph window on startup can be specified by

   focus

» The relative position of a node can be influenced by

   horizontal_order: integer
   vertical_order:   integer

Hints

» The attributes

   stretch: integer
   shrink: integer

     specify the shrinking and stretching factors, so that the following formula applies:

   scaling == ( stretch / shrink ) * 100%

     Examples:

   stretch:4  shrink:3  // more precise than scaling:1.33
   stretch:1  shrink:7  // more precise than scaling:0.142857
   stretch:2            // the same as scaling:2.0
   shrink: 2            // the same as scaling:0.5

» Default attribute values

   node.scaling: 1.0
   node.shrink:  1
   node.stretch: 1
   node.height: -1  // (i.e. unspecified)
   node.width:  -1  // (i.e. unspecified)
   // the same applies to foldnode attributes

» Multiple focus specifications will be ignored

   node: {title:"This"  focus}  // This
   node: {title:"is"    focus}  // is
   node: {title:"kinda" focus}  // rather
   node: {title:"fun"   focus}  // pointless

» Related topics:

Go to ...

HomeSitemapai
Last modified on 10 August 2006 by webmaster. © 2002-2006 AbsInt.
URL: http://www.aisee.com/gdl/nutshell/nodes.htm


Home
About
Examples
Free trial

 Help
» FAQs
» Quick Guide
» User Manual
» GDL
» Options
» Changelog
» GDLedit

Store
Legal
Contact
Extras
Sitemap